mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst: Add new layout field to all raw audio caps
This commit is contained in:
parent
75f91ebea0
commit
8cd8965e19
3 changed files with 12 additions and 6 deletions
|
@ -76,10 +76,12 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
|||
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
#define CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32LE, U32LE, S16LE, U16LE, S8, U8, F32LE, F64LE }")
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32LE, U32LE, S16LE, U16LE, S8, U8, F32LE, F64LE }") \
|
||||
", layout = (string) { interleaved, non-interleaved }"
|
||||
#else
|
||||
#define CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32BE, U32BE, S16BE, U16BE, S8, U8, F32BE, F64BE }")
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32BE, U32BE, S16BE, U16BE, S8, U8, F32BE, F64BE }") \
|
||||
", layout = (string) { interleaved, non-interleaved }"
|
||||
#endif
|
||||
|
||||
static GstStaticPadTemplate gst_adder_src_template =
|
||||
|
|
|
@ -96,14 +96,16 @@ static GstStaticPadTemplate gst_audio_rate_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL))
|
||||
GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL)
|
||||
", layout = (string) { interleaved, non-interleaved }")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_audio_rate_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL))
|
||||
GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL)
|
||||
", layout = (string) { interleaved, non-interleaved }")
|
||||
);
|
||||
|
||||
static gboolean gst_audio_rate_sink_event (GstPad * pad, GstObject * parent,
|
||||
|
|
|
@ -104,10 +104,12 @@ enum
|
|||
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
#define ALLOWED_CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ F32LE, F64LE, S8, S16LE, S24LE, S32LE }")
|
||||
GST_AUDIO_CAPS_MAKE ("{ F32LE, F64LE, S8, S16LE, S24LE, S32LE }") \
|
||||
", layout = (string) interleaved"
|
||||
#else
|
||||
#define ALLOWED_CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ F32BE, F64BE, S8, S16BE, S24BE, S32BE }")
|
||||
GST_AUDIO_CAPS_MAKE ("{ F32BE, F64BE, S8, S16BE, S24BE, S32BE }") \
|
||||
", layout = (string) { interleaved, non-interleaved }"
|
||||
#endif
|
||||
|
||||
static void gst_volume_mixer_init (GstMixerInterface * iface);
|
||||
|
|
Loading…
Reference in a new issue