acodec.mak 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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:a 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-mp2fixed: ENCOPTS = -b:a 384k
  83. FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
  84. fate-acodec-alac: FMT = mov
  85. fate-acodec-alac: CODEC = alac -compression_level 1
  86. FATE_ACODEC-$(call ENCDEC, DCA, DTS) += fate-acodec-dca
  87. fate-acodec-dca: tests/data/asynth-44100-2.wav
  88. fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
  89. fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
  90. fate-acodec-dca: CMP = oneline
  91. fate-acodec-dca: REF = 7ffdefdf47069289990755c79387cc90
  92. FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
  93. fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
  94. fate-acodec-dca2: REF = $(SRC)
  95. fate-acodec-dca2: CMP = stddev
  96. fate-acodec-dca2: CMP_SHIFT = -2048
  97. fate-acodec-dca2: CMP_TARGET = 527
  98. fate-acodec-dca2: SIZE_TOLERANCE = 1632
  99. FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac fate-acodec-flac-exact-rice
  100. fate-acodec-flac: FMT = flac
  101. fate-acodec-flac: CODEC = flac -compression_level 2
  102. fate-acodec-flac-exact-rice: FMT = flac
  103. fate-acodec-flac-exact-rice: CODEC = flac -compression_level 2 -exact_rice_parameters 1
  104. FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1
  105. fate-acodec-g723_1: tests/data/asynth-8000-1.wav
  106. fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
  107. fate-acodec-g723_1: FMT = g723_1
  108. fate-acodec-g723_1: CODEC = g723_1
  109. fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
  110. fate-acodec-g723_1: CMP_SHIFT = 8
  111. FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
  112. fate-acodec-ra144: tests/data/asynth-8000-1.wav
  113. fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
  114. fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
  115. fate-acodec-ra144: REF = $(SRC)
  116. fate-acodec-ra144: CMP = stddev
  117. fate-acodec-ra144: CMP_TARGET = 4777
  118. fate-acodec-ra144: CMP_SHIFT = -320
  119. FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ) += fate-acodec-roqaudio
  120. fate-acodec-roqaudio: FMT = roq
  121. fate-acodec-roqaudio: CODEC = roq_dpcm
  122. fate-acodec-roqaudio: ENCOPTS = -ar 22050
  123. fate-acodec-roqaudio: DECOPTS = -ar 44100
  124. FATE_ACODEC-$(call ENCDEC, S302M, MPEGTS) += fate-acodec-s302m
  125. fate-acodec-s302m: FMT = mpegts
  126. fate-acodec-s302m: CODEC = s302m
  127. fate-acodec-s302m: ENCOPTS = -ar 48000 -strict -2
  128. fate-acodec-s302m: DECOPTS = -ar 44100
  129. FATE_ACODEC-$(call ENCDEC, WAVPACK, WV) += fate-acodec-wavpack
  130. fate-acodec-wavpack: FMT = wv
  131. fate-acodec-wavpack: CODEC = wavpack -compression_level 1
  132. FATE_ACODEC-$(call ENCDEC, TTA, TTA) += fate-acodec-tta
  133. fate-acodec-tta: FMT = tta
  134. FATE_ACODEC += $(FATE_ACODEC-yes)
  135. $(FATE_ACODEC): tests/data/asynth-44100-2.wav
  136. FATE_AVCONV += $(FATE_ACODEC)
  137. fate-acodec: $(FATE_ACODEC)