]> git.sesse.net Git - ffmpeg/blob - tests/fate/vcodec.mak
Merge commit 'f0ccc65bc9ab9ddf1366066395564c71bcc825ee'
[ffmpeg] / 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, CINEPAK, MOV) += cinepak
22 fate-vsynth%-cinepak:            ENCOPTS  = -vcodec cinepak -frames 3
23 fate-vsynth%-cinepak:            FMT      = mov
24
25 FATE_VCODEC-$(call ENCDEC, CLJR, AVI)   += cljr
26 fate-vsynth%-cljr:               ENCOPTS = -strict -1
27
28 FATE_VCODEC-$(call ENCDEC, DNXHD, DNXHD) += dnxhd-720p                  \
29                                             dnxhd-720p-rd               \
30                                             dnxhd-720p-10bit            \
31                                             dnxhd-720p-hr-lb            \
32                                             dnxhd-4k-hr-lb              \
33                                             dnxhd-uhd-hr-sq             \
34                                             dnxhd-2k-hr-hq              \
35                                             dnxhd-edge1-hr              \
36                                             dnxhd-edge2-hr              \
37                                             dnxhd-edge3-hr
38
39 FATE_VCODEC-$(call ENCDEC, VC2 DIRAC, MOV) += vc2-420p vc2-420p10 vc2-420p12 \
40                                               vc2-422p vc2-422p10 vc2-422p12 \
41                                               vc2-444p vc2-444p10 vc2-444p12
42 fate-vsynth1-vc2-%:              FMT      = mov
43 fate-vsynth1-vc2-%:              ENCOPTS = -pix_fmt yuv$(@:fate-vsynth1-vc2-%=%) \
44                                            -vcodec vc2 -frames 5 -strict -1
45 fate-vsynth2-vc2-%:              FMT      = mov
46 fate-vsynth2-vc2-%:              ENCOPTS = -pix_fmt yuv$(@:fate-vsynth2-vc2-%=%) \
47                                            -vcodec vc2 -frames 5 -strict -1
48 fate-vsynth_lena-vc2-%:          FMT      = mov
49 fate-vsynth_lena-vc2-%:          ENCOPTS = -pix_fmt yuv$(@:fate-vsynth_lena-vc2-%=%) \
50                                            -vcodec vc2 -frames 5 -strict -1
51
52 fate-vsynth%-dnxhd-720p:         ENCOPTS = -s hd720 -b 90M              \
53                                            -pix_fmt yuv422p -frames 5 -qmax 8
54 fate-vsynth%-dnxhd-720p:         FMT     = dnxhd
55
56 fate-vsynth%-dnxhd-720p-rd:      ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
57                                            -pix_fmt yuv422p -frames 5 -qmax 8
58 fate-vsynth%-dnxhd-720p-rd:      FMT     = dnxhd
59
60 fate-vsynth%-dnxhd-720p-10bit:   ENCOPTS = -s hd720 -b 90M              \
61                                            -pix_fmt yuv422p10 -frames 5 -qmax 8
62 fate-vsynth%-dnxhd-720p-10bit:   FMT     = dnxhd
63
64 fate-vsynth%-dnxhd-720p-hr-lb: ENCOPTS   = -s hd720 -profile:v dnxhr_lb \
65                                            -pix_fmt yuv422p -frames 5
66 fate-vsynth%-dnxhd-720p-hr-lb: DECOPTS    = -sws_flags area+accurate_rnd+bitexact
67 fate-vsynth%-dnxhd-720p-hr-lb: FMT       = dnxhd
68
69 fate-vsynth%-dnxhd-4k-hr-lb:  ENCOPTS    = -s 4k -profile:v dnxhr_lb \
70                                            -pix_fmt yuv422p -frames 5
71 fate-vsynth%-dnxhd-4k-hr-lb:  DECOPTS    = -sws_flags area+accurate_rnd+bitexact
72 fate-vsynth%-dnxhd-4k-hr-lb:  FMT        = dnxhd
73
74 fate-vsynth%-dnxhd-uhd-hr-sq: ENCOPTS    = -s uhd2160 -profile:v dnxhr_sq \
75                                            -pix_fmt yuv422p -frames 5
76 fate-vsynth%-dnxhd-uhd-hr-sq: DECOPTS    = -sws_flags area+accurate_rnd+bitexact
77 fate-vsynth%-dnxhd-uhd-hr-sq: FMT        = dnxhd
78
79 fate-vsynth%-dnxhd-2k-hr-hq:  ENCOPTS    = -s 2k -profile:v dnxhr_hq \
80                                          -pix_fmt yuv422p -frames 5
81 fate-vsynth%-dnxhd-2k-hr-hq:  DECOPTS    = -sws_flags area+accurate_rnd+bitexact
82 fate-vsynth%-dnxhd-2k-hr-hq:  FMT        = dnxhd
83
84 fate-vsynth%-dnxhd-edge1-hr:  ENCOPTS    = -s 264x128 -profile:v dnxhr_hq \
85                                            -pix_fmt yuv422p -frames 5
86 fate-vsynth%-dnxhd-edge1-hr:  DECOPTS    = -sws_flags area+accurate_rnd+bitexact
87 fate-vsynth%-dnxhd-edge1-hr:  FMT        = dnxhd
88
89 fate-vsynth%-dnxhd-edge2-hr:  ENCOPTS    = -s 271x135 -profile:v dnxhr_hq \
90                                            -pix_fmt yuv422p -frames 5
91 fate-vsynth%-dnxhd-edge2-hr:  DECOPTS    = -sws_flags area+accurate_rnd+bitexact
92 fate-vsynth%-dnxhd-edge2-hr:  FMT        = dnxhd
93
94 fate-vsynth%-dnxhd-edge3-hr:  ENCOPTS    = -s 257x121 -profile:v dnxhr_hq \
95                                            -pix_fmt yuv422p -frames 5
96 fate-vsynth%-dnxhd-edge3-hr:  DECOPTS    = -sws_flags area+accurate_rnd+bitexact
97 fate-vsynth%-dnxhd-edge3-hr:  FMT        = dnxhd
98
99 FATE_VCODEC-$(call ENCDEC, DNXHD, MOV)  += dnxhd-1080i dnxhd-1080i-10bit dnxhd-1080i-colr \
100                                            dnxhd-hr-lb-mov dnxhd-hr-sq-mov dnxhd-hr-hq-mov
101 fate-vsynth%-dnxhd-1080i:        ENCOPTS = -s hd1080 -b 120M -flags +ildct \
102                                            -pix_fmt yuv422p -frames 5 -qmax 8
103 fate-vsynth%-dnxhd-1080i:        FMT     = mov
104
105 fate-vsynth%-dnxhd-1080i-10bit:  ENCOPTS = -s hd1080 -b 185M -flags +ildct \
106                                            -pix_fmt yuv422p10 -frames 5 -qmax 8
107 fate-vsynth%-dnxhd-1080i-10bit:  DECOPTS = -sws_flags area+accurate_rnd+bitexact
108 fate-vsynth%-dnxhd-1080i-10bit:  FMT     = mov
109
110 fate-vsynth%-dnxhd-1080i-colr:   ENCOPTS = -s hd1080 -b 120M -flags +ildct -movflags write_colr \
111                                            -pix_fmt yuv422p -frames 5 -qmax 8
112 fate-vsynth%-dnxhd-1080i-colr:   DECOPTS = -sws_flags area+accurate_rnd+bitexact
113 fate-vsynth%-dnxhd-1080i-colr:   FMT     = mov
114
115 fate-vsynth%-dnxhd-hr-lb-mov:   ENCOPTS = -s uhd2160 -profile:v dnxhr_lb \
116                                            -pix_fmt yuv422p -frames 5
117 fate-vsynth%-dnxhd-hr-lb-mov:   DECOPTS = -sws_flags area+accurate_rnd+bitexact
118 fate-vsynth%-dnxhd-hr-lb-mov:   FMT     = mov
119
120 fate-vsynth%-dnxhd-hr-sq-mov:   ENCOPTS = -s 2kscope -profile:v dnxhr_sq \
121                                            -pix_fmt yuv422p -frames 5
122 fate-vsynth%-dnxhd-hr-sq-mov:   DECOPTS = -sws_flags area+accurate_rnd+bitexact
123 fate-vsynth%-dnxhd-hr-sq-mov:   FMT     = mov
124
125 fate-vsynth%-dnxhd-hr-hq-mov:   ENCOPTS = -s 2kflat -profile:v dnxhr_hq \
126                                            -pix_fmt yuv422p -frames 5
127 fate-vsynth%-dnxhd-hr-hq-mov:   DECOPTS = -sws_flags area+accurate_rnd+bitexact
128 fate-vsynth%-dnxhd-hr-hq-mov:   FMT     = mov
129
130 FATE_VCODEC-$(call ENCDEC, DVVIDEO, DV) += dv dv-411 dv-50
131 fate-vsynth%-dv:                 CODEC   = dvvideo
132 fate-vsynth%-dv:                 ENCOPTS = -dct int -s pal
133 fate-vsynth%-dv:                 FMT     = dv
134
135 fate-vsynth%-dv-411:             CODEC   = dvvideo
136 fate-vsynth%-dv-411:             ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
137                                            -sws_flags area
138 fate-vsynth%-dv-411:             DECOPTS = -sws_flags area
139 fate-vsynth%-dv-411:             FMT     = dv
140
141 fate-vsynth%-dv-50:              CODEC   = dvvideo
142 fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
143                                            -sws_flags neighbor
144 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
145 fate-vsynth%-dv-50:              FMT     = dv
146
147 FATE_VCODEC-$(call ENCDEC, FFV1, AVI)   += ffv1 ffv1-v0 \
148                                            ffv1-v3-yuv420p ffv1-v3-yuv422p10 ffv1-v3-yuv444p16 \
149                                            ffv1-v3-bgr0 ffv1-v3-rgb48
150 fate-vsynth%-ffv1:               ENCOPTS = -slices 4
151 fate-vsynth%-ffv1-v0:            CODEC   = ffv1
152 fate-vsynth%-ffv1-v3-yuv420p:    ENCOPTS = -level 3 -pix_fmt yuv420p
153 fate-vsynth%-ffv1-v3-yuv422p10:  ENCOPTS = -level 3 -pix_fmt yuv422p10 \
154                                            -sws_flags neighbor+bitexact
155 fate-vsynth%-ffv1-v3-yuv422p10:  DECOPTS = -sws_flags neighbor+bitexact
156 fate-vsynth%-ffv1-v3-yuv444p16:  ENCOPTS = -level 3 -pix_fmt yuv444p16 \
157                                            -sws_flags neighbor+bitexact
158 fate-vsynth%-ffv1-v3-yuv444p16:  DECOPTS = -sws_flags neighbor+bitexact
159 fate-vsynth%-ffv1-v3-bgr0:       ENCOPTS = -level 3 -pix_fmt bgr0 \
160                                            -sws_flags neighbor+bitexact
161 fate-vsynth%-ffv1-v3-bgr0:       DECOPTS = -sws_flags neighbor+bitexact
162 fate-vsynth%-ffv1-v3-rgb48:      ENCOPTS = -level 3 -pix_fmt rgb48 -strict -2 \
163                                            -sws_flags neighbor+bitexact
164 fate-vsynth%-ffv1-v3-rgb48:      DECOPTS = -sws_flags neighbor+bitexact
165
166 FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
167 fate-vsynth%-ffvhuff444:         ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p
168 fate-vsynth%-ffvhuff420p12:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv420p12le
169 fate-vsynth%-ffvhuff422p10left:  ENCOPTS = -vcodec ffvhuff -pix_fmt yuv422p10le -pred left
170 fate-vsynth%-ffvhuff444p16:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p16le -pred plane
171
172 FATE_VCODEC-$(call ENCDEC, FLASHSV, FLV) += flashsv
173 fate-vsynth%-flashsv:            ENCOPTS = -sws_flags neighbor+full_chroma_int
174 fate-vsynth%-flashsv:            DECOPTS = -sws_flags area
175 fate-vsynth%-flashsv:            FMT     = flv
176
177 FATE_VCODEC-$(call ENCDEC, FLASHSV2, FLV) += flashsv2
178 fate-vsynth%-flashsv2:           ENCOPTS = -sws_flags neighbor+full_chroma_int -strict experimental -compression_level 0
179 fate-vsynth%-flashsv2:           DECOPTS = -sws_flags area
180 fate-vsynth%-flashsv2:           FMT     = flv
181
182 FATE_VCODEC-$(call ENCDEC, FLV, FLV)    += flv
183 fate-vsynth%-flv:                ENCOPTS = -qscale 10
184 fate-vsynth%-flv:                FMT     = flv
185
186 FATE_VCODEC-$(call ENCDEC, H261, AVI)   += h261 h261-trellis
187 fate-vsynth%-h261:               ENCOPTS = -qscale 11
188 fate-vsynth%-h261-trellis:       ENCOPTS = -qscale 12 -trellis 1 -mbd rd
189
190 FATE_VCODEC-$(call ENCDEC, H263, AVI)   += h263 h263-obmc h263p
191 fate-vsynth%-h263:               ENCOPTS = -qscale 10
192 fate-vsynth%-h263-obmc:          ENCOPTS = -qscale 10 -obmc 1
193 fate-vsynth%-h263p:              ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
194
195 FATE_VCODEC-$(call ENCDEC, HUFFYUV, AVI) += huffyuv huffyuvbgr24 huffyuvbgra
196 fate-vsynth%-huffyuv:            ENCOPTS = -vcodec huffyuv -pix_fmt yuv422p -sws_flags neighbor
197 fate-vsynth%-huffyuv:            DECOPTS = -sws_flags neighbor
198 fate-vsynth%-huffyuvbgr24:       ENCOPTS = -vcodec huffyuv -pix_fmt bgr24 -sws_flags neighbor
199 fate-vsynth%-huffyuvbgr24:       DECOPTS = -sws_flags neighbor
200 fate-vsynth%-huffyuvbgra:        ENCOPTS = -vcodec huffyuv -pix_fmt bgr32 -sws_flags neighbor
201 fate-vsynth%-huffyuvbgra:        DECOPTS = -sws_flags neighbor
202
203 FATE_VCODEC-$(call ENCDEC, JPEGLS, AVI) += jpegls
204 fate-vsynth%-jpegls:             ENCOPTS = -sws_flags neighbor+full_chroma_int
205 fate-vsynth%-jpegls:             DECOPTS = -sws_flags area
206
207 FATE_VCODEC-$(call ENCDEC, JPEG2000, AVI) += jpeg2000 jpeg2000-97
208 fate-vsynth%-jpeg2000:                ENCOPTS = -qscale 7 -strict experimental -pred 1 -pix_fmt rgb24
209 fate-vsynth%-jpeg2000:                DECINOPTS = -vcodec jpeg2000
210 fate-vsynth%-jpeg2000-97:             ENCOPTS = -qscale 7 -strict experimental -pix_fmt rgb24
211 fate-vsynth%-jpeg2000-97:             DECINOPTS = -vcodec jpeg2000
212
213 FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg
214 fate-vsynth%-ljpeg:              ENCOPTS = -strict -1
215
216 FATE_VCODEC-$(call ENCDEC, MJPEG, AVI)  += mjpeg mjpeg-422 mjpeg-444 mjpeg-trell mjpeg-huffman mjpeg-trell-huffman
217 fate-vsynth%-mjpeg:                   ENCOPTS = -qscale 9 -pix_fmt yuvj420p
218 fate-vsynth%-mjpeg-422:               ENCOPTS = -qscale 9 -pix_fmt yuvj422p
219 fate-vsynth%-mjpeg-444:               ENCOPTS = -qscale 9 -pix_fmt yuvj444p
220 fate-vsynth%-mjpeg-trell:             ENCOPTS = -qscale 9 -pix_fmt yuvj420p -trellis 1
221 fate-vsynth%-mjpeg-huffman:           ENCOPTS = -qscale 9 -pix_fmt yuvj420p -huffman optimal
222 fate-vsynth%-mjpeg-trell-huffman:     ENCOPTS = -qscale 9 -pix_fmt yuvj420p -trellis 1 -huffman optimal
223
224 FATE_VCODEC-$(call ENCDEC, MPEG1VIDEO, MPEG1VIDEO MPEGVIDEO) += mpeg1 mpeg1b
225 fate-vsynth%-mpeg1:              FMT     = mpeg1video
226 fate-vsynth%-mpeg1:              CODEC   = mpeg1video
227 fate-vsynth%-mpeg1:              ENCOPTS = -qscale 10
228
229 fate-vsynth%-mpeg1b:             CODEC   = mpeg1video
230 fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 3 -ps 200
231 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
232
233 FATE_MPEG2 = mpeg2                                                      \
234              mpeg2-422                                                  \
235              mpeg2-idct-int                                             \
236              mpeg2-ilace                                                \
237              mpeg2-ivlc-qprd                                            \
238              mpeg2-thread                                               \
239              mpeg2-thread-ivlc
240
241 FATE_VCODEC-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += $(FATE_MPEG2)
242
243 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
244 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
245
246 fate-vsynth%-mpeg2:              ENCOPTS = -qscale 10
247 fate-vsynth%-mpeg2-422:          ENCOPTS = -b:v 1000k                   \
248                                            -bf 2                        \
249                                            -trellis 1                   \
250                                            -flags +ildct+ilme           \
251                                            -mpv_flags +qp_rd+mv0        \
252                                            -intra_vlc 1                 \
253                                            -mbd rd                      \
254                                            -pix_fmt yuv422p
255 fate-vsynth%-mpeg2-idct-int:     ENCOPTS = -qscale 10 -idct int -dct int
256 fate-vsynth%-mpeg2-ilace:        ENCOPTS = -qscale 10 -flags +ildct+ilme
257 fate-vsynth%-mpeg2-ivlc-qprd:    ENCOPTS = -b:v 500k                    \
258                                            -bf 2                        \
259                                            -trellis 1                   \
260                                            -mpv_flags +qp_rd+mv0        \
261                                            -intra_vlc 1                 \
262                                            -cmp 2 -subcmp 2             \
263                                            -mbd rd
264 fate-vsynth%-mpeg2-thread:       ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
265                                            -threads 2 -slices 2
266 fate-vsynth%-mpeg2-thread-ivlc:  ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
267                                            -intra_vlc 1 -threads 2 -slices 2
268
269 FATE_MPEG4_MP4 = mpeg4
270 FATE_MPEG4_AVI = mpeg4-rc                                               \
271                  mpeg4-adv                                              \
272                  mpeg4-qprd                                             \
273                  mpeg4-adap                                             \
274                  mpeg4-qpel                                             \
275                  mpeg4-thread                                           \
276                  mpeg4-error                                            \
277                  mpeg4-nr                                               \
278                  mpeg4-nsse
279
280 FATE_VCODEC-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
281 FATE_VCODEC-$(call ENCDEC, MPEG4, AVI)     += $(FATE_MPEG4_AVI)
282
283 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
284 fate-vsynth%-mpeg4:              FMT     = mp4
285
286 fate-vsynth%-mpeg4-adap:         ENCOPTS = -b 550k -bf 2 -flags +mv4     \
287                                            -trellis 1 -cmp 1 -subcmp 2   \
288                                            -mbd rd -scplx_mask 0.3       \
289                                            -mpv_flags +mv0
290
291 fate-vsynth%-mpeg4-adv:          ENCOPTS = -qscale 9 -flags +mv4+aic       \
292                                            -data_partitioning 1 -trellis 1 \
293                                            -mbd bits -ps 200
294
295 fate-vsynth%-mpeg4-error:        ENCOPTS = -qscale 7 -flags +mv4+aic    \
296                                            -data_partitioning 1 -mbd rd \
297                                            -ps 250 -error_rate 10
298
299 fate-vsynth%-mpeg4-nr:           ENCOPTS = -qscale 8 -flags +mv4 -mbd rd \
300                                            -noise_reduction 200
301
302 fate-vsynth%-mpeg4-nsse:         ENCOPTS = -qscale 7 -cmp nsse -subcmp nsse \
303                                            -mbcmp nsse -precmp nsse         \
304                                            -skipcmp nsse
305
306 fate-vsynth%-mpeg4-qpel:         ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
307                                            -bf 2 -cmp 1 -subcmp 2
308
309 fate-vsynth%-mpeg4-qprd:         ENCOPTS = -b 450k -bf 2 -trellis 1          \
310                                            -flags +mv4 -mpv_flags +qp_rd+mv0 \
311                                            -cmp 2 -subcmp 2 -mbd rd
312
313 fate-vsynth%-mpeg4-rc:           ENCOPTS = -b 400k -bf 2
314
315 fate-vsynth%-mpeg4-thread:       ENCOPTS = -b 500k -flags +mv4+aic         \
316                                            -data_partitioning 1 -trellis 1 \
317                                            -mbd bits -ps 200 -bf 2         \
318                                            -threads 2 -slices 2
319
320 FATE_VCODEC-$(call ENCDEC, MSMPEG4V3, AVI) += msmpeg4
321 fate-vsynth%-msmpeg4:            ENCOPTS = -qscale 10
322
323 FATE_VCODEC-$(call ENCDEC, MSMPEG4V2, AVI) += msmpeg4v2
324 fate-vsynth%-msmpeg4v2:          ENCOPTS = -qscale 10
325
326 FATE_VCODEC-$(call ENCDEC, PNG, AVI)    += mpng
327 fate-vsynth%-mpng:               CODEC   = png
328
329 FATE_VCODEC-$(call ENCDEC, MSVIDEO1, AVI) += msvideo1
330
331 FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_ks
332 fate-vsynth%-prores:             FMT     = mov
333
334 fate-vsynth%-prores_ks:          ENCOPTS = -profile hq
335 fate-vsynth%-prores_ks:          FMT     = mov
336
337 FATE_VCODEC-$(call ENCDEC, QTRLE, MOV)  += qtrle qtrlegray
338 fate-vsynth%-qtrle:              FMT     = mov
339
340 fate-vsynth%-qtrlegray:          CODEC   = qtrle
341 fate-vsynth%-qtrlegray:          ENCOPTS = -pix_fmt gray
342 fate-vsynth%-qtrlegray:          FMT     = mov
343
344 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += rgb bpp1 bpp15
345 fate-vsynth%-rgb:                CODEC   = rawvideo
346 fate-vsynth%-rgb:                ENCOPTS = -pix_fmt bgr24
347 fate-vsynth%-bpp1:               CODEC   = rawvideo
348 fate-vsynth%-bpp1:               ENCOPTS = -pix_fmt monow
349 fate-vsynth%-bpp15:              CODEC   = rawvideo
350 fate-vsynth%-bpp15:              ENCOPTS = -pix_fmt bgr555le
351
352 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, MOV) += mov-bgr24 mov-bpp15 mov-bpp16
353 fate-vsynth%-mov-bgr24:          CODEC   = rawvideo
354 fate-vsynth%-mov-bgr24:          ENCOPTS = -pix_fmt bgr24
355 fate-vsynth%-mov-bgr24:          FMT      = mov
356 fate-vsynth%-mov-bpp15:          CODEC   = rawvideo
357 fate-vsynth%-mov-bpp15:          ENCOPTS = -pix_fmt rgb555le
358 fate-vsynth%-mov-bpp15:          FMT      = mov
359 fate-vsynth%-mov-bpp16:          CODEC   = rawvideo
360 fate-vsynth%-mov-bpp16:          ENCOPTS = -pix_fmt rgb565le
361 fate-vsynth%-mov-bpp16:          FMT      = mov
362
363 FATE_VCODEC-$(call ENCDEC, ROQ, ROQ)    += roqvideo
364 fate-vsynth%-roqvideo:           CODEC   = roqvideo
365 fate-vsynth%-roqvideo:           ENCOPTS = -frames 5
366 fate-vsynth%-roqvideo:           RAWDECOPTS = -r 30
367 fate-vsynth%-roqvideo:           FMT     = roq
368
369 FATE_VCODEC-$(call ENCDEC, RV10, RM)    += rv10
370 fate-vsynth%-rv10:               ENCOPTS = -qscale 10
371 fate-vsynth%-rv10:               FMT     = rm
372
373 FATE_VCODEC-$(call ENCDEC, RV20, RM)    += rv20
374 fate-vsynth%-rv20:               ENCOPTS = -qscale 10
375 fate-vsynth%-rv20:               FMT     = rm
376
377 FATE_VCODEC-$(call ENCDEC, SNOW, AVI)   += snow snow-hpel snow-ll
378 fate-vsynth%-snow:               ENCOPTS = -qscale 2 -flags +qpel \
379                                            -me_method iter -dia_size 2       \
380                                            -cmp 12 -subcmp 12 -s 128x64
381
382 fate-vsynth%-snow-hpel:          ENCOPTS = -qscale 2              \
383                                            -me_method iter -dia_size 2       \
384                                            -cmp 12 -subcmp 12 -s 128x64
385
386 fate-vsynth%-snow-ll:            ENCOPTS = -qscale .001 -pred 1 \
387                                            -flags +mv4+qpel
388
389 FATE_VCODEC-$(call ENCDEC, SVQ1, MOV)   += svq1
390 fate-vsynth%-svq1:               ENCOPTS = -qscale 3 -pix_fmt yuv410p
391 fate-vsynth%-svq1:               FMT     = mov
392
393 FATE_VCODEC-$(call ENCDEC, R210, AVI)   += r210
394
395 FATE_VCODEC-$(call ENCDEC, V210, AVI)   += v210 v210-10
396 fate-vsynth%-v210-10:            ENCOPTS = -pix_fmt yuv422p10
397
398 FATE_VCODEC-$(call ENCDEC, V308, AVI)   += v308
399
400 FATE_VCODEC-$(call ENCDEC, V408, AVI)   += v408
401 fate-vsynth%-v408:               ENCOPTS = -sws_flags neighbor+bitexact
402 fate-vsynth%-v408:               DECOPTS = -sws_flags neighbor+bitexact
403
404 FATE_VCODEC-$(call ENCDEC, AVUI, MOV)   += avui
405 fate-vsynth%-avui:               ENCOPTS = -s pal -strict experimental -sws_flags neighbor+bitexact
406 fate-vsynth%-avui:               DECOPTS = -sws_flags neighbor+bitexact
407 fate-vsynth%-avui:               FMT     = mov
408
409 FATE_VCODEC-$(call ENCDEC, WMV1, AVI)   += wmv1
410 fate-vsynth%-wmv1:               ENCOPTS = -qscale 10
411
412 FATE_VCODEC-$(call ENCDEC, WMV2, AVI)   += wmv2
413 fate-vsynth%-wmv2:               ENCOPTS = -qscale 10
414
415 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
416 fate-vsynth%-yuv:                CODEC = rawvideo
417
418 FATE_VCODEC-$(call ENCDEC, XFACE, NUT) += xface
419 fate-vsynth%-xface:              ENCOPTS = -s 48x48 -sws_flags neighbor+bitexact
420 fate-vsynth%-xface:              DECOPTS = -sws_flags neighbor+bitexact
421 fate-vsynth%-xface:              FMT = nut
422
423 FATE_VCODEC-$(call ENCDEC, YUV4, AVI) += yuv4
424
425 FATE_VCODEC-$(call ENCDEC, Y41P, AVI) += y41p
426
427 FATE_VCODEC-$(call ENCDEC, ZLIB, AVI) += zlib
428
429 FATE_VCODEC += $(FATE_VCODEC-yes)
430 FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
431 FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
432 FATE_VSYNTH_LENA = $(FATE_VCODEC:%=fate-vsynth_lena-%)
433 # Redundant tests because they just resize the input
434 RESIZE_OFF   = dnxhd-720p dnxhd-720p-rd dnxhd-720p-10bit dnxhd-1080i \
435                dv dv-411 dv-50 avui snow snow-hpel snow-ll vc2-420p \
436                vc2-420p10 vc2-420p12 vc2-422p vc2-422p10 vc2-422p12 \
437                vc2-444p vc2-444p10 vc2-444p12
438 # Incorrect parameters - usually size or color format restrictions
439 INC_PAR_OFF  = cinepak h261 h261-trellis h263 h263p h263-obmc msvideo1 \
440                roqvideo rv10 rv20 y41p qtrlegray
441 VSYNTH3_OFF  = $(RESIZE_OFF) $(INC_PAR_OFF)
442
443 FATE_VCODEC3 = $(filter-out $(VSYNTH3_OFF),$(FATE_VCODEC))
444 FATE_VSYNTH3 = $(FATE_VCODEC3:%=fate-vsynth3-%)
445
446 $(FATE_VSYNTH1): tests/data/vsynth1.yuv
447 $(FATE_VSYNTH2): tests/data/vsynth2.yuv
448 $(FATE_VSYNTH_LENA): tests/data/vsynth_lena.yuv
449 $(FATE_VSYNTH3): tests/data/vsynth3.yuv
450
451 FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH2) $(FATE_VSYNTH3)
452 FATE_SAMPLES_AVCONV += $(FATE_VSYNTH_LENA)
453
454 fate-vsynth1: $(FATE_VSYNTH1)
455 fate-vsynth2: $(FATE_VSYNTH2)
456 fate-vsynth_lena: $(FATE_VSYNTH_LENA)
457 fate-vsynth3: $(FATE_VSYNTH3)
458 fate-vcodec:  fate-vsynth1 fate-vsynth_lena fate-vsynth2 fate-vsynth3