docs: add some more audio macros
This commit is contained in:
parent
26fb72cf65
commit
e96ca66c36
@ -155,7 +155,15 @@ GST_AUDIO_INFO_LAYOUT
|
|||||||
|
|
||||||
GST_FRAMES_TO_CLOCK_TIME
|
GST_FRAMES_TO_CLOCK_TIME
|
||||||
GST_CLOCK_TIME_TO_FRAMES
|
GST_CLOCK_TIME_TO_FRAMES
|
||||||
|
GST_AUDIO_NE
|
||||||
|
GST_AUDIO_OE
|
||||||
|
GST_AUDIO_RATE_RANGE
|
||||||
|
GST_AUDIO_CHANNELS_RANGE
|
||||||
|
GST_AUDIO_FORMATS_ALL
|
||||||
|
GST_AUDIO_CAPS_MAKE
|
||||||
GST_AUDIO_DEF_RATE
|
GST_AUDIO_DEF_RATE
|
||||||
|
GST_AUDIO_DEF_CHANNELS
|
||||||
|
GST_AUDIO_DEF_FORMAT
|
||||||
gst_audio_buffer_clip
|
gst_audio_buffer_clip
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GST_TYPE_BUFFER_FORMAT
|
GST_TYPE_BUFFER_FORMAT
|
||||||
|
@ -273,9 +273,31 @@ const GstAudioFormatInfo *
|
|||||||
void gst_audio_format_fill_silence (const GstAudioFormatInfo *info,
|
void gst_audio_format_fill_silence (const GstAudioFormatInfo *info,
|
||||||
gpointer dest, gsize length);
|
gpointer dest, gsize length);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_AUDIO_RATE_RANGE:
|
||||||
|
*
|
||||||
|
* Maximum range of allowed sample rates, for use in template caps strings.
|
||||||
|
*/
|
||||||
#define GST_AUDIO_RATE_RANGE "(int) [ 1, max ]"
|
#define GST_AUDIO_RATE_RANGE "(int) [ 1, max ]"
|
||||||
|
/**
|
||||||
|
* GST_AUDIO_CHANNELS_RANGE:
|
||||||
|
*
|
||||||
|
* Maximum range of allowed channels, for use in template caps strings.
|
||||||
|
*/
|
||||||
#define GST_AUDIO_CHANNELS_RANGE "(int) [ 1, max ]"
|
#define GST_AUDIO_CHANNELS_RANGE "(int) [ 1, max ]"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_AUDIO_NE:
|
||||||
|
* @s: format string without endianness marker
|
||||||
|
*
|
||||||
|
* Turns audio format string @s into the format string for native endianness.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* GST_AUDIO_OE:
|
||||||
|
* @s: format string without endianness marker
|
||||||
|
*
|
||||||
|
* Turns audio format string @s into the format string for other endianness.
|
||||||
|
*/
|
||||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||||
# define GST_AUDIO_NE(s) G_STRINGIFY(s)"LE"
|
# define GST_AUDIO_NE(s) G_STRINGIFY(s)"LE"
|
||||||
# define GST_AUDIO_OE(s) G_STRINGIFY(s)"BE"
|
# define GST_AUDIO_OE(s) G_STRINGIFY(s)"BE"
|
||||||
@ -284,6 +306,11 @@ void gst_audio_format_fill_silence (const GstAudioFormatInfo *info
|
|||||||
# define GST_AUDIO_OE(s) G_STRINGIFY(s)"LE"
|
# define GST_AUDIO_OE(s) G_STRINGIFY(s)"LE"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_AUDIO_FORMATS_ALL:
|
||||||
|
*
|
||||||
|
* List of all audio formats, for use in template caps strings.
|
||||||
|
*/
|
||||||
#define GST_AUDIO_FORMATS_ALL " { S8, U8, " \
|
#define GST_AUDIO_FORMATS_ALL " { S8, U8, " \
|
||||||
"S16LE, S16BE, U16LE, U16BE, " \
|
"S16LE, S16BE, U16LE, U16BE, " \
|
||||||
"S24_32LE, S24_32BE, U24_32LE, U24_32BE, " \
|
"S24_32LE, S24_32BE, U24_32LE, U24_32BE, " \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user