mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 13:32:10 +00:00
tests/Makefile: Add auxiliary functions for transcode and stream_remux
Tests using the transcode and stream_remux functions have some common requirements (namely the file and pipe protocols as well as the framecrc muxer) and also other commonalities: The create a file and read it immediately afterwards, so that they typically rely on a corresponding muxer+demuxer pair which typically shares the same name; for transcode (if it does not use stream copy) the same is true for encoders and decoders. This means that using special Makefile-functions instead of the general ALLYES is worthwhile. This commit adds such functions. These functions allow to add arbitrary CONFIG-checks on top of the aforementioned ones in order to satisfy special needs (for e.g. parsers, filters) that several intended users have. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
202da3bf48
commit
7297b17a84
@ -74,6 +74,16 @@ ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
|
||||
$(firstword $(2))_ENCODER $(lastword $(2))_DECODER \
|
||||
$(firstword $(3))_MUXER $(lastword $(3))_DEMUXER)
|
||||
|
||||
# RAWVIDEO_ENCODER and PCM_S16LE_ENCODER corresponds to the default codecs
|
||||
# for framecrc. These requirements are not always necessary.
|
||||
TRANSCODE = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
|
||||
$(firstword $(2))_MUXER $(lastword $(2))_DEMUXER \
|
||||
$(3) FILE_PROTOCOL PIPE_PROTOCOL RAWVIDEO_ENCODER \
|
||||
PCM_S16LE_ENCODER FRAMECRC_MUXER)
|
||||
|
||||
REMUX = $(call ALLYES, $(firstword $(1))_MUXER $(lastword $(1))_DEMUXER \
|
||||
$(2) FILE_PROTOCOL PIPE_PROTOCOL FRAMECRC_MUXER)
|
||||
|
||||
DEMDEC = $(call ALLYES, $(1)_DEMUXER $(2:%=%_DECODER))
|
||||
ENCMUX = $(call ALLYES, $(1:%=%_ENCODER) $(2)_MUXER)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user