mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate: add overlay filter tests with alpha
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
16efcfe413
commit
366e6bfc51
@ -204,6 +204,25 @@ FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER OVERLAY_F
|
||||
fate-filter-overlay_yuv444: tests/data/filtergraphs/overlay_yuv444
|
||||
fate-filter-overlay_yuv444: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv444
|
||||
|
||||
FATE_FILTER_OVERLAY_ALPHA += fate-filter-overlay_yuv420_yuva420 fate-filter-overlay_yuv422_yuva422 fate-filter-overlay_yuv444_yuva444 fate-filter-overlay_rgb_rgba fate-filter-overlay_gbrp_gbrap
|
||||
FATE_FILTER_OVERLAY_ALPHA += fate-filter-overlay_yuva420_yuva420 fate-filter-overlay_yuva422_yuva422 fate-filter-overlay_yuva444_yuva444 fate-filter-overlay_rgba_rgba fate-filter-overlay_gbrap_gbrap
|
||||
$(FATE_FILTER_OVERLAY_ALPHA): SRC = $(TARGET_SAMPLES)/png1/lena-rgba.png
|
||||
$(FATE_FILTER_OVERLAY_ALPHA): CMD = framecrc -i $(SRC) -sws_flags +accurate_rnd+bitexact -vf $(FILTER) -frames:v 1
|
||||
|
||||
fate-filter-overlay_yuv420_yuva420: FILTER = "format=yuva420p[over];color=black:128x128,format=yuv420p[main];[main][over]overlay=format=yuv420"
|
||||
fate-filter-overlay_yuv422_yuva422: FILTER = "format=yuva422p[over];color=black:128x128,format=yuv422p[main];[main][over]overlay=format=yuv422"
|
||||
fate-filter-overlay_yuv444_yuva444: FILTER = "format=yuva444p[over];color=black:128x128,format=yuv444p[main];[main][over]overlay=format=yuv444"
|
||||
fate-filter-overlay_rgb_rgba: FILTER = "format=rgba[over];color=black:128x128,format=rgb24[main];[main][over]overlay=format=rgb"
|
||||
fate-filter-overlay_gbrp_gbrap: FILTER = "format=gbrap[over];color=black:128x128,format=gbrp[main];[main][over]overlay=format=gbrp"
|
||||
|
||||
fate-filter-overlay_yuva420_yuva420: FILTER = "format=yuva420p[over];color=black:128x128,format=yuva420p[main];[main][over]overlay=format=yuv420"
|
||||
fate-filter-overlay_yuva422_yuva422: FILTER = "format=yuva422p[over];color=black:128x128,format=yuva422p[main];[main][over]overlay=format=yuv422"
|
||||
fate-filter-overlay_yuva444_yuva444: FILTER = "format=yuva444p[over];color=black:128x128,format=yuva444p[main];[main][over]overlay=format=yuv444"
|
||||
fate-filter-overlay_rgba_rgba: FILTER = "format=rgba[over];color=black:128x128,format=rgba[main];[main][over]overlay=format=rgb"
|
||||
fate-filter-overlay_gbrap_gbrap: FILTER = "format=gbrap[over];color=black:128x128,format=gbrap[main];[main][over]overlay=format=gbrp"
|
||||
|
||||
FATE_FILTER_SAMPLES-$(call ALLYES, PNG_DECODER APNG_DEMUXER FORMAT_FILTER COLOR_FILTER OVERLAY_FILTER) += $(FATE_FILTER_OVERLAY_ALPHA)
|
||||
|
||||
FATE_FILTER_VSYNTH-$(CONFIG_PHASE_FILTER) += fate-filter-phase
|
||||
fate-filter-phase: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf phase
|
||||
|
||||
|
6
tests/ref/fate/filter-overlay_gbrap_gbrap
Normal file
6
tests/ref/fate/filter-overlay_gbrap_gbrap
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 65536, 0xbac99946
|
6
tests/ref/fate/filter-overlay_gbrp_gbrap
Normal file
6
tests/ref/fate/filter-overlay_gbrp_gbrap
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 49152, 0xa905d586
|
6
tests/ref/fate/filter-overlay_rgb_rgba
Normal file
6
tests/ref/fate/filter-overlay_rgb_rgba
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 49152, 0xb0e3d586
|
6
tests/ref/fate/filter-overlay_rgba_rgba
Normal file
6
tests/ref/fate/filter-overlay_rgba_rgba
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 65536, 0x33549946
|
6
tests/ref/fate/filter-overlay_yuv420_yuva420
Normal file
6
tests/ref/fate/filter-overlay_yuv420_yuva420
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 24576, 0x1505f000
|
6
tests/ref/fate/filter-overlay_yuv422_yuva422
Normal file
6
tests/ref/fate/filter-overlay_yuv422_yuva422
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 32768, 0x2d88b114
|
6
tests/ref/fate/filter-overlay_yuv444_yuva444
Normal file
6
tests/ref/fate/filter-overlay_yuv444_yuva444
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 49152, 0x92da3b63
|
6
tests/ref/fate/filter-overlay_yuva420_yuva420
Normal file
6
tests/ref/fate/filter-overlay_yuva420_yuva420
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 40960, 0x0a1ab3c0
|
6
tests/ref/fate/filter-overlay_yuva422_yuva422
Normal file
6
tests/ref/fate/filter-overlay_yuva422_yuva422
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 49152, 0x369974d4
|
6
tests/ref/fate/filter-overlay_yuva444_yuva444
Normal file
6
tests/ref/fate/filter-overlay_yuva444_yuva444
Normal file
@ -0,0 +1,6 @@
|
||||
#tb 0: 1/25
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 128x128
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 65536, 0xa279ff14
|
Loading…
Reference in New Issue
Block a user