dca.mak 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # dcadec test samples
  2. DCADEC_SUITE_LOSSLESS_16 = xll_51_16_192_768_0 \
  3. xll_51_16_192_768_1 \
  4. DCADEC_SUITE_LOSSLESS_24 = xll_51_24_48_768 \
  5. xll_51_24_48_none \
  6. xll_71_24_48_768_0 \
  7. xll_71_24_48_768_1 \
  8. xll_71_24_96_768 \
  9. xll_x96_51_24_96_1509 \
  10. xll_xch_61_24_48_768 \
  11. DCADEC_SUITE_LOSSY = core_51_24_48_768_0 \
  12. core_51_24_48_768_1 \
  13. x96_51_24_96_1509 \
  14. x96_xch_61_24_96_3840 \
  15. x96_xxch_71_24_96_3840 \
  16. xbr_51_24_48_3840 \
  17. xbr_xch_61_24_48_3840 \
  18. xbr_xxch_71_24_48_3840 \
  19. xch_61_24_48_768 \
  20. xxch_71_24_48_2046 \
  21. define FATE_DCADEC_LOSSLESS_SUITE
  22. FATE_DCADEC_LOSSLESS += fate-dca-$(1) fate-dca-$(1)-dmix_2 fate-dca-$(1)-dmix_6
  23. fate-dca-$(1): CMD = framemd5 -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2)
  24. fate-dca-$(1)-dmix_2: CMD = framemd5 -request_channel_layout 0x3 -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2)
  25. fate-dca-$(1)-dmix_6: CMD = framemd5 -request_channel_layout 0x60f -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -c:a pcm_$(2)
  26. endef
  27. define FATE_DCADEC_LOSSY_SUITE
  28. FATE_DCADEC_LOSSY += fate-dca-$(1)
  29. fate-dca-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/dts/dcadec-suite/$(1).dtshd -f f32le -
  30. fate-dca-$(1): REF = $(SAMPLES)/dts/dcadec-suite/$(1).f32
  31. endef
  32. $(foreach N,$(DCADEC_SUITE_LOSSLESS_16),$(eval $(call FATE_DCADEC_LOSSLESS_SUITE,$(N),s16le)))
  33. $(foreach N,$(DCADEC_SUITE_LOSSLESS_24),$(eval $(call FATE_DCADEC_LOSSLESS_SUITE,$(N),s24le)))
  34. $(foreach N,$(DCADEC_SUITE_LOSSY),$(eval $(call FATE_DCADEC_LOSSY_SUITE,$(N))))
  35. # lossy downmix tests
  36. FATE_DCADEC_LOSSY += fate-dca-core_51_24_48_768_1-dmix_2
  37. fate-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 -
  38. fate-dca-core_51_24_48_768_1-dmix_2: REF = $(SAMPLES)/dts/dcadec-suite/core_51_24_48_768_1-dmix_2.f32
  39. FATE_DCADEC_LOSSY += fate-dca-x96_xxch_71_24_96_3840-dmix_2
  40. fate-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 -
  41. # intentionally uses the dmix_6 reference because the sample does not contain stereo downmix coefficients
  42. fate-dca-x96_xxch_71_24_96_3840-dmix_2: REF = $(SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840-dmix_6.f32
  43. FATE_DCADEC_LOSSY += fate-dca-x96_xxch_71_24_96_3840-dmix_6
  44. fate-dca-x96_xxch_71_24_96_3840-dmix_6: CMD = ffmpeg -request_channel_layout 0x60f -i $(TARGET_SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840.dtshd -f f32le -
  45. fate-dca-x96_xxch_71_24_96_3840-dmix_6: REF = $(SAMPLES)/dts/dcadec-suite/x96_xxch_71_24_96_3840-dmix_6.f32
  46. FATE_DCADEC_LOSSY += fate-dca-xch_61_24_48_768-dmix_6
  47. fate-dca-xch_61_24_48_768-dmix_6: CMD = ffmpeg -request_channel_layout 0x60f -i $(TARGET_SAMPLES)/dts/dcadec-suite/xch_61_24_48_768.dtshd -f f32le -
  48. fate-dca-xch_61_24_48_768-dmix_6: REF = $(SAMPLES)/dts/dcadec-suite/xch_61_24_48_768-dmix_6.f32
  49. $(FATE_DCADEC_LOSSY): CMP = oneoff
  50. $(FATE_DCADEC_LOSSY): CMP_UNIT = f32
  51. $(FATE_DCADEC_LOSSY): FUZZ = 9
  52. FATE_DCA-$(call DEMDEC, DTSHD, DCA) += $(FATE_DCADEC_LOSSLESS) $(FATE_DCADEC_LOSSY)
  53. FATE_DCA-$(call DEMDEC, MPEGTS, DCA) += fate-dca-core
  54. fate-dca-core: CMD = pcm -i $(TARGET_SAMPLES)/dts/dts.ts
  55. fate-dca-core: CMP = oneoff
  56. fate-dca-core: REF = $(SAMPLES)/dts/dts.pcm
  57. FATE_DCA-$(call DEMDEC, DTS, DCA) += fate-dca-xll
  58. fate-dca-xll: CMD = md5 -i $(TARGET_SAMPLES)/dts/master_audio_7.1_24bit.dts -f s24le
  59. FATE_DCA-$(call DEMDEC, DTS, DCA) += fate-dts_es
  60. fate-dts_es: CMD = pcm -i $(TARGET_SAMPLES)/dts/dts_es.dts
  61. fate-dts_es: CMP = oneoff
  62. fate-dts_es: REF = $(SAMPLES)/dts/dts_es_2.pcm
  63. FATE_DCA-$(call ALLYES, DTS_DEMUXER DTS_MUXER DCA_CORE_BSF) += fate-dca-core-bsf
  64. fate-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
  65. fate-dca-core-bsf: CMP = oneline
  66. fate-dca-core-bsf: REF = ca22b00d8c641cd168e2f7ca8d2f340e
  67. FATE_SAMPLES_AUDIO += $(FATE_DCA-yes)
  68. fate-dca: $(FATE_DCA-yes)