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