From f94af8d32ae3c2df19d3e0d27ac230e9bd742a91 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Wed, 23 Sep 2015 15:06:02 +0200 Subject: [PATCH] fate: add chroma position scale test The sample position is made weird and non-nominal to force catching such issues as default values or specialized operations hiding issues in corner cases. Signed-off-by: Michael Niedermayer --- tests/fate/filter-video.mak | 4 ++++ tests/ref/fate/filter-scalechroma | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/ref/fate/filter-scalechroma diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index c208d04af4..3c84210baa 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -349,6 +349,10 @@ fate-filter-scale200: CMD = video_filter "scale=w=200:h=200" FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scale500 fate-filter-scale500: CMD = video_filter "scale=w=500:h=500" +FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scalechroma +fate-filter-scalechroma: tests/data/vsynth1.yuv +fate-filter-scalechroma: CMD = framecrc -flags bitexact -s 352x288 -pix_fmt yuv444p -i tests/data/vsynth1.yuv -pix_fmt yuv420p -sws_flags +bitexact -vf scale=out_v_chr_pos=33:out_h_chr_pos=151 + FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip fate-filter-vflip: CMD = video_filter "vflip" diff --git a/tests/ref/fate/filter-scalechroma b/tests/ref/fate/filter-scalechroma new file mode 100644 index 0000000000..930ffefa09 --- /dev/null +++ b/tests/ref/fate/filter-scalechroma @@ -0,0 +1,26 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0xdcab783a +0, 1, 1, 1, 152064, 0x79c7f1f6 +0, 2, 2, 1, 152064, 0x3b810afb +0, 3, 3, 1, 152064, 0x892aca1d +0, 4, 4, 1, 152064, 0x52fdd093 +0, 5, 5, 1, 152064, 0xaa643426 +0, 6, 6, 1, 152064, 0x9ad020ed +0, 7, 7, 1, 152064, 0x5c179057 +0, 8, 8, 1, 152064, 0xa56bf155 +0, 9, 9, 1, 152064, 0x61dcffca +0, 10, 10, 1, 152064, 0x0d51a1d3 +0, 11, 11, 1, 152064, 0x652f9e8d +0, 12, 12, 1, 152064, 0xdc0bb4d8 +0, 13, 13, 1, 152064, 0x561437cf +0, 14, 14, 1, 152064, 0x69ef8e4f +0, 15, 15, 1, 152064, 0xe7244350 +0, 16, 16, 1, 152064, 0xe65651cf +0, 17, 17, 1, 152064, 0xfc9ff646 +0, 18, 18, 1, 152064, 0x6ae10bc4 +0, 19, 19, 1, 152064, 0xd3d1898a +0, 20, 20, 1, 152064, 0xf3f8b139 +0, 21, 21, 1, 152064, 0x68c129be +0, 22, 22, 1, 152064, 0xc3922593 +0, 23, 23, 1, 152064, 0x2b14d96e +0, 24, 24, 1, 152064, 0xab119489 -- GitLab