From: Wim Taymans Date: Tue, 29 May 2012 07:54:43 +0000 (+0200) Subject: audio: add flags for the pack/unpack functions X-Git-Tag: 1.19.3~511^2~6425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c66da2c74bd19408cd77e827e991a7fd295db60e;p=platform%2Fupstream%2Fgstreamer.git audio: add flags for the pack/unpack functions Add a flag argument to the pack and unpack function so that we can expand it later when needed. We could for example prefer a High Quality pack/unpack operation later. --- diff --git a/gst-libs/gst/audio/audio.h b/gst-libs/gst/audio/audio.h index 8cd5af3..5e34eae 100644 --- a/gst-libs/gst/audio/audio.h +++ b/gst-libs/gst/audio/audio.h @@ -163,6 +163,17 @@ typedef enum } GstAudioFormatFlags; /** + * GstAudioPackFlags: + * @GST_AUDIO_PACK_FLAG_NONE: No flag + * + * The different flags that can be used when packing and unpacking. + */ +typedef enum +{ + GST_AUDIO_PACK_FLAG_NONE = 0 +} GstAudioPackFlags; + +/** * GstAudioFormatUnpack: * @info: a #GstAudioFormatInfo * @dest: a destination array @@ -174,7 +185,8 @@ typedef enum * interleaved. @dest should at least be big enough to hold @length * * channels * size(unpack_format) bytes. */ -typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info, gpointer dest, +typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info, + GstAudioPackFlags flags, gpointer dest, const gpointer data, gint length); /** * GstAudioFormatPack: @@ -187,7 +199,8 @@ typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info, gp * The samples from source have each channel interleaved * and will be packed into @data. */ -typedef void (*GstAudioFormatPack) (const GstAudioFormatInfo *info, const gpointer src, +typedef void (*GstAudioFormatPack) (const GstAudioFormatInfo *info, + GstAudioPackFlags flags, const gpointer src, gpointer data, gint length); /**