fate: convert codec-regression.sh to makefile rules
[ffmpeg.git] / tests / fate / acodec.mak
1 FATE_ACODEC_PCM = alaw mulaw                                            \
2                   s8 u8                                                 \
3                   s16be s16le                                           \
4                   s24be s24le                                           \
5                   s32be s32le                                           \
6                   f32be f32le                                           \
7                   f64be f64le
8
9 FATE_ACODEC += $(FATE_ACODEC_PCM:%=fate-acodec-pcm-%)
10
11 fate-acodec-pcm-%: FMT = wav
12 fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
13
14 fate-acodec-pcm-s8:   FMT = mov
15 fate-acodec-pcm-s%be: FMT = mov
16 fate-acodec-pcm-f%be: FMT = au
17
18 FATE_ACODEC_ADPCM = adx ima_qt ima_wav ms swf yamaha
19 FATE_ACODEC += $(FATE_ACODEC_ADPCM:%=fate-acodec-adpcm-%)
20
21 fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
22
23 fate-acodec-adpcm-adx:     FMT = adx
24 fate-acodec-adpcm-ima_qt:  FMT = aiff
25 fate-acodec-adpcm-ima_wav: FMT = wav
26 fate-acodec-adpcm-ms:      FMT = wav
27 fate-acodec-adpcm-swf:     FMT = flv
28 fate-acodec-adpcm-yamaha:  FMT = wav
29
30 FATE_ACODEC += fate-acodec-mp2
31 fate-acodec-mp2: FMT = mp2
32 fate-acodec-mp2: CMP_SHIFT = -1924
33
34 FATE_ACODEC += fate-acodec-alac
35 fate-acodec-alac: FMT = mov
36 fate-acodec-alac: CODEC = alac -compression_level 1
37
38 FATE_ACODEC += fate-acodec-flac
39 fate-acodec-flac: FMT = flac
40 fate-acodec-flac: CODEC = flac -compression_level 2
41
42 $(FATE_ACODEC): tests/data/asynth-44100-2.wav
43 fate-acodec-%: CODEC = $(@:fate-acodec-%=%)
44 fate-acodec-%: SRC = tests/data/asynth-44100-2.wav
45 fate-acodec-%: CMD = enc_dec wav $(SRC) $(FMT) "-b 128k -c $(CODEC)" wav "-c pcm_s16le" -keep
46 fate-acodec-%: CMP_UNIT = 2
47
48 FATE_AVCONV += $(FATE_ACODEC)
49 fate-acodec: $(FATE_ACODEC)