acodec.mak 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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-$(call ENCDEC, MP2, MP2 MP3) += fate-acodec-mp2
  59. fate-acodec-mp2: FMT = mp2
  60. fate-acodec-mp2: CMP_SHIFT = -1924
  61. FATE_ACODEC-$(call ENCDEC, ALAC, MOV) += fate-acodec-alac
  62. fate-acodec-alac: FMT = mov
  63. fate-acodec-alac: CODEC = alac -compression_level 1
  64. FATE_ACODEC-$(call ENCDEC, DCA, DTS) += fate-acodec-dca
  65. fate-acodec-dca: tests/data/asynth-44100-2.wav
  66. fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
  67. fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
  68. fate-acodec-dca: CMP = oneline
  69. fate-acodec-dca: REF = fe28cef432ed88de4ee01b87537fd2bd
  70. FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
  71. fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
  72. fate-acodec-dca2: REF = $(SRC)
  73. fate-acodec-dca2: CMP = stddev
  74. fate-acodec-dca2: CMP_SHIFT = -2048
  75. fate-acodec-dca2: CMP_TARGET = 527
  76. fate-acodec-dca2: SIZE_TOLERANCE = 1632
  77. FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac
  78. fate-acodec-flac: FMT = flac
  79. fate-acodec-flac: CODEC = flac -compression_level 2
  80. FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1
  81. fate-acodec-g723_1: tests/data/asynth-8000-1.wav
  82. fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
  83. fate-acodec-g723_1: FMT = g723_1
  84. fate-acodec-g723_1: CODEC = g723_1
  85. fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
  86. fate-acodec-g723_1: CMP_SHIFT = 8
  87. FATE_ACODEC-$(call ENCDEC, RA_144, WAV) += fate-acodec-ra144
  88. fate-acodec-ra144: tests/data/asynth-8000-1.wav
  89. fate-acodec-ra144: SRC = tests/data/asynth-8000-1.wav
  90. fate-acodec-ra144: CMD = enc_dec_pcm rm wav s16le $(SRC) -c:a real_144
  91. fate-acodec-ra144: REF = $(SRC)
  92. fate-acodec-ra144: CMP = stddev
  93. fate-acodec-ra144: CMP_TARGET = 4777
  94. fate-acodec-ra144: CMP_SHIFT = -320
  95. FATE_ACODEC-$(call ENCDEC, ROQ_DPCM, ROQ) += fate-acodec-roqaudio
  96. fate-acodec-roqaudio: FMT = roq
  97. fate-acodec-roqaudio: CODEC = roq_dpcm
  98. fate-acodec-roqaudio: ENCOPTS = -ar 22050
  99. fate-acodec-roqaudio: DECOPTS = -ar 44100
  100. FATE_ACODEC += $(FATE_ACODEC-yes)
  101. $(FATE_ACODEC): tests/data/asynth-44100-2.wav
  102. FATE_AVCONV += $(FATE_ACODEC)
  103. fate-acodec: $(FATE_ACODEC)