diff options
author | Niklas Haas <git@haasn.dev> | 2025-03-04 15:49:50 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-03-31 12:19:26 +0200 |
commit | 92a57f1cfdfeb67eab3f0fac5448b494e668ea66 (patch) | |
tree | f672222eca17832bddf382e7f3b162c06e903065 /tests/checkasm/checkasm.h | |
parent | 8fc9808f18a18e7f0bfcc5de62bf7d9e94f7c455 (diff) | |
download | ffmpeg-92a57f1cfdfeb67eab3f0fac5448b494e668ea66.tar.gz |
tests/swscale: constrain reference SSIM for low bit depth formats
Sometimes, the reference SSIM is significantly higher than the
SSIM level expected for the test. This is the case when the source format
has a much lower bit depth than the destination format. In this case, the fact
that legacy swscale does not accurately preserve the source dither pattern
gives it an unfair advantage in a direct comparison, leading to false
positives.
For example, conversion like rgb4 -> rgb565 should be lossless, but swscale
low passes / downscales the input chroma, throwing away massive amounts of
detail. This gives it a higher SSIM score since the lowpassed result removes
some of the dither noise that was present in the source.
Diffstat (limited to 'tests/checkasm/checkasm.h')
0 files changed, 0 insertions, 0 deletions