mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
2ba36a69bf
commit
c66da2c74b
1 changed files with 15 additions and 2 deletions
|
@ -162,6 +162,17 @@ typedef enum
|
||||||
GST_AUDIO_FORMAT_FLAG_COMPLEX = (1 << 4)
|
GST_AUDIO_FORMAT_FLAG_COMPLEX = (1 << 4)
|
||||||
} GstAudioFormatFlags;
|
} 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:
|
* GstAudioFormatUnpack:
|
||||||
* @info: a #GstAudioFormatInfo
|
* @info: a #GstAudioFormatInfo
|
||||||
|
@ -174,7 +185,8 @@ typedef enum
|
||||||
* interleaved. @dest should at least be big enough to hold @length *
|
* interleaved. @dest should at least be big enough to hold @length *
|
||||||
* channels * size(unpack_format) bytes.
|
* 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);
|
const gpointer data, gint length);
|
||||||
/**
|
/**
|
||||||
* GstAudioFormatPack:
|
* GstAudioFormatPack:
|
||||||
|
@ -187,7 +199,8 @@ typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info, gp
|
||||||
* The samples from source have each channel interleaved
|
* The samples from source have each channel interleaved
|
||||||
* and will be packed into @data.
|
* 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);
|
gpointer data, gint length);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue