fate-acodec-dca2: add bitexact flag
[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
6 FATE_ACODEC_PCM = alaw mulaw                                            \
7                   s8 u8                                                 \
8                   s16be s16le                                           \
9                   s24be s24le                                           \
10                   s32be s32le                                           \
11                   f32be f32le                                           \
12                   f64be f64le
13
14 FATE_ACODEC += $(FATE_ACODEC_PCM:%=fate-acodec-pcm-%)
15
16 fate-acodec-pcm-%: FMT = wav
17 fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
18
19 fate-acodec-pcm-s8:   FMT = mov
20 fate-acodec-pcm-s%be: FMT = mov
21 fate-acodec-pcm-f%be: FMT = au
22
23 FATE_ACODEC_ADPCM = adx ima_qt ima_wav ms swf yamaha
24 FATE_ACODEC += $(FATE_ACODEC_ADPCM:%=fate-acodec-adpcm-%)
25
26 fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
27
28 fate-acodec-adpcm-adx:     FMT = adx
29 fate-acodec-adpcm-ima_qt:  FMT = aiff
30 fate-acodec-adpcm-ima_wav: FMT = wav
31 fate-acodec-adpcm-ms:      FMT = wav
32 fate-acodec-adpcm-swf:     FMT = flv
33 fate-acodec-adpcm-yamaha:  FMT = wav
34
35 FATE_ACODEC += fate-acodec-mp2
36 fate-acodec-mp2: FMT = mp2
37 fate-acodec-mp2: CMP_SHIFT = -1924
38
39 FATE_ACODEC += fate-acodec-alac
40 fate-acodec-alac: FMT = mov
41 fate-acodec-alac: CODEC = alac -compression_level 1
42
43 FATE_ACODEC += fate-acodec-dca
44 fate-acodec-dca: tests/data/asynth-44100-2.wav
45 fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
46 fate-acodec-dca: CMD = md5 -i $(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
47 fate-acodec-dca: CMP = oneline
48 fate-acodec-dca: REF = 66bd0e602be7fb97dc19151554c0ee29
49
50 FATE_ACODEC += fate-acodec-dca2
51 fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
52 fate-acodec-dca2: REF = $(SRC)
53 fate-acodec-dca2: CMP = stddev
54 fate-acodec-dca2: CMP_SHIFT = -1920
55 fate-acodec-dca2: CMP_TARGET = 2424
56 fate-acodec-dca2: SIZE_TOLERANCE = 544
57
58 FATE_ACODEC += fate-acodec-flac
59 fate-acodec-flac: FMT = flac
60 fate-acodec-flac: CODEC = flac -compression_level 2
61
62 FATE_ACODEC += fate-acodec-g723_1
63 fate-acodec-g723_1: tests/data/asynth-8000-1.wav
64 fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
65 fate-acodec-g723_1: FMT = g723_1
66 fate-acodec-g723_1: CODEC = g723_1
67 fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
68 fate-acodec-g723_1: CMP_SHIFT = 8
69
70 FATE_ACODEC += fate-acodec-ra144
71 fate-acodec-ra144: tests/data/asynth-8000-1.wav
72 fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
73 fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
74 fate-acodec-ra144: REF = $(SRC)
75 fate-acodec-ra144: CMP = stddev
76 fate-acodec-ra144: CMP_TARGET = 4777
77 fate-acodec-ra144: CMP_SHIFT = -320
78
79 FATE_ACODEC += fate-acodec-roqaudio
80 fate-acodec-roqaudio: FMT = roq
81 fate-acodec-roqaudio: CODEC = roq_dpcm
82 fate-acodec-roqaudio: ENCOPTS = -ar 22050
83 fate-acodec-roqaudio: DECOPTS = -ar 44100
84
85 $(FATE_ACODEC): tests/data/asynth-44100-2.wav
86
87 FATE_AVCONV += $(FATE_ACODEC)
88 fate-acodec: $(FATE_ACODEC)