Parent document is top of "JPEG image compression FAQ, part 1/2"
Previous document is "[19] Isn't there an M-JPEG standard for motion pictures?"
Next document is "[21] How can my program extract image dimensions from a JPEG file?"

[20] What if I need more than 8-bit precision?

Baseline JPEG stores images with 8 bits per color sample, in other words
24 bits per pixel for RGB images, 8 bits/pixel for grayscale, 32 bits/pixel
for CMYK, etc.  There is an extension that stores 12 bits/sample for
applications that need higher accuracy.  Medical images, for example, are
often 12-bit grayscale.  The 12-bit extension is not very widely supported,
however.  One package that does support it is the free IJG source code (see
part 2, item 15).

For lossless JPEG, the standard permits any data precision between 2 and 16
bits per sample, but high-precision lossless JPEG is even less widely
supported than high-precision lossy JPEG.  I don't know of any working
noncommercial implementations.  (The Cornell lossless JPEG coder tries to
support it, but reportedly has bugs with data of more than 8 bits.)

Parent document is top of "JPEG image compression FAQ, part 1/2"
Previous document is "[19] Isn't there an M-JPEG standard for motion pictures?"
Next document is "[21] How can my program extract image dimensions from a JPEG file?"