libheif
libheif copied to clipboard
gray-scale AVIF with limited range gets decoded differently via libheif vs libavif
Hello,
fox.profile2.12bpc.yuv444.monochrome.odd-width.odd-height.avif testfile
source.zip
gets decoded differently via libheif compared to the output of libavif.
heif-convert fox.profile2.12bpc.yuv444.monochrome.odd-width.odd-height.avif libheif.png

avifdec fox.profile2.12bpc.yuv444.monochrome.odd-width.odd-height.avif libavif.png

There is visible difference between the decoded images, libavif version has higher contrast.
I think libheif did not recalculate the limited range to the full range.