From b2e8f0ecfd4a35c62b3feb65d01ded8c25990a3e Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 12 Jan 2004 19:35:54 +0000 Subject: adding structure setters matching the templates for audio Original commit message from CVS: adding structure setters matching the templates for audio --- gst-libs/gst/audio/audio.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gst-libs/gst/audio/audio.h') diff --git a/gst-libs/gst/audio/audio.h b/gst-libs/gst/audio/audio.h index 73a4043f..1b761026 100644 --- a/gst-libs/gst/audio/audio.h +++ b/gst-libs/gst/audio/audio.h @@ -111,5 +111,18 @@ long gst_audio_highest_sample_value (GstPad* pad); /* check if the buffer size is a whole multiple of the frame size */ gboolean gst_audio_is_buffer_framed (GstPad* pad, GstBuffer* buf); +/* functions useful for _getcaps functions */ +typedef enum { + GST_AUDIO_FIELD_RATE = (1 << 0), + GST_AUDIO_FIELD_CHANNELS = (1 << 1), + GST_AUDIO_FIELD_ENDIANNESS = (1 << 2), + GST_AUDIO_FIELD_WIDTH = (1 << 3), + GST_AUDIO_FIELD_DEPTH = (1 << 4), + GST_AUDIO_FIELD_SIGNED = (1 << 5), + GST_AUDIO_FIELD_BUFFER_FRAMES = (1 << 6) +} GstAudioFieldFlag; + +void gst_audio_structure_set_int (GstStructure *structure, GstAudioFieldFlag flag); + G_END_DECLS -- cgit v1.2.1