ffmpeg/libswscale/tests
Ramiro Polla 5640bd3a4f swscale/tests/swscale: require reference file to perform comparisons
The legacy scaler is no longer implicitly used to generate a reference
to perform comparisons for every conversion. It is now up to the user
to generate a reference file and use it as input for a separate run to
perform comparisons.

It is now possible to compare against previous runs of the graph-based
scaler, for example to test for newer optimizations.

This reduces the overall time necessary to obtain speedup numbers from
the legacy scaler to the graph-based scaler (or any other comparison,
for that matter) since the reference must only be run once.

For example, to check the speedup between the legacy scaler and the
graph-based scaler:
  ./libswscale/tests/swscale [...] -bench 50 -legacy 1 > legacy_ref.txt
  ./libswscale/tests/swscale [...] -bench 50 -ref legacy_ref.txt

If no -ref file is specified, we are assuming that we are generating a
reference file, and therefore all information is printed (including
ssim/loss, and benchmarks if -bench is used).

If a -ref file is specified, the output printed depends on whether we
are testing for correctness (ssim/loss only) or benchmarking (time/
speedup only, along with overall speedup).

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
2026-03-14 06:13:19 +00: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/format: pass SwsFormat by ref instead of by value where possible 2026-02-26 18:08:49 +00:00
swscale.c swscale/tests/swscale: require reference file to perform comparisons 2026-03-14 06:13:19 +00:00