mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-08 03:32:18 +00:00
tests: fix some more tests
This commit is contained in:
parent
408873a884
commit
41648135b2
3 changed files with 20 additions and 5 deletions
|
@ -38,18 +38,22 @@ GstPad *mysrcpad, *mysinkpad;
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"rate = (int) 44100, " \
|
"rate = (int) 44100, " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"format = (string) " GST_AUDIO_NE(S16)
|
"format = (string) " GST_AUDIO_NE(S16)
|
||||||
|
|
||||||
#define PANORAMA_STEREO_CAPS_STRING \
|
#define PANORAMA_STEREO_CAPS_STRING \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"channels = (int) 2, " \
|
"channels = (int) 2, " \
|
||||||
|
"channel-mask = (bitmask) 3, " \
|
||||||
"rate = (int) 44100, " \
|
"rate = (int) 44100, " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"format = (string) " GST_AUDIO_NE(S16)
|
"format = (string) " GST_AUDIO_NE(S16)
|
||||||
|
|
||||||
#define PANORAMA_WRONG_CAPS_STRING \
|
#define PANORAMA_WRONG_CAPS_STRING \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"channels = (int) 5, " \
|
"channels = (int) 5, " \
|
||||||
"rate = (int) 44100, " \
|
"rate = (int) 44100, " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"format = (string) " GST_AUDIO_NE(U16)
|
"format = (string) " GST_AUDIO_NE(U16)
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +63,8 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"channels = (int) 2, "
|
"channels = (int) 2, "
|
||||||
"rate = (int) [ 1, MAX ], "
|
"rate = (int) [ 1, MAX ], "
|
||||||
"format = (string) " GST_AUDIO_NE(S16))
|
"layout = (string) interleaved, "
|
||||||
|
"format = (string) " GST_AUDIO_NE (S16))
|
||||||
);
|
);
|
||||||
static GstStaticPadTemplate msrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate msrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -67,7 +72,8 @@ static GstStaticPadTemplate msrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"channels = (int) 1, "
|
"channels = (int) 1, "
|
||||||
"rate = (int) [ 1, MAX ], "
|
"rate = (int) [ 1, MAX ], "
|
||||||
"format = (string) " GST_AUDIO_NE(S16))
|
"layout = (string) interleaved, "
|
||||||
|
"format = (string) " GST_AUDIO_NE (S16))
|
||||||
);
|
);
|
||||||
static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -75,7 +81,8 @@ static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"channels = (int) 2, "
|
"channels = (int) 2, "
|
||||||
"rate = (int) [ 1, MAX ], "
|
"rate = (int) [ 1, MAX ], "
|
||||||
"format = (string) " GST_AUDIO_NE(S16))
|
"layout = (string) interleaved, "
|
||||||
|
"format = (string) " GST_AUDIO_NE (S16))
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
|
|
|
@ -35,12 +35,14 @@ GstPad *mysrcpad, *mysinkpad;
|
||||||
#define AUDIO_WSINC_BAND_CAPS_STRING_32 \
|
#define AUDIO_WSINC_BAND_CAPS_STRING_32 \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"format = (string) " GST_AUDIO_NE (F32) ", " \
|
"format = (string) " GST_AUDIO_NE (F32) ", " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"rate = (int) 44100"
|
"rate = (int) 44100"
|
||||||
|
|
||||||
#define AUDIO_WSINC_BAND_CAPS_STRING_64 \
|
#define AUDIO_WSINC_BAND_CAPS_STRING_64 \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"format = (string) " GST_AUDIO_NE (F64) ", " \
|
"format = (string) " GST_AUDIO_NE (F64) ", " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"rate = (int) 44100"
|
"rate = (int) 44100"
|
||||||
|
|
||||||
|
@ -51,6 +53,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"format = (string) " FORMATS ", "
|
"format = (string) " FORMATS ", "
|
||||||
|
"layout = (string) interleaved, "
|
||||||
"channels = (int) 1, " "rate = (int) 44100")
|
"channels = (int) 1, " "rate = (int) 44100")
|
||||||
);
|
);
|
||||||
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
@ -58,6 +61,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"format = (string) " FORMATS ", "
|
"format = (string) " FORMATS ", "
|
||||||
|
"layout = (string) interleaved, "
|
||||||
"channels = (int) 1, " "rate = (int) 44100")
|
"channels = (int) 1, " "rate = (int) 44100")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -35,12 +35,14 @@ GstPad *mysrcpad, *mysinkpad;
|
||||||
#define AUDIO_WSINC_LIMIT_CAPS_STRING_32 \
|
#define AUDIO_WSINC_LIMIT_CAPS_STRING_32 \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"format = (string) " GST_AUDIO_NE (F32) ", " \
|
"format = (string) " GST_AUDIO_NE (F32) ", " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"rate = (int) 44100"
|
"rate = (int) 44100"
|
||||||
|
|
||||||
#define AUDIO_WSINC_LIMIT_CAPS_STRING_64 \
|
#define AUDIO_WSINC_LIMIT_CAPS_STRING_64 \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
"format = (string) " GST_AUDIO_NE (F64) ", " \
|
"format = (string) " GST_AUDIO_NE (F64) ", " \
|
||||||
|
"layout = (string) interleaved, " \
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"rate = (int) 44100"
|
"rate = (int) 44100"
|
||||||
|
|
||||||
|
@ -50,14 +52,16 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"channels = (string) " FORMATS ", "
|
"format = (string) " FORMATS ", "
|
||||||
|
"layout = (string) interleaved, "
|
||||||
"channels = (int) 1, " "rate = (int) 44100")
|
"channels = (int) 1, " "rate = (int) 44100")
|
||||||
);
|
);
|
||||||
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"channels = (string) " FORMATS ", "
|
"format = (string) " FORMATS ", "
|
||||||
|
"layout = (string) interleaved, "
|
||||||
"channels = (int) 1, " "rate = (int) 44100")
|
"channels = (int) 1, " "rate = (int) 44100")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue