[FFmpeg-devel] [PATCH 1/2] tests: add palettegen test
Clément Bœsch
u at pkh.me
Mon Feb 23 13:57:00 CET 2015
From: Clément Bœsch <clement at stupeflix.com>
---
tests/fate/filter-video.mak | 9 +++++++++
tests/ref/fate/filter-palettegen-1 | 2 ++
tests/ref/fate/filter-palettegen-2 | 2 ++
3 files changed, 13 insertions(+)
create mode 100644 tests/ref/fate/filter-palettegen-1
create mode 100644 tests/ref/fate/filter-palettegen-2
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index e50e387..2ad8313 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -29,6 +29,15 @@ fate-filter-codecview-mvs: CMD = framecrc -flags2 +export_mvs -i $(TARGET_SAMPLE
FATE_FILTER-$(call ALLYES, SHOWPALETTE_FILTER FLIC_DEMUXER FLIC_DECODER) += fate-filter-showpalette
fate-filter-showpalette: CMD = framecrc -i $(TARGET_SAMPLES)/fli/fli-engines.fli -vf showpalette=3 -pix_fmt bgra
+FATE_FILTER_PALETTEGEN += fate-filter-palettegen-1
+fate-filter-palettegen-1: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -vf palettegen
+
+FATE_FILTER_PALETTEGEN += fate-filter-palettegen-2
+fate-filter-palettegen-2: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -vf palettegen=max_colors=128:reserve_transparent=0:stats_mode=diff
+
+fate-filter-palettegen: $(FATE_FILTER_PALETTEGEN)
+FATE_FILTER-$(call ALLYES, PALETTEGEN_FILTER MATROSKA_DEMUXER H264_DECODER) += $(FATE_FILTER_PALETTEGEN)
+
FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
FATE_FILTER-$(call ALLYES, AVDEVICE LIFE_FILTER) += fate-filter-lavd-life
diff --git a/tests/ref/fate/filter-palettegen-1 b/tests/ref/fate/filter-palettegen-1
new file mode 100644
index 0000000..373d286
--- /dev/null
+++ b/tests/ref/fate/filter-palettegen-1
@@ -0,0 +1,2 @@
+#tb 0: 1001/24000
+0, 0, 0, 1, 1024, 0x8ce9ea44
diff --git a/tests/ref/fate/filter-palettegen-2 b/tests/ref/fate/filter-palettegen-2
new file mode 100644
index 0000000..c987ba8
--- /dev/null
+++ b/tests/ref/fate/filter-palettegen-2
@@ -0,0 +1,2 @@
+#tb 0: 1001/24000
+0, 0, 0, 1, 1024, 0x7cd1f794
--
2.3.0
More information about the ffmpeg-devel
mailing list