From aed6ae6b83454a8633b2ffd45ecfef1509354f29 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 5 Dec 2023 04:53:46 +0100 Subject: Add a comment regarding high-precision JPEGs --- fiv-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fiv-io.c b/fiv-io.c index d89be3a..4ad4812 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -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; -- cgit v1.2.3-70-g09d2