Originally posted by slartibartfast01 If raw files contain 14 bits of data per channel and jpeg files contain 8 bits then I cannot understand your theory that a 100 quality jpeg is not lossy. Unless those extra 6 bits contain no data which seems very unlikely.
There's all sorts of confusion over these issued expressed in articles on the InterNet, partly because of assumptions based on earlier standards based on what is now obsolete technology, such as the idea that the JPEG is an "eight-bit standard" and that all JPEG files are necessarily compressed. I've been struggling to figure this stuff out, myself, and found that I'm getting into areas in which precious little information is available. I think the mfgr. assumes that people who just want to take pictures don't need to trouble their pretty li'l heads about the technical mumbo-jumbo.
But I think those numbers refer to two different things - the 12/14 bit analog to digital converters (one per pixel, contained within the sensor) in the cameras are preprocessing the data before any file structure is in the works. The fact that the file formats provide a container for three color channels has nothing to do with the data coming off the sensor, which provides data describing one color channel per pixel. Because the Bayer filter method the sensor uses only provides data on one color per pixel (ignoring "pixel-shift" rendering which effectively multiplies the number of recorded pixels) in an unsigned one byte integer, storing one of 16,384 possible hues for that one color. And the "jpeg files contain 8 bits" is incomplete - JPEG is twenty-four bits, eight bits for each of the three primary colors. They also store three or seven bits per pixel of luminance information (one nybble or byte, respectively, containing a signed binary integer), as I understand it, for a total of twenty-four or thirty-two bits per pixel. I label this as mere opinion at this point, having been unable to locate any solid information.
What I've been unable to locate, and which I feel is the information necessary to really and definitively answer the question, are the technical specifications for the sensor's actual output, the conversion from that output (electrical signals) to both raw and JPEG formats as stored in the camera. That information must be available somewhere, or else software developers wouldn't be able to sell raw data editors.
---------- Post added 2018-11-18 at 09:14 AM ----------
Originally posted by pschlute They are two different colour spaces. The DNG processed in LR is sRGB and the in-camera processed jpeg is AdobeRGB. not ideal when trying to compare.
Interesting point. And related to another mystery. Why do the light-capturing devices and software that supports them use the primary colors of pigment, and why do color printers use the primary colors of light? Seems like it should be the other way around - cameras should use CYMK, and printers should use RGB. What am I missing?
---------- Post added 2018-11-18 at 09:27 AM ----------
This whole debate is like one that has been similarly raging among handgun enthusiasts for a long time regarding the optimal caliber, bullet design, and powder load for cartridges carried for personal defense. Which is better, raw or JPEG? I think the answer was best stated by Forrest Gump at the end of the movie: "I think it's both." Or like the Certs commercials from the early '60's - "Stop! You're both right!". Depends on what you want to use the image data for, don't it?