2 ms·
There can be up to the full bit density of the raw file worth of information present at the output of the camera chip. If you were to aim the camera at an even
by mikewarot 5y ago
There can be up to the full bit density of the raw file worth of information present at the output of the camera chip. If you were to aim the camera at an even high resolution, high contrast ratio screen, containing error corrected data displayed as pixels, you could use it to input up to 50% of that amount, assuming losses for error correction, noise, etc.
What a lossy compression algorithm is doing is to decide how unexpected a give bit of data is, assuming a certain model of image interpretation. There were decades of work thrown at it back when 512x512 pixels was high resolution, to create mathematical models of human vision that most closely match how people actually see the differences between images. This lets a computer decide how much changing a given pixel would effect how much a person would notice it being different. Doing this in an efficient and effective manner was not easy.
The least surprising bits get thrown away, in such a way that the process can be reversed to recreate the original image as closely as possible given the error budget and constraints of the encoding method, and the vision model used.
There camera sensor itself is optimized for doing one job... capturing light and converting that to a voltage. There are dedicated processors elsewhere that handle JPEG and other compression methods.
There is always an adjustment of quality available with lossy compression, everyone has their own preference for how much of the picture quality they are willing to lose, which is why there is usually a slider or preset somewhere you can adjust.
Professional photographers who are in high-stakes shoots record everything the sensor sees, without loss, in a RAW file. The incremental cost of the extra storage is far less than risking quality in these situations. Often a JPEG will be made at the same time, with the same file numbering to make it quicker to go through photos at the first sorting.
Steve Jobs could have picked some arbitrary value of compression, but that wouldn't have made it right.