-
Notifications
You must be signed in to change notification settings - Fork 214
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
Inconsistent handling of identity matrix + monochrome b/w library & avifenc #2639
Comments
This was referenced Mar 5, 2025
Having the check in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested at v1.1.1-219-gc3a92347.
This warning in
avifenc.c
comes from 035b550 to fix #1481.reformat.c
has:which will allow the identity matrix with monochrome. This check comes from 424b0f9 to address #1453.
Technically this is considered an invalid bitstream. libaom was recently updated to avoid creating these files (
e107085626 ensure subsampling is 0 w/AOM_CICP_MC_IDENTITY
).From the spec (Version 1.0.0 with Errata 1):
There are no tests that cover this case, but setting
strict_std_compliance = 1
incodec_dav1d.c
would cause the decode to fail:Both the encode and decode failure can be seen with this very quick addition to
tests/gtest/aviflosslesstest.cc
. Removing the libaom update will see the test pass unlessdav1dSettings.strict_std_compliance = 1
is enabled. After the libaom update the encode will fail.There are a couple issues to resolve:
avifImageRGBToYUV()
, c.f.avifPrepareReformatState()
. (Maybe this is OK as a user could fill out the Y plane directly.)cc: @vrabaud @wantehchang
The text was updated successfully, but these errors were encountered: