acodec.mak 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. fate-acodec-%: CODEC = $(@:fate-acodec-%=%)
  2. fate-acodec-%: SRC = tests/data/asynth-44100-2.wav
  3. fate-acodec-%: CMD = enc_dec wav $(SRC) $(FMT) "-b 128k -c $(CODEC) $(ENCOPTS)" wav "-c pcm_s16le $(DECOPTS)" -keep
  4. fate-acodec-%: CMP_UNIT = 2
  5. fate-acodec-%: REF = $(SRC_PATH)/tests/ref/acodec/$(@:fate-acodec-%=%)
  6. FATE_ACODEC_PCM-$(call ENCDEC, PCM_ALAW, WAV) += alaw
  7. FATE_ACODEC_PCM-$(call ENCDEC, PCM_MULAW, WAV) += mulaw
  8. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S8, MOV) += s8
  9. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U8, WAV) += u8
  10. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE, MOV) += s16be
  11. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE, WAV) += s16le
  12. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16BE, NUT) += u16be
  13. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U16LE, NUT) += u16le
  14. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24BE, MOV) += s24be
  15. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24LE, WAV) += s24le
  16. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U24BE, NUT) += u24be
  17. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U24LE, NUT) += u24le
  18. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32BE, MOV) += s32be
  19. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32LE, WAV) += s32le
  20. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U32BE, NUT) += u32be
  21. FATE_ACODEC_PCM-$(call ENCDEC, PCM_U32LE, NUT) += u32le
  22. FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32BE, AU) += f32be
  23. FATE_ACODEC_PCM-$(call ENCDEC, PCM_F32LE, WAV) += f32le
  24. FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64BE, AU) += f64be
  25. FATE_ACODEC_PCM-$(call ENCDEC, PCM_F64LE, WAV) += f64le
  26. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S8_PLANAR, NUT) += s8_planar
  27. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16BE_PLANAR, NUT) += s16be_planar
  28. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S16LE_PLANAR, NUT) += s16le_planar
  29. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S24LE_PLANAR, NUT) += s24le_planar
  30. FATE_ACODEC_PCM-$(call ENCDEC, PCM_S32LE_PLANAR, NUT) += s32le_planar
  31. FATE_ACODEC_PCM := $(FATE_ACODEC_PCM-yes:%=fate-acodec-pcm-%)
  32. FATE_ACODEC += $(FATE_ACODEC_PCM)
  33. fate-acodec-pcm: $(FATE_ACODEC_PCM)
  34. fate-acodec-pcm-%: FMT = wav
  35. fate-acodec-pcm-%_planar: FMT = nut
  36. fate-acodec-pcm-%: CODEC = pcm_$(@:fate-acodec-pcm-%=%)
  37. fate-acodec-pcm-s8: FMT = mov
  38. fate-acodec-pcm-s%be: FMT = mov
  39. fate-acodec-pcm-u%be: FMT = nut
  40. fate-acodec-pcm-u%le: FMT = nut
  41. fate-acodec-pcm-f%be: FMT = au
  42. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_ADX, ADX) += adx
  43. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_QT, AIFF) += ima_qt
  44. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_IMA_WAV, WAV) += ima_wav
  45. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_MS, WAV) += ms
  46. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_SWF, FLV) += swf
  47. FATE_ACODEC_ADPCM-$(call ENCDEC, ADPCM_YAMAHA, WAV) += yamaha
  48. FATE_ACODEC_ADPCM := $(FATE_ACODEC_ADPCM-yes:%=fate-acodec-adpcm-%)
  49. FATE_ACODEC += $(FATE_ACODEC_ADPCM)
  50. fate-acodec-adpcm: $(FATE_ACODEC_ADPCM)
  51. fate-acodec-adpcm-%: CODEC = adpcm_$(@:fate-acodec-adpcm-%=%)
  52. fate-acodec-adpcm-adx: FMT = adx
  53. fate-acodec-adpcm-ima_qt: FMT = aiff
  54. fate-acodec-adpcm-ima_wav: FMT = wav
  55. fate-acodec-adpcm-ms: FMT = wav
  56. fate-acodec-adpcm-swf: FMT = flv
  57. fate-acodec-adpcm-yamaha: FMT = wav
  58. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_ADX, ADX) += adx
  59. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_IMA_QT, AIFF) += ima_qt
  60. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_IMA_WAV, WAV) += ima_wav
  61. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_MS, WAV) += ms
  62. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_SWF, FLV) += swf
  63. FATE_ACODEC_ADPCM_TRELLIS-$(call ENCDEC, ADPCM_YAMAHA, WAV) += yamaha
  64. FATE_ACODEC_ADPCM_TRELLIS := $(FATE_ACODEC_ADPCM_TRELLIS-yes:%=fate-acodec-adpcm-%-trellis)
  65. FATE_ACODEC += $(FATE_ACODEC_ADPCM_TRELLIS)
  66. fate-acodec-adpcm-trellis: $(FATE_ACODEC_ADPCM_TRELLIS)
  67. fate-acodec-adpcm-%-trellis: CODEC = adpcm_$(@:fate-acodec-adpcm-%-trellis=%)
  68. fate-acodec-adpcm-%-trellis: ENCOPTS = -trellis 5
  69. fate-acodec-adpcm-adx-trellis: FMT = adx
  70. fate-acodec-adpcm-ima_qt-trellis: FMT = aiff
  71. fate-acodec-adpcm-ima_wav-trellis: FMT = wav
  72. fate-acodec-adpcm-ms-trellis: FMT = wav
  73. fate-acodec-adpcm-swf-trellis: FMT = flv
  74. fate-acodec-adpcm-yamaha-trellis: FMT = wav
  75. FATE_ACODEC-$(call ENCDEC, MP2, MP2 MP3) += fate-acodec-mp2
  76. fate-acodec-mp2: FMT = mp2
  77. fate-acodec-mp2: CMP_SHIFT = -1924
  78. fate-acodec-mp2: ENCOPTS = -b:a 128k
  79. FATE_ACODEC-$(call ENCDEC, MP2FIXED MP2 , MP2 MP3) += fate-acodec-mp2fixed
  80. fate-acodec-mp2fixed: FMT = mp2
  81. fate-acodec-mp2fixed: CMP_SHIFT = -1924
  82. FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
  83. fate-acodec-alac: FMT = mov
  84. fate-acodec-alac: CODEC = alac -compression_level 1
  85. FATE_ACODEC-$(call ENCDEC, DCA, DTS) += fate-acodec-dca
  86. fate-acodec-dca: tests/data/asynth-44100-2.wav
  87. fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
  88. fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
  89. fate-acodec-dca: CMP = oneline
  90. fate-acodec-dca: REF = c54ca9a13711755ef90fa143a9b38386
  91. FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
  92. fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
  93. fate-acodec-dca2: REF = $(SRC)
  94. fate-acodec-dca2: CMP = stddev
  95. fate-acodec-dca2: CMP_SHIFT = -2048
  96. fate-acodec-dca2: CMP_TARGET = 527
  97. fate-acodec-dca2: SIZE_TOLERANCE = 1632
  98. FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac
  99. fate-acodec-flac: FMT = flac
  100. fate-acodec-flac: CODEC = flac -compression_level 2
  101. FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1
  102. fate-acodec-g723_1: tests/data/asynth-8000-1.wav
  103. fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
  104. fate-acodec-g723_1: FMT = g723_1
  105. fate-acodec-g723_1: CODEC = g723_1
  106. fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
  107. fate-acodec-g723_1: CMP_SHIFT = 8
  108. FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
  109. fate-acodec-ra144: tests/data/asynth-8000-1.wav
  110. fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
  111. fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
  112. fate-acodec-ra144: REF = $(SRC)
  113. fate-acodec-ra144: CMP = stddev
  114. fate-acodec-ra144: CMP_TARGET = 4777
  115. fate-acodec-ra144: CMP_SHIFT = -320
  116. FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ) += fate-acodec-roqaudio
  117. fate-acodec-roqaudio: FMT = roq
  118. fate-acodec-roqaudio: CODEC = roq_dpcm
  119. fate-acodec-roqaudio: ENCOPTS = -ar 22050
  120. fate-acodec-roqaudio: DECOPTS = -ar 44100
  121. FATE_ACODEC += $(FATE_ACODEC-yes)
  122. $(FATE_ACODEC): tests/data/asynth-44100-2.wav
  123. FATE_AVCONV += $(FATE_ACODEC)
  124. fate-acodec: $(FATE_ACODEC)