fate: add framepack filter test
[ffmpeg.git] / tests / fate / filter-video.mak
1 FATE_FILTER-$(call FILTERDEMDEC, DELOGO, RM, RV30) += fate-filter-delogo
2 fate-filter-delogo: CMD = framecrc -i $(TARGET_SAMPLES)/real/rv30.rm -vf delogo=show=0:x=290:y=25:w=26:h=16 -an
3
4 FATE_YADIF += fate-filter-yadif-mode0
5 fate-filter-yadif-mode0: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=0
6
7 FATE_YADIF += fate-filter-yadif-mode1
8 fate-filter-yadif-mode1: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=1
9
10 FATE_FILTER-$(call FILTERDEMDEC, YADIF, MPEGTS, MPEG2VIDEO) += $(FATE_YADIF)
11
12 FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
13
14
15 FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur
16 fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1
17
18 FATE_FILTER_VSYNTH-$(CONFIG_DRAWBOX_FILTER) += fate-filter-drawbox
19 fate-filter-drawbox: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf drawbox=10:20:200:60:red@0.5
20
21 FATE_FILTER_VSYNTH-$(CONFIG_FADE_FILTER) += fate-filter-fade
22 fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out:25:25
23
24 FATE_FILTER_VSYNTH-$(call ALLYES, INTERLACE_FILTER FIELDORDER_FILTER) += fate-filter-fieldorder
25 fate-filter-fieldorder: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf interlace=tff,fieldorder=bff -sws_flags +accurate_rnd+bitexact
26
27 define FATE_FPFILTER_SUITE
28 FATE_FILTER_VSYNTH-$(CONFIG_FRAMEPACK_FILTER) += fate-filter-framepack-$(1)
29 fate-filter-framepack-$(1): CMD = framecrc -c:v pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -c:v pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -filter_complex framepack=$(1) -frames 15
30 endef
31
32 FPMODES = columns frameseq lines sbs tab
33 $(foreach MODE,$(FPMODES),$(eval $(call FATE_FPFILTER_SUITE,$(MODE))))
34
35 FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun
36 fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun
37
38 FATE_FILTER_VSYNTH-$(CONFIG_HQDN3D_FILTER) += fate-filter-hqdn3d
39 fate-filter-hqdn3d: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf hqdn3d
40
41 FATE_FILTER_VSYNTH-$(CONFIG_INTERLACE_FILTER) += fate-filter-interlace
42 fate-filter-interlace: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf interlace
43
44 FATE_FILTER_VSYNTH-$(CONFIG_NEGATE_FILTER) += fate-filter-negate
45 fate-filter-negate: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf negate
46
47 FATE_FILTER_VSYNTH-$(CONFIG_OVERLAY_FILTER) += fate-filter-overlay
48 fate-filter-overlay: tests/data/filtergraphs/overlay
49 fate-filter-overlay: CMD = framecrc -c:v pgmyuv -i $(SRC) -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay
50
51 FATE_FILTER_VSYNTH-$(CONFIG_SELECT_FILTER) += fate-filter-select-alternate
52 fate-filter-select-alternate: tests/data/filtergraphs/select-alternate
53 fate-filter-select-alternate: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_script $(TARGET_PATH)/tests/data/filtergraphs/select-alternate
54
55 FATE_FILTER_VSYNTH-$(call ALLYES, SETPTS_FILTER  SETTB_FILTER) += fate-filter-setpts
56 fate-filter-setpts: tests/data/filtergraphs/setpts
57 fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_script $(TARGET_PATH)/tests/data/filtergraphs/setpts
58
59 FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose
60 fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose
61
62 FATE_TRIM += fate-filter-trim-duration
63 fate-filter-trim-duration: CMD = framecrc -i $(SRC) -vf trim=start=0.4:duration=0.05
64
65 FATE_TRIM += fate-filter-trim-frame
66 fate-filter-trim-frame: CMD = framecrc -i $(SRC) -vf trim=start_frame=3:end_frame=10
67
68 FATE_TRIM += fate-filter-trim-mixed
69 fate-filter-trim-mixed: CMD = framecrc -i $(SRC) -vf trim=start=0.2:end=0.4:start_frame=1:end_frame=3
70
71 FATE_TRIM += fate-filter-trim-time
72 fate-filter-trim-time: CMD = framecrc -i $(SRC) -vf trim=0:0.09
73
74 FATE_FILTER_VSYNTH-$(CONFIG_TRIM_FILTER) += $(FATE_TRIM)
75
76 FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp
77 fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp
78
79
80 FATE_FILTER_VSYNTH-$(CONFIG_CROP_FILTER) += fate-filter-crop
81 fate-filter-crop: CMD = video_filter "crop=iw-100:ih-100:100:100"
82
83 FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER SCALE_FILTER) += fate-filter-crop_scale
84 fate-filter-crop_scale: CMD = video_filter "crop=iw-100:ih-100:100:100,scale=w=400:h=-1"
85
86 FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER SCALE_FILTER VFLIP_FILTER) += fate-filter-crop_scale_vflip
87 fate-filter-crop_scale_vflip: CMD = video_filter "null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=w=200:h=200,scale=w=250:h=250,vflip,vflip,null,scale=w=200:h=200,crop=iw-100:ih-100:100:100,vflip,scale=w=200:h=200,null,vflip,crop=iw-100:ih-100:100:100,null"
88
89 FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER VFLIP_FILTER) += fate-filter-crop_vflip
90 fate-filter-crop_vflip: CMD = video_filter "crop=iw-100:ih-100:100:100,vflip"
91
92 FATE_FILTER_VSYNTH-$(CONFIG_NULL_FILTER) += fate-filter-null
93 fate-filter-null: CMD = video_filter "null"
94
95 FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scale200
96 fate-filter-scale200: CMD = video_filter "scale=w=200:h=200"
97
98 FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scale500
99 fate-filter-scale500: CMD = video_filter "scale=w=500:h=500"
100
101 FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip
102 fate-filter-vflip: CMD = video_filter "vflip"
103
104 FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER VFLIP_FILTER) += fate-filter-vflip_crop
105 fate-filter-vflip_crop: CMD = video_filter "vflip,crop=iw-100:ih-100:100:100"
106
107 FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip_vflip
108 fate-filter-vflip_vflip: CMD = video_filter "vflip,vflip"
109
110
111 FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += fate-filter-pixdesc
112 fate-filter-pixdesc: CMD = pixdesc
113
114
115 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-copy
116 fate-filter-pixfmts-copy:  CMD = pixfmts
117
118 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-crop
119 fate-filter-pixfmts-crop:  CMD = pixfmts "100:100:100:100"
120
121 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-hflip
122 fate-filter-pixfmts-hflip: CMD = pixfmts
123
124 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-null
125 fate-filter-pixfmts-null:  CMD = pixfmts
126
127 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-pad
128 fate-filter-pixfmts-pad:   CMD = pixfmts "500:400:20:20"
129
130 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-scale
131 fate-filter-pixfmts-scale: CMD = pixfmts "200:100"
132
133 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-vflip
134 fate-filter-pixfmts-vflip: CMD = pixfmts
135
136 $(FATE_FILTER_PIXFMTS): libavfilter/filtfmts-test$(EXESUF)
137 FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += $(FATE_FILTER_PIXFMTS)
138
139
140 $(FATE_FILTER_VSYNTH-yes): $(VREF)
141 $(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm
142
143 FATE_AVCONV-$(call DEMDEC, IMAGE2, PGMYUV) += $(FATE_FILTER_VSYNTH-yes)
144
145 fate-vfilter: $(FATE_FILTER-yes) $(FATE_FILTER_VSYNTH-yes)
146
147 fate-filter: fate-afilter fate-vfilter