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
1414 define FATE_OPUS_TEST
1515 FATE_OPUS += fate-opus-$(1)
1616 FATE_OPUS$(2) += fate-opus-$(1)
17−fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f f32le -
18−fate-opus-$(1): REF = $(TARGET_SAMPLES)/opus/$(1).f32
17+fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f s16le -
18+fate-opus-$(1): REF = $(TARGET_SAMPLES)/opus/$(1).dec
1919 endef
2020
2121 $(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
2626 FATE_OPUS := $(sort $(FATE_OPUS))
2727
2828 $(FATE_OPUS): CMP = stddev
29−$(FATE_OPUS): CMP_UNIT = f32
29+$(FATE_OPUS): CMP_UNIT = s16
3030 $(FATE_OPUS): FUZZ = 3
31+fate-opus-testvector02: CMP_TARGET = 191
32+fate-opus-testvector03: CMP_TARGET = 139
33+fate-opus-testvector04: CMP_TARGET = 119
34+fate-opus-testvector05: CMP_TARGET = 108
35+fate-opus-testvector06: CMP_TARGET = 106
36+fate-opus-testvector08: CMP_TARGET = 6
37+fate-opus-testvector10: CMP_TARGET = 38
38+fate-opus-testvector12: CMP_TARGET = 160
3139
3240 $(FATE_OPUS_CELT): CMP = oneoff
3341 $(FATE_OPUS_CELT): FUZZ = 6
3442
35−#FATE_SAMPLES_AVCONV-$(call DEMDEC, MATROSKA, OPUS) += $(FATE_OPUS)
43+FATE_SAMPLES_AVCONV-$(call DEMDEC, MATROSKA, OPUS) += $(FATE_OPUS)
3644 fate-opus-celt: $(FATE_OPUS_CELT)
3745 fate-opus-hybrid: $(FATE_OPUS_HYBRID)
3846 fate-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