[FFmpeg-devel] [PATCH] fate: add vf_overlay test for main source with alpha channel
Peter Große
pegro at friiks.de
Tue Jul 18 18:03:52 EEST 2017
Signed-off-by: Peter Große <pegro at friiks.de>
---
tests/fate/filter-video.mak | 5 +++++
tests/ref/fate/filter-overlay-main-alpha | 15 +++++++++++++++
2 files changed, 20 insertions(+)
create mode 100644 tests/ref/fate/filter-overlay-main-alpha
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 9186593c10..cbfee449b6 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -341,6 +341,11 @@ 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 -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_SAMPLES-$(call ALLYES, MXF_DEMUXER OVERLAY_FILTER DNXHD_DECODER PNG_DECODER) += fate-filter-overlay-main-alpha
+fate-filter-overlay-main-alpha: SRC = $(TARGET_SAMPLES)/mxf/track_01_v02.mxf
+fate-filter-overlay-main-alpha: OVERLAY = $(TARGET_SAMPLES)/png1/lena-rgba.png
+fate-filter-overlay-main-alpha: CMD = framecrc -flags bitexact -i $(SRC) -filter_complex "movie='$(OVERLAY)'[logo];[v:0][logo]overlay" -an
+
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 hqx=2 -pix_fmt bgra
diff --git a/tests/ref/fate/filter-overlay-main-alpha b/tests/ref/fate/filter-overlay-main-alpha
new file mode 100644
index 0000000000..5e5cdfd0d2
--- /dev/null
+++ b/tests/ref/fate/filter-overlay-main-alpha
@@ -0,0 +1,15 @@
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 1/1
+0, 0, 0, 1, 2304000, 0x72b48234
+0, 1, 1, 1, 2304000, 0x72b48234
+0, 2, 2, 1, 2304000, 0x72b48234
+0, 3, 3, 1, 2304000, 0x72b48234
+0, 4, 4, 1, 2304000, 0x72b48234
+0, 5, 5, 1, 2304000, 0x72b48234
+0, 6, 6, 1, 2304000, 0x72b48234
+0, 7, 7, 1, 2304000, 0x72b48234
+0, 8, 8, 1, 2304000, 0x72b48234
+0, 9, 9, 1, 2304000, 0x72b48234
--
2.13.0
More information about the ffmpeg-devel
mailing list