ffmpeg/tests/ref
marcos ashton 0bdda94ccc tests/fate/libavutil: add FATE test for csp
Test the five public functions not already covered by
tests/color_utils: av_csp_luma_coeffs_from_avcsp,
av_csp_primaries_desc_from_id, av_csp_primaries_id_from_desc,
av_csp_approximate_trc_gamma, and av_csp_approximate_eotf_gamma.
Iterates every AVCOL_SPC, AVCOL_PRI, and AVCOL_TRC value including
the extended ranges, round-trips primaries via desc_eq so the
canonical first-match (e.g. smpte170m for smpte240m) is accepted,
checks that a garbage desc returns AVCOL_PRI_UNSPECIFIED, and that
out-of-range enum values return NULL or 0.0 as documented. The
trc/eotf gamma values come from static lookup tables so the
floating point output is bitexact across platforms.

Coverage for libavutil/csp.c: 88.50% -> 94.46%
2026-05-25 21:18:34 +00:00
..
acodec fftools:/ffmpeg_enc: honor the user request for fixed size frames 2026-05-16 13:55:22 -03:00
fate tests/fate/libavutil: add FATE test for csp 2026-05-25 21:18:34 +00:00
lavf fftools:/ffmpeg_enc: honor the user request for fixed size frames 2026-05-16 13:55:22 -03:00
lavf-fate avformat/nal: remove trailing zeroes from NALUs 2026-03-15 19:20:06 -03:00
pixfmt swscale/range_convert: fix truncation bias in range conversion 2025-11-06 20:36:08 +00:00
seek fftools:/ffmpeg_enc: honor the user request for fixed size frames 2026-05-16 13:55:22 -03:00
vsynth tests/fate/vcodec: Test intra_dc_precision 2026-03-07 20:14:36 +01:00