opus.mak 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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)
  7. OPUS_SAMPLES = $(addprefix testvector, 07 08 09 10 12)
  8. define FATE_OPUS_TEST
  9. FATE_OPUS += fate-opus-$(1)
  10. FATE_OPUS$(2) += fate-opus-$(1)
  11. fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f s16le -
  12. fate-opus-$(1): REF = $(SAMPLES)/opus/$(1)$(2).dec
  13. endef
  14. $(foreach N,$(OPUS_CELT_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N))))
  15. $(foreach N,$(OPUS_HYBRID_SAMPLES),$(eval $(call FATE_OPUS_TEST,$(N),_v2)))
  16. $(foreach N,$(OPUS_SILK_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N))))
  17. $(foreach N,$(OPUS_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N),)))
  18. FATE_OPUS := $(sort $(FATE_OPUS))
  19. $(FATE_OPUS): CMP = stddev
  20. $(FATE_OPUS): CMP_UNIT = s16
  21. $(FATE_OPUS): FUZZ = 3
  22. fate-opus-testvector01: CMP_TARGET = 0
  23. fate-opus-testvector02: CMP_TARGET = 191
  24. fate-opus-testvector03: CMP_TARGET = 139
  25. fate-opus-testvector04: CMP_TARGET = 119
  26. fate-opus-testvector05: CMP_TARGET = 108
  27. fate-opus-testvector06: CMP_TARGET = 106
  28. fate-opus-testvector07: CMP_TARGET = 0
  29. fate-opus-testvector08: CMP_TARGET = 6
  30. fate-opus-testvector09: CMP_TARGET = 0
  31. fate-opus-testvector10: CMP_TARGET = 38
  32. fate-opus-testvector11: CMP_TARGET = 0
  33. fate-opus-testvector12: CMP_TARGET = 160
  34. fate-opus-tron.6ch.tinypkts: CMP_SHIFT = 1440
  35. fate-opus-tron.6ch.tinypkts: CMP_TARGET = 0
  36. $(FATE_OPUS_CELT): CMP = oneoff
  37. $(FATE_OPUS_CELT): FUZZ = 6
  38. FATE_SAMPLES_AVCONV-$(call DEMDEC, MATROSKA, OPUS) += $(FATE_OPUS)
  39. fate-opus-celt: $(FATE_OPUS_CELT)
  40. fate-opus-hybrid: $(FATE_OPUS_HYBRID)
  41. fate-opus-silk: $(FATE_OPUS_SILK)
  42. fate-opus: $(FATE_OPUS)