4afc27a69c9c0f492843c3927a403f3f1c98a451
[ffmpeg.git] / tests / fate / acodec.mak
1 fate-acodec-%: CODEC = $(@:fate-acodec-%=%)
2 fate-acodec-%: SRC = tests/data/asynth-44100-2.wav
3 fate-acodec-%: CMD = enc_dec wav $(SRC) $(FMT) "-b:a 128k -c $(CODEC) $(ENCOPTS)" wav "-c pcm_s16le $(DECOPTS)" -keep
4 fate-acodec-%: CMP_UNIT = 2
5 fate-acodec-%: REF = $(SRC_PATH)/tests/ref/acodec/$(@:fate-acodec-%=%)
6
7 FATE_ACODEC_PCM-$(call ENCDEC, PCM_ALAW,  WAV) += alaw
8 FATE_ACODEC_PCM-$(call ENCDEC, PCM_MULAW, WAV) += mulaw
9 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S8,    MOV) += s8
10 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U8,    WAV) += u8
11 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE, MOV) += s16be
12 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE, WAV) += s16le
13 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16BE, NUT) += u16be
14 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16LE, NUT) += u16le
15 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24BE, MOV) += s24be
16 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24LE, WAV) += s24le
17 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U24BE, NUT) += u24be
18 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U24LE, NUT) += u24le
19 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32BE, MOV) += s32be
20 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32LE, WAV) += s32le
21 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U32BE, NUT) += u32be
22 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U32LE, NUT) += u32le
23 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32BE, AU)  += f32be
24 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32LE, WAV) += f32le
25 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64BE, AU)  += f64be
26 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64LE, WAV) += f64le
27 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S8_PLANAR, NUT) += s8_planar
28 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE_PLANAR, NUT) += s16be_planar
29 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE_PLANAR, NUT) += s16le_planar
30 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24LE_PLANAR, NUT) += s24le_planar
31 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32LE_PLANAR, NUT) += s32le_planar
32
33 FATE_ACODEC_PCM := $(FATE_ACODEC_PCM-yes:%=fate-acodec-pcm-%)
34 FATE_ACODEC += $(FATE_ACODEC_PCM)
35 fate-acodec-pcm: $(FATE_ACODEC_PCM)
36
37 fate-acodec-pcm-%: FMT = wav
38 fate-acodec-pcm-%_planar: FMT = nut
39 fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
40
41 fate-acodec-pcm-s8:   FMT = mov
42 fate-acodec-pcm-s%be: FMT = mov
43 fate-acodec-pcm-u%be: FMT = nut
44 fate-acodec-pcm-u%le: FMT = nut
45 fate-acodec-pcm-f%be: FMT = au
46
47 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_ADX,     ADX)  += adx
48 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_QT,  AIFF) += ima_qt
49 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_WAV, WAV)  += ima_wav
50 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_MS,      WAV)  += ms
51 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_SWF,     FLV)  += swf
52 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_YAMAHA,  WAV)  += yamaha
53
54 FATE_ACODEC_ADPCM := $(FATE_ACODEC_ADPCM-yes:%=fate-acodec-adpcm-%)
55 FATE_ACODEC += $(FATE_ACODEC_ADPCM)
56 fate-acodec-adpcm: $(FATE_ACODEC_ADPCM)
57
58 fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
59
60 fate-acodec-adpcm-adx:     FMT = adx
61 fate-acodec-adpcm-ima_qt:  FMT = aiff
62 fate-acodec-adpcm-ima_wav: FMT = wav
63 fate-acodec-adpcm-ms:      FMT = wav
64 fate-acodec-adpcm-swf:     FMT = flv
65 fate-acodec-adpcm-yamaha:  FMT = wav
66
67 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_ADX,     ADX)  += adx
68 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_IMA_QT,  AIFF) += ima_qt
69 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_IMA_WAV, WAV)  += ima_wav
70 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_MS,      WAV)  += ms
71 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_SWF,     FLV)  += swf
72 FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_YAMAHA,  WAV)  += yamaha
73
74 FATE_ACODEC_ADPCM_TRELLIS := $(FATE_ACODEC_ADPCM_TRELLIS-yes:%=fate-acodec-adpcm-%-trellis)
75 FATE_ACODEC += $(FATE_ACODEC_ADPCM_TRELLIS)
76 fate-acodec-adpcm-trellis: $(FATE_ACODEC_ADPCM_TRELLIS)
77
78 fate-acodec-adpcm-%-trellis: CODEC = adpcm_$(@:fate-acodec-adpcm-%-trellis=%)
79 fate-acodec-adpcm-%-trellis: ENCOPTS = -trellis 5
80
81 fate-acodec-adpcm-adx-trellis:     FMT = adx
82 fate-acodec-adpcm-ima_qt-trellis:  FMT = aiff
83 fate-acodec-adpcm-ima_wav-trellis: FMT = wav
84 fate-acodec-adpcm-ms-trellis:      FMT = wav
85 fate-acodec-adpcm-swf-trellis:     FMT = flv
86 fate-acodec-adpcm-yamaha-trellis:  FMT = wav
87
88 FATE_ACODEC-$(call ENCDEC, MP2, MP2 MP3) += fate-acodec-mp2
89 fate-acodec-mp2: FMT = mp2
90 fate-acodec-mp2: CMP_SHIFT = -1924
91 fate-acodec-mp2: ENCOPTS = -b:a 128k
92
93 FATE_ACODEC-$(call ENCDEC, MP2FIXED MP2 , MP2 MP3) += fate-acodec-mp2fixed
94 fate-acodec-mp2fixed: FMT = mp2
95 fate-acodec-mp2fixed: CMP_SHIFT = -1924
96 fate-acodec-mp2fixed: ENCOPTS = -b:a 384k
97
98 FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
99 fate-acodec-alac: FMT = mov
100 fate-acodec-alac: CODEC = alac -compression_level 1
101
102 FATE_ACODEC-$(call ENCDEC, DCA, DTS) += fate-acodec-dca
103 fate-acodec-dca: tests/data/asynth-44100-2.wav
104 fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
105 fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
106 fate-acodec-dca: CMP = oneline
107 fate-acodec-dca: REF = c54ca9a13711755ef90fa143a9b38386
108
109 FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
110 fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
111 fate-acodec-dca2: REF = $(SRC)
112 fate-acodec-dca2: CMP = stddev
113 fate-acodec-dca2: CMP_SHIFT = -2048
114 fate-acodec-dca2: CMP_TARGET = 527
115 fate-acodec-dca2: SIZE_TOLERANCE = 1632
116
117 FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac fate-acodec-flac-exact-rice
118 fate-acodec-flac: FMT = flac
119 fate-acodec-flac: CODEC = flac -compression_level 2
120
121 fate-acodec-flac-exact-rice: FMT = flac
122 fate-acodec-flac-exact-rice: CODEC = flac -compression_level 2 -exact_rice_parameters 1
123
124 FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1
125 fate-acodec-g723_1: tests/data/asynth-8000-1.wav
126 fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
127 fate-acodec-g723_1: FMT = g723_1
128 fate-acodec-g723_1: CODEC = g723_1
129 fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
130 fate-acodec-g723_1: CMP_SHIFT = 8
131
132 FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
133 fate-acodec-ra144: tests/data/asynth-8000-1.wav
134 fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
135 fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
136 fate-acodec-ra144: REF = $(SRC)
137 fate-acodec-ra144: CMP = stddev
138 fate-acodec-ra144: CMP_TARGET = 4777
139 fate-acodec-ra144: CMP_SHIFT = -320
140
141 FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ) += fate-acodec-roqaudio
142 fate-acodec-roqaudio: FMT = roq
143 fate-acodec-roqaudio: CODEC = roq_dpcm
144 fate-acodec-roqaudio: ENCOPTS = -ar 22050
145 fate-acodec-roqaudio: DECOPTS = -ar 44100
146
147 FATE_ACODEC-$(call ENCDEC, S302M, MPEGTS) += fate-acodec-s302m
148 fate-acodec-s302m: FMT = mpegts
149 fate-acodec-s302m: CODEC = s302m
150 fate-acodec-s302m: ENCOPTS = -ar 48000 -strict -2
151 fate-acodec-s302m: DECOPTS = -ar 44100
152
153 FATE_ACODEC-$(call ENCDEC, WAVPACK, WV) += fate-acodec-wavpack
154 fate-acodec-wavpack: FMT = wv
155 fate-acodec-wavpack: CODEC = wavpack -compression_level 1
156
157 FATE_ACODEC-$(call ENCDEC, TTA, MATROSKA) += fate-acodec-tta
158 fate-acodec-tta: FMT = matroska
159
160 FATE_ACODEC += $(FATE_ACODEC-yes)
161
162 $(FATE_ACODEC): tests/data/asynth-44100-2.wav
163
164 FATE_AVCONV += $(FATE_ACODEC)
165 fate-acodec: $(FATE_ACODEC)