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