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