1# dcadec test samples 2DCADEC_SUITE_LOSSLESS_16 = xll_51_16_192_768_0 \ 3 xll_51_16_192_768_1 \ 4 5DCADEC_SUITE_LOSSLESS_24 = xll_51_24_48_768 \ 6 xll_51_24_48_none \ 7 xll_71_24_48_768_0 \ 8 xll_71_24_48_768_1 \ 9 xll_71_24_96_768 \ 10 xll_x96_51_24_96_1509 \ 11 xll_xch_61_24_48_768 \ 12 13DCADEC_SUITE_LOSSY = core_51_24_48_768_0 \ 14 core_51_24_48_768_1 \ 15 x96_51_24_96_1509 \ 16 x96_xch_61_24_96_3840 \ 17 x96_xxch_71_24_96_3840 \ 18 xbr_51_24_48_3840 \ 19 xbr_xch_61_24_48_3840 \ 20 xbr_xxch_71_24_48_3840 \ 21 xch_61_24_48_768 \ 22 xxch_71_24_48_2046 \ 23 24define FATE_DCADEC_LOSSLESS_SUITE 25FATE_DCADEC_LOSSLESS_$(2) += fate-dca-$(1) fate-dca-$(1)-dmix_2 fate-dca-$(1)-dmix_6 26fate-dca-$(1): CMD = framemd5 -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2) -af aresample 27fate-dca-$(1)-dmix_2: CMD = framemd5 -request_channel_layout 0x3 -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2) -af aresample 28fate-dca-$(1)-dmix_6: CMD = framemd5 -request_channel_layout 0x60f -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2) -af aresample 29endef 30 31define FATE_DCADEC_LOSSY_SUITE 32FATE_DCADEC_LOSSY += fate-dca-$(1) 33fate-dca-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -f f32le -af aresample - 34fate-dca-$(1): REF = $(SAMPLES)/dts/dcadec-suite/$(1).f32 35endef 36 37$(foreach N,$(DCADEC_SUITE_LOSSLESS_16),$(eval $(call FATE_DCADEC_LOSSLESS_SUITE,$(N),s16le))) 38$(foreach N,$(DCADEC_SUITE_LOSSLESS_24),$(eval $(call FATE_DCADEC_LOSSLESS_SUITE,$(N),s24le))) 39$(foreach N,$(DCADEC_SUITE_LOSSY),$(eval $(call FATE_DCADEC_LOSSY_SUITE,$(N)))) 40 41# lossy downmix tests 42FATE_DCADEC_LOSSY += fate-dca-core_51_24_48_768_1-dmix_2 43fate-dca-core_51_24_48_768_1-dmix_2: CMD = ffmpeg -request_channel_layout 0x3 -i $(TARGET_SAMPLES)/dts/dcadec-suite/core_51_24_48_768_1.dtshd -f f32le -af aresample - 44fate-dca-core_51_24_48_768_1-dmix_2: REF = $(SAMPLES)/dts/dcadec-suite/core_51_24_48_768_1-dmix_2.f32 45 46FATE_DCADEC_LOSSY += fate-dca-x96_xxch_71_24_96_3840-dmix_2 47fate-dca-x96_xxch_71_24_96_3840-dmix_2: CMD = ffmpeg -request_channel_layout 0x3 -i $(TARGET_SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840.dtshd -f f32le -af aresample - 48# intentionally uses the dmix_6 reference because the sample does not contain stereo downmix coefficients 49fate-dca-x96_xxch_71_24_96_3840-dmix_2: REF = $(SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840-dmix_6.f32 50 51FATE_DCADEC_LOSSY += fate-dca-x96_xxch_71_24_96_3840-dmix_6 52 53fate-dca-x96_xxch_71_24_96_3840-dmix_6: CMD = ffmpeg -request_channel_layout "FL|FR|FC|LFE|SL|SR" -i $(TARGET_SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840.dtshd -f f32le -af aresample - 54fate-dca-x96_xxch_71_24_96_3840-dmix_6: REF = $(SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840-dmix_6.f32 55 56FATE_DCADEC_LOSSY += fate-dca-xch_61_24_48_768-dmix_6 57fate-dca-xch_61_24_48_768-dmix_6: CMD = ffmpeg -request_channel_layout "5.1(side)" -i $(TARGET_SAMPLES)/dts/dcadec-suite/xch_61_24_48_768.dtshd -f f32le -af aresample - 58fate-dca-xch_61_24_48_768-dmix_6: REF = $(SAMPLES)/dts/dcadec-suite/xch_61_24_48_768-dmix_6.f32 59 60$(FATE_DCADEC_LOSSY): CMP = oneoff 61$(FATE_DCADEC_LOSSY): CMP_UNIT = f32 62$(FATE_DCADEC_LOSSY): FUZZ = 9 63 64FATE_DCA-$(call FRAMEMD5, DTSHD, DCA, ARESAMPLE_FILTER PCM_S16LE_ENCODER) += $(FATE_DCADEC_LOSSLESS_s16le) 65FATE_DCA-$(call FRAMEMD5, DTSHD, DCA, ARESAMPLE_FILTER PCM_S24LE_ENCODER) += $(FATE_DCADEC_LOSSLESS_s24le) 66FATE_DCA-$(call FILTERDEMDECENCMUX, ARESAMPLE, DTSHD, DCA, PCM_F32LE, PCM_F32LE, PIPE_PROTOCOL) += $(FATE_DCADEC_LOSSY) 67 68FATE_DCA-$(call PCM, MPEGTS, DCA, DTS_DEMUXER ARESAMPLE_FILTER) += fate-dca-core 69fate-dca-core: CMD = pcm -i $(TARGET_SAMPLES)/dts/dts.ts 70fate-dca-core: CMP = oneoff 71fate-dca-core: REF = $(SAMPLES)/dts/dts.pcm 72 73FATE_DCA-$(call DEMDEC, DTS, DCA, ARESAMPLE_FILTER PCM_S24LE_ENCODER PCM_S24LE_MUXER) += fate-dca-xll 74fate-dca-xll: CMD = md5 -i $(TARGET_SAMPLES)/dts/master_audio_7.1_24bit.dts -f s24le -af aresample 75 76FATE_DCA-$(call PCM, DTS, DCA, ARESAMPLE_FILTER) += fate-dts_es 77fate-dts_es: CMD = pcm -i $(TARGET_SAMPLES)/dts/dts_es.dts 78fate-dts_es: CMP = oneoff 79fate-dts_es: REF = $(SAMPLES)/dts/dts_es_2.pcm 80 81FATE_DCA-$(call DEMMUX, DTS, DTS, DCA_CORE_BSF MD5_PROTOCOL) += fate-dca-core-bsf 82fate-dca-core-bsf: CMD = md5pipe -i $(TARGET_SAMPLES)/dts/master_audio_7.1_24bit.dts -c:a copy -bsf:a dca_core -fflags +bitexact -f dts 83fate-dca-core-bsf: CMP = oneline 84fate-dca-core-bsf: REF = ca22b00d8c641cd168e2f7ca8d2f340e 85 86FATE_SAMPLES_AUDIO += $(FATE_DCA-yes) 87fate-dca: $(FATE_DCA-yes) 88