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