10d4392599e8fb1119bdd6101d0f8b5b56f3aa34
[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 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-$(call ENCDEC, MP2, MP2 MP3) += fate-acodec-mp2
68 fate-acodec-mp2: FMT = mp2
69 fate-acodec-mp2: CMP_SHIFT = -1924
70
71 FATE_ACODEC-$(call ENCDEC, MP2FIXED MP2 , MP2 MP3) += fate-acodec-mp2fixed
72 fate-acodec-mp2fixed: FMT = mp2
73 fate-acodec-mp2fixed: CMP_SHIFT = -1924
74
75 FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
76 fate-acodec-alac: FMT = mov
77 fate-acodec-alac: CODEC = alac -compression_level 1
78
79 FATE_ACODEC-$(call ENCDEC, DCA, DTS) += fate-acodec-dca
80 fate-acodec-dca: tests/data/asynth-44100-2.wav
81 fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
82 fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
83 fate-acodec-dca: CMP = oneline
84 fate-acodec-dca: REF = fe28cef432ed88de4ee01b87537fd2bd
85
86 FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
87 fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
88 fate-acodec-dca2: REF = $(SRC)
89 fate-acodec-dca2: CMP = stddev
90 fate-acodec-dca2: CMP_SHIFT = -2048
91 fate-acodec-dca2: CMP_TARGET = 527
92 fate-acodec-dca2: SIZE_TOLERANCE = 1632
93
94 FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac
95 fate-acodec-flac: FMT = flac
96 fate-acodec-flac: CODEC = flac -compression_level 2
97
98 FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1
99 fate-acodec-g723_1: tests/data/asynth-8000-1.wav
100 fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
101 fate-acodec-g723_1: FMT = g723_1
102 fate-acodec-g723_1: CODEC = g723_1
103 fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
104 fate-acodec-g723_1: CMP_SHIFT = 8
105
106 FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
107 fate-acodec-ra144: tests/data/asynth-8000-1.wav
108 fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
109 fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
110 fate-acodec-ra144: REF = $(SRC)
111 fate-acodec-ra144: CMP = stddev
112 fate-acodec-ra144: CMP_TARGET = 4777
113 fate-acodec-ra144: CMP_SHIFT = -320
114
115 FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ) += fate-acodec-roqaudio
116 fate-acodec-roqaudio: FMT = roq
117 fate-acodec-roqaudio: CODEC = roq_dpcm
118 fate-acodec-roqaudio: ENCOPTS = -ar 22050
119 fate-acodec-roqaudio: DECOPTS = -ar 44100
120
121 FATE_ACODEC += $(FATE_ACODEC-yes)
122
123 $(FATE_ACODEC): tests/data/asynth-44100-2.wav
124
125 FATE_AVCONV += $(FATE_ACODEC)
126 fate-acodec: $(FATE_ACODEC)