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