Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
9ab5f710
Commit
9ab5f710
authored
Sep 30, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FATE: add lavr mixing tests
parent
df6737a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
tests/Makefile
tests/Makefile
+1
-0
tests/fate/libavresample.mak
tests/fate/libavresample.mak
+26
-0
No files found.
tests/Makefile
View file @
9ab5f710
...
...
@@ -82,6 +82,7 @@ include $(SRC_PATH)/tests/fate/indeo.mak
include
$(SRC_PATH)/tests/fate/libavcodec.mak
include
$(SRC_PATH)/tests/fate/libavdevice.mak
include
$(SRC_PATH)/tests/fate/libavformat.mak
include
$(SRC_PATH)/tests/fate/libavresample.mak
include
$(SRC_PATH)/tests/fate/libavutil.mak
include
$(SRC_PATH)/tests/fate/lossless-audio.mak
include
$(SRC_PATH)/tests/fate/lossless-video.mak
...
...
tests/fate/libavresample.mak
0 → 100644
View file @
9ab5f710
CROSS_TEST
=
$(
foreach
I,
$(1)
,
\
$(
foreach
J,
$(1)
,
\
$(
if
$(
filter-out
$(I)
,
$(J)
)
,
\
$(
eval
$(
call
$(2)
,
$(I)
,
$(J)
,
$(3)
,
$(4)
))
,
\
)))
MIX_CHANNELS
=
1 2 3 4 5 6 7 8
define
MIX
FATE_LAVR_MIX
+=
fate-lavr-mix-
$(3)
-
$(1)
-
$(2)
fate-lavr-mix-$(3)-$(1)-$(2)
:
tests/data/asynth-44100-$(1).wav
fate-lavr-mix-$(3)-$(1)-$(2)
:
CMD = avconv -i $(TARGET_PATH)/tests/data/asynth-44100-$(1).wav -ac $(2) -mix_coeff_type $(3) -internal_sample_fmt $(4) -f s16le -af atrim=end_sample=1024 -
fate-lavr-mix-$(3)-$(1)-$(2)
:
CMP = oneoff
fate-lavr-mix-$(3)-$(1)-$(2)
:
REF = $(SAMPLES)/lavr/lavr-mix-$(3)-$(1)-$(2)
endef
$(call
CROSS_TEST,$(MIX_CHANNELS),MIX,q8,s16p)
$(call
CROSS_TEST,$(MIX_CHANNELS),MIX,q15,s16p)
$(call
CROSS_TEST,$(MIX_CHANNELS),MIX,flt,fltp)
FATE_LAVR_MIX-$(call
FILTERDEMDECENCMUX,
RESAMPLE,
WAV,
PCM_S16LE,
PCM_S16LE,
WAV)
+=
$(FATE_LAVR_MIX)
fate-lavr-mix
:
$(FATE_LAVR_MIX-yes)
FATE_LAVR
+=
$
(
FATE_LAVR_MIX-yes
)
FATE_SAMPLES_AVCONV
+=
$(FATE_LAVR)
fate-lavr
:
$(FATE_LAVR)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment