diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-04-17 09:23:20 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-04-17 09:26:40 +0100 |
commit | e96ca66c36f86cf6edd5723fa2f69d8aa222466d (patch) | |
tree | b66091521a6a61ee3831fefafafb980f408fcdca | |
parent | 26fb72cf6577494fed4c00ecba2ad4d746d0caf5 (diff) |
docs: add some more audio macros
-rw-r--r-- | docs/libs/gst-plugins-base-libs-sections.txt | 8 | ||||
-rw-r--r-- | gst-libs/gst/audio/audio-format.h | 27 |
2 files changed, 35 insertions, 0 deletions
diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index 6e9a24693..a962e5868 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -155,7 +155,15 @@ GST_AUDIO_INFO_LAYOUT GST_FRAMES_TO_CLOCK_TIME 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_CHANNELS +GST_AUDIO_DEF_FORMAT gst_audio_buffer_clip <SUBSECTION Standard> GST_TYPE_BUFFER_FORMAT diff --git a/gst-libs/gst/audio/audio-format.h b/gst-libs/gst/audio/audio-format.h index 0dfb5abea..dbe6dedc0 100644 --- a/gst-libs/gst/audio/audio-format.h +++ b/gst-libs/gst/audio/audio-format.h @@ -273,9 +273,31 @@ const GstAudioFormatInfo * void gst_audio_format_fill_silence (const GstAudioFormatInfo *info, 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 ]" +/** + * GST_AUDIO_CHANNELS_RANGE: + * + * Maximum range of allowed channels, for use in template caps strings. + */ #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 # define GST_AUDIO_NE(s) G_STRINGIFY(s)"LE" # 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" #endif +/** + * GST_AUDIO_FORMATS_ALL: + * + * List of all audio formats, for use in template caps strings. + */ #define GST_AUDIO_FORMATS_ALL " { S8, U8, " \ "S16LE, S16BE, U16LE, U16BE, " \ "S24_32LE, S24_32BE, U24_32LE, U24_32BE, " \ |