ffmpeg/libswscale/tests
Niklas Haas 7b6170a9a5 tests/swscale: don't hard-error on low bit depth SSIM loss
This is an expected consequence of the fact that the new ops code does not
yet do error diffusion, which only really affects formats like rgb4 and monow.

Specifically, this avoids erroring out with the following error:

 loss 0.214988 is WORSE by 0.0111071, ref loss 0.203881
 SSIM {Y=0.745148 U=1.000000 V=1.000000 A=1.000000}

When scaling monow -> monow from 96x96 to 128x96.

We can remove this hack again in the future when error diffusion is implemented,
but for now, this check prevents me from easily testing the scaling code.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
2026-03-28 18:50:14 +01:00
..
.gitignore swscale: gitignore: add sws_ops 2026-02-19 17:25:45 +00:00
colorspace.c
floatimg_cmp.c swscale: add support for new 10/12 bit MSB formats 2025-07-11 17:49:58 +02:00
pixdesc_query.c swscale: introduce isSwappedChroma 2022-01-04 19:39:22 -06:00
sws_ops.c swscale/tests/sws_ops: add option for summarizing all operation patterns 2026-03-28 16:48:13 +00:00
swscale.c tests/swscale: don't hard-error on low bit depth SSIM loss 2026-03-28 18:50:14 +01:00