Skip to content
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

Add support for reading and writing the cICP chunk #565

Open
wants to merge 1 commit into
base: libpng16
Choose a base branch
from

Commits on Jun 22, 2024

  1. Add support for reading and writing the cICP chunk

    This chunk was added in the third edition of the PNG specification and
    contains Coding Independent Code Points (related to color space
    description). It is fairly simple as it only contains four fields of one
    byte each: Colour Primaries, Transfer Function, Matrix Coefficients,
    Video Full Range Flag.
    
    The test file originally comes from the related WPT test case:
    https://github.com/web-platform-tests/wpt/blob/master/png/support/cicp-display-p3.png
    
    Note that I reencoded the file to make it match libpng's default
    encoding parameters (it only modifies the IDAT chunk).
    LucasChollet committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    26c68b2 View commit details
    Browse the repository at this point in the history