libheif icon indicating copy to clipboard operation
libheif copied to clipboard

gray-scale AVIF with limited range gets decoded differently via libheif vs libavif

Open novomesk opened this issue 4 years ago • 3 comments

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 libheif

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

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.

novomesk avatar Dec 19 '21 10:12 novomesk