On Fri, 10 Jun 2022, L. E. Segovia via Tiff wrote:

That implies a conversion to RGB. We need the fully decoded, uncompressed YCbCr data, hence why I've been investigating how to make it happen.

That would mean that you would need to learn the sampling factors used for the JPEG, retrieve the uncompressed strips (or maybe compressed is necessary?) from libtiff, and then figure out how to decode it based on the sampling factors. I assume it is possible.

Please let me know when I you figure out how since I am interested. :-)

In libtiff there is tools/rgb2ycbcr.c, which seems to be test code for testing writing YCbCr files. It claims to support JPEG.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff

Reply via email to