opus.mak 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # The samples were produced by simply rewrapping the official test vectors from
  2. # their custom format into Matroska. The reference decoded outputs are from the
  3. # newest testvectors file from RFC8251
  4. OPUS_CELT_SAMPLES = $(addprefix testvector, 01 11) tron.6ch.tinypkts
  5. OPUS_HYBRID_SAMPLES = $(addprefix testvector, 05 06)
  6. OPUS_SILK_SAMPLES = $(addprefix testvector, 02 03 04) silk-lbrr
  7. OPUS_OTHER_SAMPLES = $(addprefix testvector, 07 08 09 10 12)
  8. define FATE_OPUS_TEST
  9. FATE_OPUS_$(1)-$(call FILTERDEMDECENCMUX, ARESAMPLE, MATROSKA, OPUS, PCM_S16LE, PCM_S16LE, PIPE_PROTOCOL) := $(addprefix fate-opus-,$(OPUS_$(1)_SAMPLES))
  10. FATE_OPUS += $$(FATE_OPUS_$(1)-yes)
  11. endef
  12. $(foreach N, CELT HYBRID SILK OTHER, $(eval $(call FATE_OPUS_TEST,$(N))))
  13. $(FATE_OPUS): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(@:fate-opus-%=%).mka -f s16le -af aresample -
  14. $(FATE_OPUS): REF = $(SAMPLES)/opus/$(@:fate-opus-%=%).dec
  15. $(FATE_OPUS_HYBRID-yes): REF = $(SAMPLES)/opus/$(@:fate-opus-%=%)_v2.dec
  16. $(FATE_OPUS): CMP = stddev
  17. $(FATE_OPUS): CMP_UNIT = s16
  18. $(FATE_OPUS): FUZZ = 3
  19. fate-opus-testvector01: CMP_TARGET = 0
  20. fate-opus-testvector02: CMP_TARGET = 191
  21. fate-opus-testvector03: CMP_TARGET = 139
  22. fate-opus-testvector04: CMP_TARGET = 119
  23. fate-opus-testvector05: CMP_TARGET = 108
  24. fate-opus-testvector06: CMP_TARGET = 106
  25. fate-opus-testvector07: CMP_TARGET = 0
  26. fate-opus-testvector08: CMP_TARGET = 6
  27. fate-opus-testvector09: CMP_TARGET = 0
  28. fate-opus-testvector10: CMP_TARGET = 38
  29. fate-opus-testvector11: CMP_TARGET = 0
  30. fate-opus-testvector12: CMP_TARGET = 160
  31. fate-opus-silk-lbrr: CMP_TARGET = 0
  32. fate-opus-tron.6ch.tinypkts: CMP_SHIFT = 1440
  33. fate-opus-tron.6ch.tinypkts: CMP_TARGET = 0
  34. FATE_SAMPLES_FFMPEG += $(FATE_OPUS)
  35. fate-opus-celt: $(FATE_OPUS_CELT-yes)
  36. fate-opus-hybrid: $(FATE_OPUS_HYBRID-yes)
  37. fate-opus-silk: $(FATE_OPUS_SILK-yes)
  38. fate-opus: $(FATE_OPUS)