diff mbox series

[FFmpeg-devel] fate: add epx tests

Message ID 20220314221006.290754-1-onemda@gmail.com
State Accepted
Commit 2bcfe78ddf61167841e6ecb1000fe9e323389753
Headers show
Series [FFmpeg-devel] fate: add epx tests | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Paul B Mahol March 14, 2022, 10:10 p.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 tests/fate/filter-video.mak | 6 ++++++
 tests/ref/fate/filter-ep2x  | 7 +++++++
 tests/ref/fate/filter-ep3x  | 7 +++++++
 3 files changed, 20 insertions(+)
 create mode 100644 tests/ref/fate/filter-ep2x
 create mode 100644 tests/ref/fate/filter-ep3x
diff mbox series

Patch

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index d539cccc22..27a794dab4 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -424,6 +424,12 @@  FATE_FILTER_SAMPLES-$(call ALLYES, MATROSKA_DEMUXER OVERLAY_FILTER H264_DECODER
 fate-filter-overlay-dvdsub-2397: tests/data/filtergraphs/overlay-dvdsub-2397
 fate-filter-overlay-dvdsub-2397: CMD = framecrc -auto_conversion_filters -flags bitexact -i $(TARGET_SAMPLES)/filter/242_4.mkv -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay-dvdsub-2397 -c:a copy
 
+FATE_FILTER_EPX-$(call ALLYES, IMAGE2_DEMUXER PNG_DECODER EPX_FILTER) = fate-filter-ep2x fate-filter-ep3x
+FATE_FILTER_SAMPLES-yes += $(FATE_FILTER_EPX-yes)
+fate-filter-ep2x: CMD = framecrc -i $(TARGET_SAMPLES)/filter/pixelart%d.png -vf scale,format=rgb32,epx=2,scale,format=bgra
+fate-filter-ep3x: CMD = framecrc -i $(TARGET_SAMPLES)/filter/pixelart%d.png -vf scale,format=rgb32,epx=3,scale,format=bgra
+fate-filter-epx: $(FATE_FILTER_EPX-yes)
+
 FATE_FILTER_HQX-$(call ALLYES, IMAGE2_DEMUXER PNG_DECODER HQX_FILTER) = fate-filter-hq2x fate-filter-hq3x fate-filter-hq4x
 FATE_FILTER_SAMPLES-yes += $(FATE_FILTER_HQX-yes)
 fate-filter-hq2x: CMD = framecrc -i $(TARGET_SAMPLES)/filter/pixelart%d.png -vf scale,format=rgb32,hqx=2,scale,format=bgra
diff --git a/tests/ref/fate/filter-ep2x b/tests/ref/fate/filter-ep2x
new file mode 100644
index 0000000000..d720510d99
--- /dev/null
+++ b/tests/ref/fate/filter-ep2x
@@ -0,0 +1,7 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 382x574
+#sar 0: 1/1
+0,          0,          0,        1,   877072, 0xfd71968d
+0,          1,          1,        1,   877072, 0x231d2ba7
diff --git a/tests/ref/fate/filter-ep3x b/tests/ref/fate/filter-ep3x
new file mode 100644
index 0000000000..16f714ed46
--- /dev/null
+++ b/tests/ref/fate/filter-ep3x
@@ -0,0 +1,7 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 573x861
+#sar 0: 1/1
+0,          0,          0,        1,  1973412, 0x99d19757
+0,          1,          1,        1,  1973412, 0x8d5288f2