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