diff options
author | Niklas Haas <git@haasn.dev> | 2025-03-25 22:55:13 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-09-01 19:28:36 +0200 |
commit | 5e6ffa0376b6b9fdc0a093d7ba702a88caf23a84 (patch) | |
tree | 9ee087fae2b3d757f11445d9ecb1764189374a2d /doc/patchwork | |
parent | 982d3a98d0247e933783c14df5b3dfb4441769c6 (diff) | |
download | ffmpeg-5e6ffa0376b6b9fdc0a093d7ba702a88caf23a84.tar.gz |
tests/checkasm: add checkasm tests for swscale ops
Because of the lack of an external ABI on low-level kernels, we cannot
directly test internal functions. Instead, we construct a minimal op chain
consisting of a read, the op to be tested, and a write.
The bigger complication arises from the fact that the backend may generate
arbitrary internal state that needs to be passed back to the implementation,
which means we cannot directly call `func_ref` on the generated chain. To get
around this, always compile the op chain twice - once using the backend to be
tested, and once using the reference C backend.
The actual entry point may also just be a shared wrapper, so we need to
be very careful to run checkasm_check_func() on a pseudo-pointer that will
actually be unique for each combination of backend and active CPU flags.
Diffstat (limited to 'doc/patchwork')
0 files changed, 0 insertions, 0 deletions