2012-05-29 11:49:44 +03:00
|
|
|
fate-acodec-%: CODEC = $(@:fate-acodec-%=%)
|
|
|
|
fate-acodec-%: SRC = tests/data/asynth-44100-2.wav
|
2022-05-04 12:04:21 +02:00
|
|
|
fate-acodec-%: CMD = enc_dec wav $(SRC) $(FMT) "-b:a 128k -c $(CODEC) $(ENCOPTS)" wav "-c pcm_s16le $(DECOPTS)"
|
2012-05-29 11:49:44 +03:00
|
|
|
fate-acodec-%: CMP_UNIT = 2
|
2012-12-03 02:29:35 +03:00
|
|
|
fate-acodec-%: REF = $(SRC_PATH)/tests/ref/acodec/$(@:fate-acodec-%=%)
|
2012-05-29 11:49:44 +03:00
|
|
|
|
2012-10-16 05:14:59 +03:00
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_ALAW, WAV) += alaw
|
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_MULAW, WAV) += mulaw
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S8, MOV) += s8
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_U8, WAV) += u8
|
2012-10-16 05:14:59 +03:00
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE, MOV) += s16be
|
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE, WAV) += s16le
|
2012-11-20 21:13:25 +03:00
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16BE, NUT) += u16be
|
|
|
|
FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16LE, NUT) += u16le
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S24BE, MOV) += s24be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S24LE, WAV) += s24le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_U24BE, NUT) += u24be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_U24LE, NUT) += u24le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S32BE, MOV) += s32be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S32LE, WAV) += s32le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_U32BE, NUT) += u32be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_U32LE, NUT) += u32le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_F32BE, AU) += f32be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_F32LE, WAV) += f32le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_F64BE, AU) += f64be
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_F64LE, WAV) += f64le
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S8_PLANAR, NUT) += s8_planar
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S16BE_PLANAR, NUT) += s16be_planar
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S16LE_PLANAR, NUT) += s16le_planar
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S24LE_PLANAR, NUT) += s24le_planar
|
|
|
|
FATE_ACODEC_PCM_RESAMPLE-$(call ENCDEC, PCM_S32LE_PLANAR, NUT) += s32le_planar
|
|
|
|
|
|
|
|
FATE_ACODEC_PCM-$(CONFIG_ARESAMPLE_FILTER) += $(FATE_ACODEC_PCM_RESAMPLE-yes)
|
|
|
|
FATE_ACODEC_PCM := $(if $(call ENCDEC, PCM_S16LE, WAV), $(FATE_ACODEC_PCM-yes))
|
|
|
|
FATE_ACODEC_PCM := $(FATE_ACODEC_PCM:%=fate-acodec-pcm-%)
|
2012-10-30 15:45:44 +03:00
|
|
|
FATE_ACODEC += $(FATE_ACODEC_PCM)
|
2012-10-17 20:47:03 +03:00
|
|
|
fate-acodec-pcm: $(FATE_ACODEC_PCM)
|
2012-05-18 12:33:28 +03:00
|
|
|
|
|
|
|
fate-acodec-pcm-%: FMT = wav
|
2012-11-20 21:13:25 +03:00
|
|
|
fate-acodec-pcm-%_planar: FMT = nut
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
|
|
|
|
|
|
|
|
fate-acodec-pcm-s8: FMT = mov
|
|
|
|
fate-acodec-pcm-s%be: FMT = mov
|
2012-11-20 21:13:25 +03:00
|
|
|
fate-acodec-pcm-u%be: FMT = nut
|
|
|
|
fate-acodec-pcm-u%le: FMT = nut
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-pcm-f%be: FMT = au
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_ADPCM_RESAMPLE-$(call ENCDEC, ADPCM_ADX, ADX) += adx
|
|
|
|
FATE_ACODEC_ADPCM_RESAMPLE-$(call ENCDEC, ADPCM_ARGO, ARGO_ASF) += argo
|
2020-08-02 02:05:40 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_APM, APM) += ima_apm
|
2020-10-23 10:23:12 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_ALP, ALP) += ima_alp
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_ADPCM_RESAMPLE-$(call ENCDEC, ADPCM_IMA_QT, AIFF) += ima_qt
|
2020-08-02 02:05:40 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_SSI, KVAG) += ima_ssi
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_ADPCM_RESAMPLE-$(call ENCDEC, ADPCM_IMA_WAV, WAV) += ima_wav
|
2021-04-26 10:58:40 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_WS, WSAUD) += ima_ws
|
2020-08-02 02:05:40 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_MS, WAV) += ms
|
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_SWF, FLV) += swf
|
2020-10-16 10:09:27 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_SWF, WAV) += swf-wav
|
2020-08-02 02:05:40 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_YAMAHA, WAV) += yamaha
|
2012-10-16 05:14:59 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_ADPCM-$(CONFIG_ARESAMPLE_FILTER) += $(FATE_ACODEC_ADPCM_RESAMPLE-yes)
|
|
|
|
FATE_ACODEC_ADPCM := $(if $(call ENCDEC, PCM_S16LE, WAV), $(FATE_ACODEC_ADPCM-yes))
|
|
|
|
FATE_ACODEC_ADPCM := $(FATE_ACODEC_ADPCM:%=fate-acodec-adpcm-%)
|
2012-10-30 15:45:44 +03:00
|
|
|
FATE_ACODEC += $(FATE_ACODEC_ADPCM)
|
2012-10-17 20:47:03 +03:00
|
|
|
fate-acodec-adpcm: $(FATE_ACODEC_ADPCM)
|
2012-05-18 12:33:28 +03:00
|
|
|
|
|
|
|
fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
|
|
|
|
|
|
|
|
fate-acodec-adpcm-adx: FMT = adx
|
2020-08-02 02:05:04 +02:00
|
|
|
fate-acodec-adpcm-argo: FMT = argo_asf
|
2020-06-08 14:35:48 +02:00
|
|
|
fate-acodec-adpcm-ima_apm: FMT = apm
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-adpcm-ima_qt: FMT = aiff
|
2020-05-31 07:24:11 +02:00
|
|
|
fate-acodec-adpcm-ima_ssi: FMT = kvag
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-adpcm-ima_wav: FMT = wav
|
2021-04-26 10:58:40 +02:00
|
|
|
fate-acodec-adpcm-ima_ws: FMT = wsaud
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-adpcm-ms: FMT = wav
|
|
|
|
fate-acodec-adpcm-swf: FMT = flv
|
|
|
|
fate-acodec-adpcm-yamaha: FMT = wav
|
|
|
|
|
2020-10-16 10:09:27 +02:00
|
|
|
fate-acodec-adpcm-swf-wav: FMT = wav
|
|
|
|
fate-acodec-adpcm-swf-wav: CODEC = adpcm_swf
|
|
|
|
|
2020-10-23 10:23:12 +02:00
|
|
|
fate-acodec-adpcm-ima_alp: FMT = alp
|
|
|
|
fate-acodec-adpcm-ima_alp: ENCOPTS = -type pcm
|
|
|
|
|
2022-04-23 20:03:18 +02:00
|
|
|
FATE_ACODEC_ADPCM_TRELLIS := ima_qt ima_wav ms swf yamaha
|
2014-06-05 05:21:29 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC_ADPCM_TRELLIS := $(FATE_ACODEC_ADPCM_TRELLIS:%=fate-acodec-adpcm-%-trellis)
|
|
|
|
FATE_ACODEC_ADPCM_TRELLIS := $(filter $(addsuffix -trellis,$(FATE_ACODEC_ADPCM)), $(FATE_ACODEC_ADPCM_TRELLIS))
|
2014-06-05 05:21:29 +03:00
|
|
|
FATE_ACODEC += $(FATE_ACODEC_ADPCM_TRELLIS)
|
|
|
|
fate-acodec-adpcm-trellis: $(FATE_ACODEC_ADPCM_TRELLIS)
|
|
|
|
|
|
|
|
fate-acodec-adpcm-%-trellis: CODEC = adpcm_$(@:fate-acodec-adpcm-%-trellis=%)
|
|
|
|
fate-acodec-adpcm-%-trellis: ENCOPTS = -trellis 5
|
|
|
|
|
2014-06-06 16:25:51 +03:00
|
|
|
fate-acodec-adpcm-ima_qt-trellis: FMT = aiff
|
2014-06-05 05:21:29 +03:00
|
|
|
fate-acodec-adpcm-ima_wav-trellis: FMT = wav
|
|
|
|
fate-acodec-adpcm-ms-trellis: FMT = wav
|
|
|
|
fate-acodec-adpcm-swf-trellis: FMT = flv
|
|
|
|
fate-acodec-adpcm-yamaha-trellis: FMT = wav
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, MP2, MP2 MP3, ARESAMPLE_FILTER) += fate-acodec-mp2
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-mp2: FMT = mp2
|
|
|
|
fate-acodec-mp2: CMP_SHIFT = -1924
|
2014-04-15 17:00:36 +03:00
|
|
|
fate-acodec-mp2: ENCOPTS = -b:a 128k
|
2012-05-18 12:33:28 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, MP2FIXED MP2, MP2 MP3, ARESAMPLE_FILTER) += fate-acodec-mp2fixed
|
2013-11-16 15:15:35 +03:00
|
|
|
fate-acodec-mp2fixed: FMT = mp2
|
|
|
|
fate-acodec-mp2fixed: CMP_SHIFT = -1924
|
2015-08-17 17:50:12 +02:00
|
|
|
fate-acodec-mp2fixed: ENCOPTS = -b:a 384k
|
2013-11-16 15:15:35 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, ALAC, MOV, ARESAMPLE_FILTER) += fate-acodec-alac
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-alac: FMT = mov
|
|
|
|
fate-acodec-alac: CODEC = alac -compression_level 1
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, DCA, DTS, ARESAMPLE_FILTER) += fate-acodec-dca
|
2012-05-30 13:59:55 +03:00
|
|
|
fate-acodec-dca: tests/data/asynth-44100-2.wav
|
|
|
|
fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact -af aresample
|
2012-05-30 13:59:55 +03:00
|
|
|
fate-acodec-dca: CMP = oneline
|
2018-01-08 00:39:22 +02:00
|
|
|
fate-acodec-dca: REF = 2aa580ac67820fce4f581b96ebb34acc
|
2012-05-30 06:20:40 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, DCA, WAV, ARESAMPLE_FILTER) += fate-acodec-dca2
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact -af aresample
|
2013-04-26 00:23:12 +03:00
|
|
|
fate-acodec-dca2: REF = $(SRC)
|
|
|
|
fate-acodec-dca2: CMP = stddev
|
|
|
|
fate-acodec-dca2: CMP_SHIFT = -2048
|
2022-10-30 13:13:42 +02:00
|
|
|
fate-acodec-dca2: CMP_TARGET = 534
|
2013-04-26 00:23:12 +03:00
|
|
|
fate-acodec-dca2: SIZE_TOLERANCE = 1632
|
2012-05-30 06:20:40 +03:00
|
|
|
|
2015-05-19 13:43:18 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac fate-acodec-flac-exact-rice
|
2012-05-18 12:33:28 +03:00
|
|
|
fate-acodec-flac: FMT = flac
|
|
|
|
fate-acodec-flac: CODEC = flac -compression_level 2
|
|
|
|
|
2015-05-19 13:43:18 +02:00
|
|
|
fate-acodec-flac-exact-rice: FMT = flac
|
|
|
|
fate-acodec-flac-exact-rice: CODEC = flac -compression_level 2 -exact_rice_parameters 1
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, G723_1, G723_1, ARESAMPLE_FILTER) += fate-acodec-g723_1
|
2012-05-30 14:22:28 +03:00
|
|
|
fate-acodec-g723_1: tests/data/asynth-8000-1.wav
|
|
|
|
fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
|
2012-05-30 02:39:24 +03:00
|
|
|
fate-acodec-g723_1: FMT = g723_1
|
|
|
|
fate-acodec-g723_1: CODEC = g723_1
|
2012-05-30 14:22:28 +03:00
|
|
|
fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
|
|
|
|
fate-acodec-g723_1: CMP_SHIFT = 8
|
2012-05-30 02:39:24 +03:00
|
|
|
|
2012-10-18 12:01:15 +03:00
|
|
|
FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
|
2012-05-31 04:08:56 +03:00
|
|
|
fate-acodec-ra144: tests/data/asynth-8000-1.wav
|
|
|
|
fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
|
|
|
|
fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
|
|
|
|
fate-acodec-ra144: REF = $(SRC)
|
|
|
|
fate-acodec-ra144: CMP = stddev
|
|
|
|
fate-acodec-ra144: CMP_TARGET = 4777
|
|
|
|
fate-acodec-ra144: CMP_SHIFT = -320
|
2012-05-30 02:39:24 +03:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ, ARESAMPLE_FILTER) += fate-acodec-roqaudio
|
2012-05-30 02:39:24 +03:00
|
|
|
fate-acodec-roqaudio: FMT = roq
|
|
|
|
fate-acodec-roqaudio: CODEC = roq_dpcm
|
|
|
|
fate-acodec-roqaudio: ENCOPTS = -ar 22050
|
|
|
|
fate-acodec-roqaudio: DECOPTS = -ar 44100
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, S302M, MPEGTS, ARESAMPLE_FILTER) += fate-acodec-s302m
|
2015-03-02 00:59:49 +02:00
|
|
|
fate-acodec-s302m: FMT = mpegts
|
|
|
|
fate-acodec-s302m: CODEC = s302m
|
|
|
|
fate-acodec-s302m: ENCOPTS = -ar 48000 -strict -2
|
|
|
|
fate-acodec-s302m: DECOPTS = -ar 44100
|
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, WAVPACK, WV, ARESAMPLE_FILTER) += fate-acodec-wavpack
|
2015-02-12 20:17:17 +02:00
|
|
|
fate-acodec-wavpack: FMT = wv
|
|
|
|
fate-acodec-wavpack: CODEC = wavpack -compression_level 1
|
|
|
|
|
2016-08-04 21:21:25 +02:00
|
|
|
FATE_ACODEC-$(call ENCDEC, TTA, TTA) += fate-acodec-tta
|
|
|
|
fate-acodec-tta: FMT = tta
|
2015-04-13 09:12:28 +02:00
|
|
|
|
2022-04-23 20:00:58 +02:00
|
|
|
FATE_ACODEC-yes := $(if $(call ENCDEC, PCM_S16LE, WAV), $(FATE_ACODEC-yes))
|
2012-10-16 05:14:59 +03:00
|
|
|
FATE_ACODEC += $(FATE_ACODEC-yes)
|
|
|
|
|
2012-05-18 12:33:28 +03:00
|
|
|
$(FATE_ACODEC): tests/data/asynth-44100-2.wav
|
|
|
|
|
|
|
|
FATE_AVCONV += $(FATE_ACODEC)
|
|
|
|
fate-acodec: $(FATE_ACODEC)
|