diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-05 04:53:46 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-05 04:57:01 +0100 |
commit | aed6ae6b83454a8633b2ffd45ecfef1509354f29 (patch) | |
tree | 08865ed637a17cfdec7a8f16c3888f6bc967aa55 | |
parent | bae640a11600559f2dc54f8b7dbef50c3e49c6d5 (diff) | |
download | fiv-aed6ae6b83454a8633b2ffd45ecfef1509354f29.tar.gz fiv-aed6ae6b83454a8633b2ffd45ecfef1509354f29.tar.xz fiv-aed6ae6b83454a8633b2ffd45ecfef1509354f29.zip |
Add a comment regarding high-precision JPEGs
-rw-r--r-- | fiv-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1538,6 +1538,8 @@ load_libjpeg_turbo(const char *data, gsize len, const FivIoOpenContext *ctx, jpeg_create_decompress(&cinfo); jpeg_mem_src(&cinfo, (const unsigned char *) data, len); (void) jpeg_read_header(&cinfo, true); + // TODO(p): With newer libjpeg-turbo, if cinfo.data_precision is 12 or 16, + // try to load it with higher precision. bool use_cmyk = cinfo.jpeg_color_space == JCS_CMYK || cinfo.jpeg_color_space == JCS_YCCK; |