fate: convert codec-regression.sh to makefile rules
[ffmpeg.git] / tests / fate / vcodec.mak
1 FATE_VCODEC += asv1
2 fate-vsynth%-asv1:               ENCOPTS = -qscale 10
3
4 FATE_VCODEC += asv2
5 fate-vsynth%-asv2:               ENCOPTS = -qscale 10
6
7 FATE_VCODEC += cljr
8
9 FATE_VCODEC += dnxhd-720p
10 fate-vsynth%-dnxhd-720p:         ENCOPTS = -s hd720 -b 90M              \
11                                            -pix_fmt yuv422p -frames 5
12 fate-vsynth%-dnxhd-720p:         FMT     = dnxhd
13
14 FATE_VCODEC += dnxhd-720p-rd
15 fate-vsynth%-dnxhd-720p-rd:      ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
16                                            -pix_fmt yuv422p -frames 5
17 fate-vsynth%-dnxhd-720p-rd:      FMT     = dnxhd
18
19 FATE_VCODEC += dnxhd-720p-10bit
20 fate-vsynth%-dnxhd-720p-10bit:   ENCOPTS = -s hd720 -b 90M              \
21                                            -pix_fmt yuv422p10 -frames 5
22 fate-vsynth%-dnxhd-720p-10bit:   FMT     = dnxhd
23
24 FATE_VCODEC += dnxhd-1080i
25 fate-vsynth%-dnxhd-1080i:        ENCOPTS = -s hd1080 -b 120M -flags +ildct \
26                                            -pix_fmt yuv422p -frames 5
27 fate-vsynth%-dnxhd-1080i:        FMT     = mov
28
29 FATE_VCODEC += dv
30 fate-vsynth%-dv:                 CODEC   = dvvideo
31 fate-vsynth%-dv:                 ENCOPTS = -dct int -s pal
32 fate-vsynth%-dv:                 FMT     = dv
33
34 FATE_VCODEC += dv-411
35 fate-vsynth%-dv-411:             CODEC   = dvvideo
36 fate-vsynth%-dv-411:             ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
37                                            -sws_flags area
38 fate-vsynth%-dv-411:             DECOPTS = -sws_flags area
39 fate-vsynth%-dv-411:             FMT     = dv
40
41 FATE_VCODEC += dv-50
42 fate-vsynth%-dv-50:              CODEC   = dvvideo
43 fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
44                                            -sws_flags neighbor
45 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
46 fate-vsynth%-dv-50:              FMT     = dv
47
48 FATE_VCODEC += ffv1
49 fate-vsynth%-ffv1:               ENCOPTS = -strict -2
50
51 FATE_VCODEC += ffvhuff
52
53 FATE_VCODEC += flashsv
54 fate-vsynth%-flashsv:            ENCOPTS = -sws_flags neighbor+full_chroma_int
55 fate-vsynth%-flashsv:            DECOPTS = -sws_flags area
56 fate-vsynth%-flashsv:            FMT     = flv
57
58 FATE_VCODEC += flv
59 fate-vsynth%-flv:                ENCOPTS = -qscale 10
60 fate-vsynth%-flv:                FMT     = flv
61
62 FATE_VCODEC += h261
63 fate-vsynth%-h261:               ENCOPTS = -qscale 11
64
65 FATE_VCODEC += h263
66 fate-vsynth%-h263:               ENCOPTS = -qscale 10
67
68 FATE_VCODEC += h263p
69 fate-vsynth%-h263p:              ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
70
71 FATE_VCODEC += huffyuv
72 fate-vsynth%-huffyuv:            ENCOPTS = -pix_fmt yuv422p -sws_flags neighbor
73 fate-vsynth%-huffyuv:            DECOPTS = -strict -2 -sws_flags neighbor
74
75 FATE_VCODEC += jpegls
76 fate-vsynth%-jpegls:             ENCOPTS = -sws_flags neighbor+full_chroma_int
77 fate-vsynth%-jpegls:             DECOPTS = -sws_flags area
78
79 FATE_VCODEC += ljpeg
80 fate-vsynth%-ljpeg:              ENCOPTS = -strict -1
81
82 FATE_VCODEC += mjpeg
83 fate-vsynth%-mjpeg:              ENCOPTS = -qscale 9 -pix_fmt yuvj420p
84
85 FATE_VCODEC += mpeg1
86 fate-vsynth%-mpeg1:              FMT     = mpeg1video
87 fate-vsynth%-mpeg1:              CODEC   = mpeg1video
88 fate-vsynth%-mpeg1:              ENCOPTS = -qscale 10
89
90 FATE_VCODEC += mpeg1b
91 fate-vsynth%-mpeg1b:             CODEC   = mpeg1video
92 fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 3 -ps 200
93 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
94
95 FATE_MPEG2 = mpeg2                                                      \
96              mpeg2-422                                                  \
97              mpeg2-idct-int                                             \
98              mpeg2-ilace                                                \
99              mpeg2-ivlc-qprd                                            \
100              mpeg2-thread                                               \
101              mpeg2-thread-ivlc
102
103 FATE_VCODEC += $(FATE_MPEG2)
104
105 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
106 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
107
108 fate-vsynth%-mpeg2:              ENCOPTS = -qscale 10
109 fate-vsynth%-mpeg2-422:          ENCOPTS = -vb 1000k                    \
110                                            -bf 2                        \
111                                            -trellis 1                   \
112                                            -flags +mv0+ildct+ilme       \
113                                            -mpv_flags +qp_rd            \
114                                            -intra_vlc 1                 \
115                                            -mbd rd                      \
116                                            -pix_fmt yuv422p
117 fate-vsynth%-mpeg2-idct-int:     ENCOPTS = -qscale 10 -idct int -dct int
118 fate-vsynth%-mpeg2-ilace:        ENCOPTS = -qscale 10 -flags +ildct+ilme
119 fate-vsynth%-mpeg2-ivlc-qprd:    ENCOPTS = -vb 500k                     \
120                                            -bf 2                        \
121                                            -trellis 1                   \
122                                            -flags +mv0                  \
123                                            -mpv_flags +qp_rd            \
124                                            -intra_vlc 1                 \
125                                            -cmp 2 -subcmp 2             \
126                                            -mbd rd
127 fate-vsynth%-mpeg2-thread:       ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
128                                            -threads 2 -slices 2
129 fate-vsynth%-mpeg2-thread-ivlc:  ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
130                                            -intra_vlc 1 -threads 2 -slices 2
131
132 FATE_VCODEC += mpeg4
133 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
134 fate-vsynth%-mpeg4:              FMT     = mp4
135
136 FATE_VCODEC += mpeg4-rc
137 fate-vsynth%-mpeg4-rc:           ENCOPTS = -b 400k -bf 2
138
139 FATE_VCODEC += mpeg4-adv
140 fate-vsynth%-mpeg4-adv:          ENCOPTS = -qscale 9 -flags +mv4+aic       \
141                                            -data_partitioning 1 -trellis 1 \
142                                            -mbd bits -ps 200
143
144 FATE_VCODEC += mpeg4-qprd
145 fate-vsynth%-mpeg4-qprd:         ENCOPTS = -b 450k -bf 2 -trellis 1          \
146                                            -flags +mv4+mv0 -mpv_flags +qp_rd \
147                                            -cmp 2 -subcmp 2 -mbd rd
148
149 FATE_VCODEC += mpeg4-adap
150 fate-vsynth%-mpeg4-adap:         ENCOPTS = -b 550k -bf 2 -flags +mv4+mv0 \
151                                            -trellis 1 -cmp 1 -subcmp 2   \
152                                            -mbd rd -scplx_mask 0.3
153
154 FATE_VCODEC += mpeg4-qpel
155 fate-vsynth%-mpeg4-qpel:         ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
156                                            -bf 2 -cmp 1 -subcmp 2
157
158 FATE_VCODEC += mpeg4-thread
159 fate-vsynth%-mpeg4-thread:       ENCOPTS = -b 500k -flags +mv4+aic         \
160                                            -data_partitioning 1 -trellis 1 \
161                                            -mbd bits -ps 200 -bf 2         \
162                                            -threads 2 -slices 2
163
164 FATE_VCODEC += mpeg4-error
165 fate-vsynth%-mpeg4-error:        ENCOPTS = -qscale 7 -flags +mv4+aic    \
166                                            -data_partitioning 1 -mbd rd \
167                                            -ps 250 -error 10
168
169 FATE_VCODEC += mpeg4-nr
170 fate-vsynth%-mpeg4-nr:           ENCOPTS = -qscale 8 -flags +mv4 -mbd rd -nr 200
171
172 FATE_VCODEC += msmpeg4
173 fate-vsynth%-msmpeg4:            ENCOPTS = -qscale 10
174
175 FATE_VCODEC += msmpeg4v2
176 fate-vsynth%-msmpeg4v2:          ENCOPTS = -qscale 10
177
178 FATE_VCODEC += prores
179 fate-vsynth%-prores:             ENCOPTS = -profile hq
180 fate-vsynth%-prores:             FMT     = mov
181
182 FATE_VCODEC += qtrle
183 fate-vsynth%-qtrle:              FMT     = mov
184
185 FATE_VCODEC += rgb
186 fate-vsynth%-rgb:                CODEC   = rawvideo
187 fate-vsynth%-rgb:                ENCOPTS = -pix_fmt bgr24
188
189 FATE_VCODEC += roqvideo
190 fate-vsynth%-roqvideo:           CODEC   = roqvideo
191 fate-vsynth%-roqvideo:           ENCOPTS = -frames 5
192 fate-vsynth%-roqvideo:           FMT     = roq
193
194 FATE_VCODEC += rv10
195 fate-vsynth%-rv10:               ENCOPTS = -qscale 10
196 fate-vsynth%-rv10:               FMT     = rm
197
198 FATE_VCODEC += rv20
199 fate-vsynth%-rv20:               ENCOPTS = -qscale 10
200 fate-vsynth%-rv20:               FMT     = rm
201
202 FATE_VCODEC += snow
203 fate-vsynth%-snow:               ENCOPTS = -strict -2 -qscale 2 -flags +qpel \
204                                            -me_method iter -dia_size 2       \
205                                            -cmp 12 -subcmp 12 -s 128x64
206
207 FATE_VCODEC += snow-ll
208 fate-vsynth%-snow-ll:            ENCOPTS = -strict -2 -qscale .001 -pred 1 \
209                                            -flags +mv4+qpel
210
211 FATE_VCODEC += svq1
212 fate-vsynth%-svq1:               ENCOPTS = -qscale 3 -pix_fmt yuv410p
213 fate-vsynth%-svq1:               FMT     = mov
214
215 FATE_VCODEC += v210
216
217 FATE_VCODEC += wmv1
218 fate-vsynth%-wmv1:               ENCOPTS = -qscale 10
219
220 FATE_VCODEC += wmv2
221 fate-vsynth%-wmv2:               ENCOPTS = -qscale 10
222
223 FATE_VCODEC += yuv
224 fate-vsynth%-yuv:                CODEC = rawvideo
225
226 fate-vsynth1-%: CODEC = $(word 3, $(subst -, ,$(@)))
227 fate-vsynth1-%: FMT   = avi
228 fate-vsynth2-%: CODEC = $(word 3, $(subst -, ,$(@)))
229 fate-vsynth2-%: FMT   = avi
230
231 fate-vsynth1-%: SRC = tests/data/vsynth1.yuv
232 fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
233 fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep
234 fate-vsynth%: CMP_UNIT = 1
235
236 FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
237 FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
238
239 $(FATE_VSYNTH1): tests/data/vsynth1.yuv
240 $(FATE_VSYNTH2): tests/data/vsynth2.yuv
241
242 FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH2)
243
244 fate-vsynth1: $(FATE_VSYNTH1)
245 fate-vsynth2: $(FATE_VSYNTH2)
246 fate-vcodec:  fate-vsynth1 fate-vsynth2