From 2dedd8988a12eb088dad418bea9f71e791a27336 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 13 May 2013 10:24:16 +0000 Subject: [PATCH] fate: add colorchannelmixer test Signed-off-by: Paul B Mahol --- tests/fate/filter-video.mak | 3 ++ tests/ref/fate/filter-colorchannelmixer | 51 +++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-colorchannelmixer diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 9ac21f4212..ea1b414c3c 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -25,6 +25,9 @@ fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(SRC_PATH)/test FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1 +FATE_FILTER_VSYNTH-$(call ALLYES, COLORCHANNELMIXER_FILTER PERMS_FILTER) += fate-filter-colorchannelmixer +fate-filter-colorchannelmixer: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf perms=random,colorchannelmixer=.3:.4:.3:0:.1:.8:.1:0:.2:.6:.2:0 + FATE_FILTER_VSYNTH-$(CONFIG_DRAWBOX_FILTER) += fate-filter-drawbox fate-filter-drawbox: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf drawbox=224:24:88:72:red@0.5 diff --git a/tests/ref/fate/filter-colorchannelmixer b/tests/ref/fate/filter-colorchannelmixer new file mode 100644 index 0000000000..e60a27307d --- /dev/null +++ b/tests/ref/fate/filter-colorchannelmixer @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 304128, 0xaeff30de +0, 1, 1, 1, 304128, 0x8d8cf6fe +0, 2, 2, 1, 304128, 0x483e67d8 +0, 3, 3, 1, 304128, 0x6fec2034 +0, 4, 4, 1, 304128, 0x8b7388f0 +0, 5, 5, 1, 304128, 0x8ebf00d5 +0, 6, 6, 1, 304128, 0xc8feeeeb +0, 7, 7, 1, 304128, 0xd4361838 +0, 8, 8, 1, 304128, 0x49b40320 +0, 9, 9, 1, 304128, 0x91c87edd +0, 10, 10, 1, 304128, 0x4313944b +0, 11, 11, 1, 304128, 0x660825c5 +0, 12, 12, 1, 304128, 0xd30b4c9a +0, 13, 13, 1, 304128, 0x31cbd976 +0, 14, 14, 1, 304128, 0xc62eba2e +0, 15, 15, 1, 304128, 0xf3a91371 +0, 16, 16, 1, 304128, 0x3b9a9afa +0, 17, 17, 1, 304128, 0x372a5271 +0, 18, 18, 1, 304128, 0x5d2764fc +0, 19, 19, 1, 304128, 0x8c393190 +0, 20, 20, 1, 304128, 0xebbd603b +0, 21, 21, 1, 304128, 0x2f526678 +0, 22, 22, 1, 304128, 0xf5798d9b +0, 23, 23, 1, 304128, 0xf650a363 +0, 24, 24, 1, 304128, 0xd06b506e +0, 25, 25, 1, 304128, 0xb10d7748 +0, 26, 26, 1, 304128, 0xf52b789f +0, 27, 27, 1, 304128, 0x9e4b3030 +0, 28, 28, 1, 304128, 0xa3c294fc +0, 29, 29, 1, 304128, 0x513baf1a +0, 30, 30, 1, 304128, 0x4bc121f8 +0, 31, 31, 1, 304128, 0xc390b698 +0, 32, 32, 1, 304128, 0x039e5835 +0, 33, 33, 1, 304128, 0x04f048d6 +0, 34, 34, 1, 304128, 0x05bef16b +0, 35, 35, 1, 304128, 0x4ee5b310 +0, 36, 36, 1, 304128, 0x41b38097 +0, 37, 37, 1, 304128, 0x3a99c25e +0, 38, 38, 1, 304128, 0xfdc328ce +0, 39, 39, 1, 304128, 0x7a7344a6 +0, 40, 40, 1, 304128, 0x04463d9e +0, 41, 41, 1, 304128, 0x0f21023e +0, 42, 42, 1, 304128, 0x9b5b27bb +0, 43, 43, 1, 304128, 0x51da80d2 +0, 44, 44, 1, 304128, 0x1f5c663b +0, 45, 45, 1, 304128, 0xc2081fbe +0, 46, 46, 1, 304128, 0xf94eca0c +0, 47, 47, 1, 304128, 0xd659ce23 +0, 48, 48, 1, 304128, 0x92eb1465 +0, 49, 49, 1, 304128, 0x48b1796a