Add YCgCo-Re AVIF test

Disable AVIF read tests for libavif below 1.2.0,
where YCgCo-Re decoding is expected to fail.
This commit is contained in:
Daniel Novomeský
2025-12-27 21:35:25 +01:00
parent 8c9a7e88e5
commit 3f1ee9f9d1
3 changed files with 9 additions and 3 deletions

View File

@ -102,9 +102,15 @@ if (KF6Archive_FOUND)
endif()
if (TARGET avif)
kimageformats_read_tests(
avif
)
if(${libavif_VERSION} VERSION_GREATER_EQUAL "1.2.0")
kimageformats_read_tests(
avif
)
else()
message(WARNING "libavif ${libavif_VERSION} doesn't support decoding new AVIF files!\n"
"AVIF read tests are disabled, consider updating libavif.")
endif()
kimageformats_write_tests(
avif-nodatacheck-lossless
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB