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