-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility of implementing YCCK color transform as available in some jpeg files? #142
Comments
After studying this issue, it appears that CMYK is functionally equivalent to RGBA, as K functions as an inverse alpha mask. The missing capability is CMY<-->RGB conversion, as YCC is merely YUV transform applied to CMY. Support for RGBA has been added since z.lib 3.0, so this feature is tractable. |
Still debating whether to implement this internally. It is possible to transform YCCK/CMYK to YUV/RGB with an I/O callback: YUV: RGB: or more abstractly Negative = (1 - K) * Negative_K + K * Black where Black = [1 0 0] for YCC and [1 1 1] for CMY |
what are C0 and C1 values? |
First and second negative chroma channels. Per "YCC". |
@richardpl Can you provide a raw dump of YCCK or CMYK image data? |
Relevant file can be downloaded from here: |
The FFmpeg tracker only has a JPEG file. If I open it in an image viewer, I only get the decoded RGB. Please upload the raw YCCK pixel data. |
The JPEG is fine; the viewer is the problem. Unfortunately there are very few formats that hold CMYK, so converting is tough.
The YCCK thing is also just a big hack given the CMYK/RGB transform, but we all know that. The point is that it gives coding gain. |
For more info read:
http://halicery.com/Image%20Decoders/JPEG/JPEG%20notes/CMYK.html
The text was updated successfully, but these errors were encountered: