fate: Add shorthands for acodec PCM and ADPCM tests
[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)" wav "-c pcm_s16le" -keep
4 fate-acodec-%: CMP_UNIT = 2
5
6 FATE_ACODEC_PCM-$(call ENCDEC, PCM_ALAW,  WAV) += alaw
7 FATE_ACODEC_PCM-$(call ENCDEC, PCM_MULAW, WAV) += mulaw
8 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S8,    MOV) += s8
9 FATE_ACODEC_PCM-$(call ENCDEC, PCM_U8,    WAV) += u8
10 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE, MOV) += s16be
11 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE, WAV) += s16le
12 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24BE, MOV) += s24be
13 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24LE, WAV) += s24le
14 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32BE, MOV) += s32be
15 FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32LE, WAV) += s32le
16 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32BE, AU)  += f32be
17 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32LE, WAV) += f32le
18 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64BE, AU)  += f64be
19 FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64LE, WAV) += f64le
20
21 FATE_ACODEC_PCM := $(FATE_ACODEC_PCM-yes:%=fate-acodec-pcm-%)
22 FATE_AVCONV += $(FATE_ACODEC_PCM)
23 fate-acodec-pcm: $(FATE_ACODEC_PCM)
24
25 fate-acodec-pcm-%: FMT = wav
26 fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
27
28 fate-acodec-pcm-s8:   FMT = mov
29 fate-acodec-pcm-s%be: FMT = mov
30 fate-acodec-pcm-f%be: FMT = au
31
32 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_ADX,     ADX)  += adx
33 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_QT,  AIFF) += ima_qt
34 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_WAV, WAV)  += ima_wav
35 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_MS,      WAV)  += ms
36 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_SWF,     FLV)  += swf
37 FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_YAMAHA,  WAV)  += yamaha
38
39 FATE_ACODEC_ADPCM := $(FATE_ACODEC_ADPCM-yes:%=fate-acodec-adpcm-%)
40 FATE_AVCONV += $(FATE_ACODEC_ADPCM)
41 fate-acodec-adpcm: $(FATE_ACODEC_ADPCM)
42
43 fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
44
45 fate-acodec-adpcm-adx:     FMT = adx
46 fate-acodec-adpcm-ima_qt:  FMT = aiff
47 fate-acodec-adpcm-ima_wav: FMT = wav
48 fate-acodec-adpcm-ms:      FMT = wav
49 fate-acodec-adpcm-swf:     FMT = flv
50 fate-acodec-adpcm-yamaha:  FMT = wav
51
52 FATE_ACODEC-$(call ENCDEC, MP2, MP2 MP3) += fate-acodec-mp2
53 fate-acodec-mp2: FMT = mp2
54 fate-acodec-mp2: CMP_SHIFT = -1924
55
56 FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
57 fate-acodec-alac: FMT = mov
58 fate-acodec-alac: CODEC = alac -compression_level 1
59
60 FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac
61 fate-acodec-flac: FMT = flac
62 fate-acodec-flac: CODEC = flac -compression_level 2
63
64 FATE_ACODEC += $(FATE_ACODEC-yes)
65
66 $(FATE_ACODEC): tests/data/asynth-44100-2.wav
67
68 FATE_AVCONV += $(FATE_ACODEC)
69 fate-acodec: $(FATE_ACODEC)