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

Improve YUV/RGB conversion handling #2404

Open
maryla-uc opened this issue Aug 21, 2024 · 0 comments
Open

Improve YUV/RGB conversion handling #2404

maryla-uc opened this issue Aug 21, 2024 · 0 comments

Comments

@maryla-uc
Copy link
Collaborator

Some matrix coeffcients values are currently unsupported and trying to use avifdec on an avif image that uses such a matrix coefficient to save it to jpg/png will result in a cryptic "Conversion to RGB failed" error.

Similarly, trying to encode an image with avifenc while setting --cicp to e.g. 1/13/10 (where 10 is the currently unsupported AVIF_MATRIX_COEFFICIENTS_BT2020_CL value) will result in the message Conversion to YUV failed

The tools should at the very least provide a more useful error, and ideally handle all possible matrix coefficient values.

See:

// These matrix coefficients values are currently unsupported. Revise this list as more support is added.

See for example the test image Chimera_10bit_cropped_to_1920x1008_with_HDR_metadata.avif in AOMediaCodec/av1-avif#202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant