summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-12-09 01:22:44 +0100
committerNiklas Haas <git@haasn.dev>2022-12-20 14:02:37 +0100
commita69b08790be95fbe943bc5385a5dadbc9dd431ec (patch)
treea4602ad11edc38ea740438de6b12d5bc0641f6de /tests
parent8e2f61ef0467a4b9cf564ca18ebe2c493b80a676 (diff)
downloadffmpeg-a69b08790be95fbe943bc5385a5dadbc9dd431ec.tar.gz
avfilter/vf_tinterlace: support full-range YUV
This filter, when used in the "pad" mode, currently makes the distinction between limited and full range solely by testing for YUVJ pixel formats at link setup time. This is deprecated and should be improved to perform the detection based on the per-frame metadata. In order to make this distinction based on color range metadata, which is only known at the time of filtering frames, for simplicity, we simply allocate two copies of the "black" frame - one for limited range and the other for full range metadata. This could be done more dynamically (e.g. as-needed or simply by blitting the appropriate pixel value directly), but this change is relatively simple and preserves the structure of the existing code. This commit actually fixes a bug in FATE - the new output is correct for the first time. The previous md5 ref was of a frame that incorrectly combined full-range pixel data with limited-range black fields. The corresponding result has been updated. Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/fate/filter-pixfmts-tinterlace_pad2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref/fate/filter-pixfmts-tinterlace_pad b/tests/ref/fate/filter-pixfmts-tinterlace_pad
index 81a6961215..29321e542b 100644
--- a/tests/ref/fate/filter-pixfmts-tinterlace_pad
+++ b/tests/ref/fate/filter-pixfmts-tinterlace_pad
@@ -1,4 +1,4 @@
-gray 7ef396fecd8d1c9fe32173e4415ba671
+gray 227a6fe36a31fbef80210823454131ea
yuv410p 35bc11d0d32efc9e9a969be7d720f4e6
yuv411p 17ef3cd22a74f7368b5e02f68779f294
yuv420p 93d5b6a4c44d67e4d4447e8dd0bf3d33