diff options
author | Mans Rullgard <mans@mansr.com> | 2012-05-18 13:33:28 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-05-29 11:35:41 +0400 |
commit | 7263cd554496d95dec4b97df3e7a935208acd5b1 (patch) | |
tree | c113b3a9413c5044f709a3ead093a24df66aef66 /tests/fate/acodec.mak | |
parent | 47b5996bb018e15bde6b6af9b5c849961b4bf845 (diff) |
fate: convert codec-regression.sh to makefile rules
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests/fate/acodec.mak')
-rw-r--r-- | tests/fate/acodec.mak | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/fate/acodec.mak b/tests/fate/acodec.mak new file mode 100644 index 0000000000..6d5e826f43 --- /dev/null +++ b/tests/fate/acodec.mak @@ -0,0 +1,49 @@ +FATE_ACODEC_PCM = alaw mulaw \ + s8 u8 \ + s16be s16le \ + s24be s24le \ + s32be s32le \ + f32be f32le \ + f64be f64le + +FATE_ACODEC += $(FATE_ACODEC_PCM:%=fate-acodec-pcm-%) + +fate-acodec-pcm-%: FMT = wav +fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%) + +fate-acodec-pcm-s8: FMT = mov +fate-acodec-pcm-s%be: FMT = mov +fate-acodec-pcm-f%be: FMT = au + +FATE_ACODEC_ADPCM = adx ima_qt ima_wav ms swf yamaha +FATE_ACODEC += $(FATE_ACODEC_ADPCM:%=fate-acodec-adpcm-%) + +fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%) + +fate-acodec-adpcm-adx: FMT = adx +fate-acodec-adpcm-ima_qt: FMT = aiff +fate-acodec-adpcm-ima_wav: FMT = wav +fate-acodec-adpcm-ms: FMT = wav +fate-acodec-adpcm-swf: FMT = flv +fate-acodec-adpcm-yamaha: FMT = wav + +FATE_ACODEC += fate-acodec-mp2 +fate-acodec-mp2: FMT = mp2 +fate-acodec-mp2: CMP_SHIFT = -1924 + +FATE_ACODEC += fate-acodec-alac +fate-acodec-alac: FMT = mov +fate-acodec-alac: CODEC = alac -compression_level 1 + +FATE_ACODEC += fate-acodec-flac +fate-acodec-flac: FMT = flac +fate-acodec-flac: CODEC = flac -compression_level 2 + +$(FATE_ACODEC): tests/data/asynth-44100-2.wav +fate-acodec-%: CODEC = $(@:fate-acodec-%=%) +fate-acodec-%: SRC = tests/data/asynth-44100-2.wav +fate-acodec-%: CMD = enc_dec wav $(SRC) $(FMT) "-b 128k -c $(CODEC)" wav "-c pcm_s16le" -keep +fate-acodec-%: CMP_UNIT = 2 + +FATE_AVCONV += $(FATE_ACODEC) +fate-acodec: $(FATE_ACODEC) |