History

tests/fate/opus: change test to use the official reference samples

The official samples are 50% smaller Avoid having reference samples which are strongly linked to the used resampler implementation. (which for example would require new samples to be used if this implementation changes) Also its more correct to use the official samples instead of the current decoder output also enable tests The tests also fully pass as well with the previous samples.

Michael Niedermayer committed 12 years ago

Commit d2282711 parent c3ee6e31 file · +12 −4Browse files

Unified · Split

tests/fate/opus.mak+12−4
@@ -14,8 +14,8 @@ OPUS_SAMPLES = $(addprefix testvector, 08 09 10 12) · 13 unmodified lines
14define FATE_OPUS_TEST14define FATE_OPUS_TEST
15FATE_OPUS += fate-opus-$(1)15FATE_OPUS += fate-opus-$(1)
16FATE_OPUS$(2) += fate-opus-$(1)16FATE_OPUS$(2) += fate-opus-$(1)
17fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f f32le -17fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f s16le -
18fate-opus-$(1): REF = $(TARGET_SAMPLES)/opus/$(1).f3218fate-opus-$(1): REF = $(TARGET_SAMPLES)/opus/$(1).dec
19endef19endef
20 20
21$(foreach N,$(OPUS_CELT_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N),_CELT)))21$(foreach N,$(OPUS_CELT_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N),_CELT)))
@@ -26,13 +26,21 @@ $(foreach N,$(OPUS_SAMPLES), $(eval $(call FATE_OPUS_TEST,$(N),))) · 4 unmodified lines
26FATE_OPUS := $(sort $(FATE_OPUS))26FATE_OPUS := $(sort $(FATE_OPUS))
27 27
28$(FATE_OPUS): CMP = stddev28$(FATE_OPUS): CMP = stddev
29$(FATE_OPUS): CMP_UNIT = f3229$(FATE_OPUS): CMP_UNIT = s16
30$(FATE_OPUS): FUZZ = 330$(FATE_OPUS): FUZZ = 3
31fate-opus-testvector02: CMP_TARGET = 191
32fate-opus-testvector03: CMP_TARGET = 139
33fate-opus-testvector04: CMP_TARGET = 119
34fate-opus-testvector05: CMP_TARGET = 108
35fate-opus-testvector06: CMP_TARGET = 106
36fate-opus-testvector08: CMP_TARGET = 6
37fate-opus-testvector10: CMP_TARGET = 38
38fate-opus-testvector12: CMP_TARGET = 160
31 39
32$(FATE_OPUS_CELT): CMP = oneoff40$(FATE_OPUS_CELT): CMP = oneoff
33$(FATE_OPUS_CELT): FUZZ = 641$(FATE_OPUS_CELT): FUZZ = 6
34 42
35#FATE_SAMPLES_AVCONV-$(call DEMDEC, MATROSKA, OPUS) += $(FATE_OPUS)43FATE_SAMPLES_AVCONV-$(call DEMDEC, MATROSKA, OPUS) += $(FATE_OPUS)
36fate-opus-celt: $(FATE_OPUS_CELT)44fate-opus-celt: $(FATE_OPUS_CELT)
37fate-opus-hybrid: $(FATE_OPUS_HYBRID)45fate-opus-hybrid: $(FATE_OPUS_HYBRID)
38fate-opus-silk: $(FATE_OPUS_SILK)46fate-opus-silk: $(FATE_OPUS_SILK)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t