Remove non-free tests/lena.pnm and adapt FATE tests to depend on lena.pnm in the...
[ffmpeg.git] / tests / fate / vcodec.mak
1 fate-vsynth1-%: SRC = tests/data/vsynth1.yuv
2 fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
3 fate-vsynth3-%: SRC = tests/data/vsynth3.yuv
4 fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
5 fate-vsynth%: FMT = avi
6 fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DECINOPTS)"
7 fate-vsynth3-%: CMD = enc_dec "rawvideo -s $(FATEW)x$(FATEH) -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s $(FATEW)x$(FATEH) -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DECINOPTS)"
8 fate-vsynth%: CMP_UNIT = 1
9 fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
10
11 FATE_VCODEC-$(call ENCDEC, AMV, AVI) += amv
12 fate-vsynth%-amv:                ENCOPTS = -strict -1
13
14 FATE_VCODEC-$(call ENCDEC, ASV1, AVI)   += asv1
15 fate-vsynth%-asv1:               ENCOPTS = -qscale 10
16
17 FATE_VCODEC-$(call ENCDEC, ASV2, AVI)   += asv2
18 fate-vsynth%-asv2:               ENCOPTS = -qscale 10
19
20 FATE_VCODEC-$(call ENCDEC, CLJR, AVI)   += cljr
21 fate-vsynth%-cljr:               ENCOPTS = -strict -1
22
23 FATE_VCODEC-$(call ENCDEC, DNXHD, DNXHD) += dnxhd-720p                  \
24                                             dnxhd-720p-rd               \
25                                             dnxhd-720p-10bit
26
27 fate-vsynth%-dnxhd-720p:         ENCOPTS = -s hd720 -b 90M              \
28                                            -pix_fmt yuv422p -frames 5 -qmax 8
29 fate-vsynth%-dnxhd-720p:         FMT     = dnxhd
30
31 fate-vsynth%-dnxhd-720p-rd:      ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
32                                            -pix_fmt yuv422p -frames 5 -qmax 8
33 fate-vsynth%-dnxhd-720p-rd:      FMT     = dnxhd
34
35 fate-vsynth%-dnxhd-720p-10bit:   ENCOPTS = -s hd720 -b 90M              \
36                                            -pix_fmt yuv422p10 -frames 5 -qmax 8
37 fate-vsynth%-dnxhd-720p-10bit:   FMT     = dnxhd
38
39 FATE_VCODEC-$(call ENCDEC, DNXHD, MOV)  += dnxhd-1080i
40 fate-vsynth%-dnxhd-1080i:        ENCOPTS = -s hd1080 -b 120M -flags +ildct \
41                                            -pix_fmt yuv422p -frames 5 -qmax 8
42 fate-vsynth%-dnxhd-1080i:        FMT     = mov
43
44 FATE_VCODEC-$(call ENCDEC, DVVIDEO, DV) += dv dv-411 dv-50
45 fate-vsynth%-dv:                 CODEC   = dvvideo
46 fate-vsynth%-dv:                 ENCOPTS = -dct int -s pal
47 fate-vsynth%-dv:                 FMT     = dv
48
49 fate-vsynth%-dv-411:             CODEC   = dvvideo
50 fate-vsynth%-dv-411:             ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
51                                            -sws_flags area
52 fate-vsynth%-dv-411:             DECOPTS = -sws_flags area
53 fate-vsynth%-dv-411:             FMT     = dv
54
55 fate-vsynth%-dv-50:              CODEC   = dvvideo
56 fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
57                                            -sws_flags neighbor
58 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
59 fate-vsynth%-dv-50:              FMT     = dv
60
61 FATE_VCODEC-$(call ENCDEC, FFV1, AVI)   += ffv1 ffv1.0
62 fate-vsynth%-ffv1:               ENCOPTS = -slices 4
63 fate-vsynth%-ffv1.0:             CODEC   = ffv1
64
65 FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
66 fate-vsynth%-ffvhuff444:         ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p
67 fate-vsynth%-ffvhuff420p12:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv420p12le
68 fate-vsynth%-ffvhuff422p10left:  ENCOPTS = -vcodec ffvhuff -pix_fmt yuv422p10le -pred left
69 fate-vsynth%-ffvhuff444p16:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p16le -pred plane
70
71 FATE_VCODEC-$(call ENCDEC, FLASHSV, FLV) += flashsv
72 fate-vsynth%-flashsv:            ENCOPTS = -sws_flags neighbor+full_chroma_int
73 fate-vsynth%-flashsv:            DECOPTS = -sws_flags area
74 fate-vsynth%-flashsv:            FMT     = flv
75
76 FATE_VCODEC-$(call ENCDEC, FLASHSV2, FLV) += flashsv2
77 fate-vsynth%-flashsv2:           ENCOPTS = -sws_flags neighbor+full_chroma_int -strict experimental -compression_level 0
78 fate-vsynth%-flashsv2:           DECOPTS = -sws_flags area
79 fate-vsynth%-flashsv2:           FMT     = flv
80
81 FATE_VCODEC-$(call ENCDEC, FLV, FLV)    += flv
82 fate-vsynth%-flv:                ENCOPTS = -qscale 10
83 fate-vsynth%-flv:                FMT     = flv
84
85 FATE_VCODEC-$(call ENCDEC, H261, AVI)   += h261 h261-trellis
86 fate-vsynth%-h261:               ENCOPTS = -qscale 11
87 fate-vsynth%-h261-trellis:       ENCOPTS = -qscale 12 -trellis 1 -mbd rd
88
89 FATE_VCODEC-$(call ENCDEC, H263, AVI)   += h263 h263-obmc h263p
90 fate-vsynth%-h263:               ENCOPTS = -qscale 10
91 fate-vsynth%-h263-obmc:          ENCOPTS = -qscale 10 -obmc 1
92 fate-vsynth%-h263p:              ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
93
94 FATE_VCODEC-$(call ENCDEC, HUFFYUV, AVI) += huffyuv huffyuvbgr24 huffyuvbgra
95 fate-vsynth%-huffyuv:            ENCOPTS = -vcodec huffyuv -pix_fmt yuv422p -sws_flags neighbor
96 fate-vsynth%-huffyuv:            DECOPTS = -sws_flags neighbor
97 fate-vsynth%-huffyuvbgr24:       ENCOPTS = -vcodec huffyuv -pix_fmt bgr24 -sws_flags neighbor
98 fate-vsynth%-huffyuvbgr24:       DECOPTS = -sws_flags neighbor
99 fate-vsynth%-huffyuvbgra:        ENCOPTS = -vcodec huffyuv -pix_fmt bgr32 -sws_flags neighbor
100 fate-vsynth%-huffyuvbgra:        DECOPTS = -sws_flags neighbor
101
102 FATE_VCODEC-$(call ENCDEC, JPEGLS, AVI) += jpegls
103 fate-vsynth%-jpegls:             ENCOPTS = -sws_flags neighbor+full_chroma_int
104 fate-vsynth%-jpegls:             DECOPTS = -sws_flags area
105
106 FATE_VCODEC-$(call ENCDEC, JPEG2000, AVI) += jpeg2000 jpeg2000-97
107 fate-vsynth%-jpeg2000:                ENCOPTS = -qscale 7 -strict experimental -pred 1 -pix_fmt rgb24
108 fate-vsynth%-jpeg2000:                DECINOPTS = -vcodec jpeg2000
109 fate-vsynth%-jpeg2000-97:             ENCOPTS = -qscale 7 -strict experimental -pix_fmt rgb24
110 fate-vsynth%-jpeg2000-97:             DECINOPTS = -vcodec jpeg2000
111
112 FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg
113 fate-vsynth%-ljpeg:              ENCOPTS = -strict -1
114
115 FATE_VCODEC-$(call ENCDEC, MJPEG, AVI)  += mjpeg mjpeg-422 mjpeg-444
116 fate-vsynth%-mjpeg:              ENCOPTS = -qscale 9 -pix_fmt yuvj420p
117 fate-vsynth%-mjpeg-422:          ENCOPTS = -qscale 9 -pix_fmt yuvj422p
118 fate-vsynth%-mjpeg-444:          ENCOPTS = -qscale 9 -pix_fmt yuvj444p
119
120 FATE_VCODEC-$(call ENCDEC, MPEG1VIDEO, MPEG1VIDEO MPEGVIDEO) += mpeg1 mpeg1b
121 fate-vsynth%-mpeg1:              FMT     = mpeg1video
122 fate-vsynth%-mpeg1:              CODEC   = mpeg1video
123 fate-vsynth%-mpeg1:              ENCOPTS = -qscale 10
124
125 fate-vsynth%-mpeg1b:             CODEC   = mpeg1video
126 fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 3 -ps 200
127 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
128
129 FATE_MPEG2 = mpeg2                                                      \
130              mpeg2-422                                                  \
131              mpeg2-idct-int                                             \
132              mpeg2-ilace                                                \
133              mpeg2-ivlc-qprd                                            \
134              mpeg2-thread                                               \
135              mpeg2-thread-ivlc
136
137 FATE_VCODEC-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += $(FATE_MPEG2)
138
139 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
140 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
141
142 fate-vsynth%-mpeg2:              ENCOPTS = -qscale 10
143 fate-vsynth%-mpeg2-422:          ENCOPTS = -b:v 1000k                   \
144                                            -bf 2                        \
145                                            -trellis 1                   \
146                                            -flags +mv0+ildct+ilme       \
147                                            -mpv_flags +qp_rd            \
148                                            -intra_vlc 1                 \
149                                            -mbd rd                      \
150                                            -pix_fmt yuv422p
151 fate-vsynth%-mpeg2-idct-int:     ENCOPTS = -qscale 10 -idct int -dct int
152 fate-vsynth%-mpeg2-ilace:        ENCOPTS = -qscale 10 -flags +ildct+ilme
153 fate-vsynth%-mpeg2-ivlc-qprd:    ENCOPTS = -b:v 500k                    \
154                                            -bf 2                        \
155                                            -trellis 1                   \
156                                            -flags +mv0                  \
157                                            -mpv_flags +qp_rd            \
158                                            -intra_vlc 1                 \
159                                            -cmp 2 -subcmp 2             \
160                                            -mbd rd
161 fate-vsynth%-mpeg2-thread:       ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
162                                            -threads 2 -slices 2
163 fate-vsynth%-mpeg2-thread-ivlc:  ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
164                                            -intra_vlc 1 -threads 2 -slices 2
165
166 FATE_MPEG4_MP4 = mpeg4
167 FATE_MPEG4_AVI = mpeg4-rc                                               \
168                  mpeg4-adv                                              \
169                  mpeg4-qprd                                             \
170                  mpeg4-adap                                             \
171                  mpeg4-qpel                                             \
172                  mpeg4-thread                                           \
173                  mpeg4-error                                            \
174                  mpeg4-nr                                               \
175                  mpeg4-nsse
176
177 FATE_VCODEC-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
178 FATE_VCODEC-$(call ENCDEC, MPEG4, AVI)     += $(FATE_MPEG4_AVI)
179
180 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
181 fate-vsynth%-mpeg4:              FMT     = mp4
182
183 fate-vsynth%-mpeg4-adap:         ENCOPTS = -b 550k -bf 2 -flags +mv4+mv0 \
184                                            -trellis 1 -cmp 1 -subcmp 2   \
185                                            -mbd rd -scplx_mask 0.3
186
187 fate-vsynth%-mpeg4-adv:          ENCOPTS = -qscale 9 -flags +mv4+aic       \
188                                            -data_partitioning 1 -trellis 1 \
189                                            -mbd bits -ps 200
190
191 fate-vsynth%-mpeg4-error:        ENCOPTS = -qscale 7 -flags +mv4+aic    \
192                                            -data_partitioning 1 -mbd rd \
193                                            -ps 250 -error 10
194
195 fate-vsynth%-mpeg4-nr:           ENCOPTS = -qscale 8 -flags +mv4 -mbd rd -nr 200
196
197 fate-vsynth%-mpeg4-nsse:         ENCOPTS = -qscale 7 -cmp nsse -subcmp nsse \
198                                            -mbcmp nsse -precmp nsse         \
199                                            -skipcmp nsse
200
201 fate-vsynth%-mpeg4-qpel:         ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
202                                            -bf 2 -cmp 1 -subcmp 2
203
204 fate-vsynth%-mpeg4-qprd:         ENCOPTS = -b 450k -bf 2 -trellis 1          \
205                                            -flags +mv4+mv0 -mpv_flags +qp_rd \
206                                            -cmp 2 -subcmp 2 -mbd rd
207
208 fate-vsynth%-mpeg4-rc:           ENCOPTS = -b 400k -bf 2
209
210 fate-vsynth%-mpeg4-thread:       ENCOPTS = -b 500k -flags +mv4+aic         \
211                                            -data_partitioning 1 -trellis 1 \
212                                            -mbd bits -ps 200 -bf 2         \
213                                            -threads 2 -slices 2
214
215 FATE_VCODEC-$(call ENCDEC, MSMPEG4V3, AVI) += msmpeg4
216 fate-vsynth%-msmpeg4:            ENCOPTS = -qscale 10
217
218 FATE_VCODEC-$(call ENCDEC, MSMPEG4V2, AVI) += msmpeg4v2
219 fate-vsynth%-msmpeg4v2:          ENCOPTS = -qscale 10
220
221 FATE_VCODEC-$(call ENCDEC, PNG, AVI)    += mpng
222 fate-vsynth%-mpng:               CODEC   = png
223
224 FATE_VCODEC-$(call ENCDEC, MSVIDEO1, AVI) += msvideo1
225
226 FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_ks
227 fate-vsynth%-prores:             FMT     = mov
228
229 fate-vsynth%-prores_ks:          ENCOPTS = -profile hq
230 fate-vsynth%-prores_ks:          FMT     = mov
231
232 FATE_VCODEC-$(call ENCDEC, QTRLE, MOV)  += qtrle qtrlegray
233 fate-vsynth%-qtrle:              FMT     = mov
234
235 fate-vsynth%-qtrlegray:          CODEC   = qtrle
236 fate-vsynth%-qtrlegray:          ENCOPTS = -pix_fmt gray
237 fate-vsynth%-qtrlegray:          FMT     = mov
238
239 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += rgb
240 fate-vsynth%-rgb:                CODEC   = rawvideo
241 fate-vsynth%-rgb:                ENCOPTS = -pix_fmt bgr24
242
243 FATE_VCODEC-$(call ENCDEC, ROQ, ROQ)    += roqvideo
244 fate-vsynth%-roqvideo:           CODEC   = roqvideo
245 fate-vsynth%-roqvideo:           ENCOPTS = -frames 5
246 fate-vsynth%-roqvideo:           RAWDECOPTS = -r 30
247 fate-vsynth%-roqvideo:           FMT     = roq
248
249 FATE_VCODEC-$(call ENCDEC, RV10, RM)    += rv10
250 fate-vsynth%-rv10:               ENCOPTS = -qscale 10
251 fate-vsynth%-rv10:               FMT     = rm
252
253 FATE_VCODEC-$(call ENCDEC, RV20, RM)    += rv20
254 fate-vsynth%-rv20:               ENCOPTS = -qscale 10
255 fate-vsynth%-rv20:               FMT     = rm
256
257 FATE_VCODEC-$(call ENCDEC, SNOW, AVI)   += snow snow-hpel snow-ll
258 fate-vsynth%-snow:               ENCOPTS = -qscale 2 -flags +qpel \
259                                            -me_method iter -dia_size 2       \
260                                            -cmp 12 -subcmp 12 -s 128x64
261
262 fate-vsynth%-snow-hpel:          ENCOPTS = -qscale 2              \
263                                            -me_method iter -dia_size 2       \
264                                            -cmp 12 -subcmp 12 -s 128x64
265
266 fate-vsynth%-snow-ll:            ENCOPTS = -qscale .001 -pred 1 \
267                                            -flags +mv4+qpel
268
269 FATE_VCODEC-$(call ENCDEC, SVQ1, MOV)   += svq1
270 fate-vsynth%-svq1:               ENCOPTS = -qscale 3 -pix_fmt yuv410p
271 fate-vsynth%-svq1:               FMT     = mov
272
273 FATE_VCODEC-$(call ENCDEC, R210, AVI)   += r210
274
275 FATE_VCODEC-$(call ENCDEC, V210, AVI)   += v210
276
277 FATE_VCODEC-$(call ENCDEC, V308, AVI)   += v308
278
279 FATE_VCODEC-$(call ENCDEC, V408, AVI)   += v408
280 fate-vsynth%-v408:               ENCOPTS = -sws_flags neighbor+bitexact
281 fate-vsynth%-v408:               DECOPTS = -sws_flags neighbor+bitexact
282
283 FATE_VCODEC-$(call ENCDEC, AVUI, MOV)   += avui
284 fate-vsynth%-avui:               ENCOPTS = -s pal -strict experimental -sws_flags neighbor+bitexact
285 fate-vsynth%-avui:               DECOPTS = -sws_flags neighbor+bitexact
286 fate-vsynth%-avui:               FMT     = mov
287
288 FATE_VCODEC-$(call ENCDEC, WMV1, AVI)   += wmv1
289 fate-vsynth%-wmv1:               ENCOPTS = -qscale 10
290
291 FATE_VCODEC-$(call ENCDEC, WMV2, AVI)   += wmv2
292 fate-vsynth%-wmv2:               ENCOPTS = -qscale 10
293
294 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
295 fate-vsynth%-yuv:                CODEC = rawvideo
296
297 FATE_VCODEC-$(call ENCDEC, YUV4, AVI) += yuv4
298
299 FATE_VCODEC-$(call ENCDEC, Y41P, AVI) += y41p
300
301 FATE_VCODEC-$(call ENCDEC, ZLIB, AVI) += zlib
302
303 FATE_VCODEC += $(FATE_VCODEC-yes)
304 FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
305 FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
306 # Redundant tests because they just resize the input
307 RESIZE_OFF   = dnxhd-720p dnxhd-720p-rd dnxhd-720p-10bit dnxhd-1080i \
308                dv dv-411 dv-50 avui snow snow-hpel snow-ll
309 # Incorrect parameters - usually size or color format restrictions
310 INC_PAR_OFF  = h261 h261-trellis h263 h263p h263-obmc msvideo1 \
311                roqvideo rv10 rv20 y41p qtrlegray
312 VSYNTH3_OFF  = $(RESIZE_OFF) $(INC_PAR_OFF)
313
314 FATE_VCODEC3 = $(filter-out $(VSYNTH3_OFF),$(FATE_VCODEC))
315 FATE_VSYNTH3 = $(FATE_VCODEC3:%=fate-vsynth3-%)
316
317 $(FATE_VSYNTH1): tests/data/vsynth1.yuv
318 $(FATE_VSYNTH2): tests/data/vsynth2.yuv
319 $(FATE_VSYNTH3): tests/data/vsynth3.yuv
320
321 FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH3)
322 FATE_SAMPLES_AVCONV += $(FATE_VSYNTH2)
323
324 fate-vsynth1: $(FATE_VSYNTH1)
325 fate-vsynth2: $(FATE_VSYNTH2)
326 fate-vsynth3: $(FATE_VSYNTH3)
327 fate-vcodec:  fate-vsynth1 fate-vsynth2 fate-vsynth3