[FFmpeg-devel] [PATCH] fate: add vf_overlay test for main source with alpha channel
Michael Niedermayer
michael at niedermayer.cc
Wed Jul 19 20:32:45 EEST 2017
On Tue, Jul 18, 2017 at 05:03:52PM +0200, Peter Große wrote:
> 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
this seems not to pass, neither with nor without the other patch
--- ./tests/ref/fate/filter-overlay-main-alpha 2017-07-19 19:31:05.178270723 +0200
+++ tests/data/fate/filter-overlay-main-alpha 2017-07-19 19:31:33.174271056 +0200
@@ -3,13 +3,13 @@
#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
+0, 0, 0, 1, 2304000, 0xac94c6e0
+0, 1, 1, 1, 2304000, 0xac94c6e0
+0, 2, 2, 1, 2304000, 0xac94c6e0
+0, 3, 3, 1, 2304000, 0xac94c6e0
+0, 4, 4, 1, 2304000, 0xac94c6e0
+0, 5, 5, 1, 2304000, 0xac94c6e0
+0, 6, 6, 1, 2304000, 0xac94c6e0
+0, 7, 7, 1, 2304000, 0xac94c6e0
+0, 8, 8, 1, 2304000, 0xac94c6e0
+0, 9, 9, 1, 2304000, 0xac94c6e0
Test filter-overlay-main-alpha failed. Look at tests/data/fate/filter-overlay-main-alpha.err for details.
make: *** [fate-filter-overlay-main-alpha] Error 1
--- ./tests/ref/fate/filter-overlay-main-alpha 2017-07-19 19:31:05.178270723 +0200
+++ tests/data/fate/filter-overlay-main-alpha 2017-07-19 19:32:34.762271791 +0200
@@ -3,13 +3,13 @@
#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
+0, 0, 0, 1, 2304000, 0x49ef8134
+0, 1, 1, 1, 2304000, 0x49ef8134
+0, 2, 2, 1, 2304000, 0x49ef8134
+0, 3, 3, 1, 2304000, 0x49ef8134
+0, 4, 4, 1, 2304000, 0x49ef8134
+0, 5, 5, 1, 2304000, 0x49ef8134
+0, 6, 6, 1, 2304000, 0x49ef8134
+0, 7, 7, 1, 2304000, 0x49ef8134
+0, 8, 8, 1, 2304000, 0x49ef8134
+0, 9, 9, 1, 2304000, 0x49ef8134
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170719/52289b94/attachment.sig>
More information about the ffmpeg-devel
mailing list