cjpeg: Only support 8-bit precision w/ GIF input

Creating 12-bit-per-sample JPEG images from GIF input images was a
useful testing feature when the data precision was a compile-time
setting.  However, now that the data precision is a runtime setting,
it doesn't make sense for cjpeg to allow data precisions other than
8-bit with GIF input images.  GIF images are limited to 256 colors from
a palette of 8-bit-per-component RGB values, so they cannot take
advantage of the additional gamut afforded by higher data precisions.
This commit is contained in:
DRC
2024-06-22 17:45:31 -04:00
parent ed79114acb
commit 3290711d9c
10 changed files with 48 additions and 67 deletions

View File

@@ -13,6 +13,11 @@ been moved into a new **src/** subdirectory.
performance of compressing/decompressing a grayscale JPEG image from/to a
packed-pixel grayscale image.
3. cjpeg no longer allows GIF input files to be converted into
12-bit-per-sample JPEG files. That was never a useful feature, since GIF
images have at most 256 colors referenced from a palette of 8-bit-per-component
RGB values.
3.0.4
=====