diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-12 19:35:54 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-12 19:35:54 +0000 |
commit | b2e8f0ecfd4a35c62b3feb65d01ded8c25990a3e (patch) | |
tree | d5d50cf269b4b8288cb033ea98c55e73125597db /gst-libs/gst/audio/audio.h | |
parent | bb768f388edebc33621e87301dc186f860c83ea0 (diff) | |
download | gst-plugins-bad-b2e8f0ecfd4a35c62b3feb65d01ded8c25990a3e.tar.gz gst-plugins-bad-b2e8f0ecfd4a35c62b3feb65d01ded8c25990a3e.tar.bz2 gst-plugins-bad-b2e8f0ecfd4a35c62b3feb65d01ded8c25990a3e.zip |
adding structure setters matching the templates for audio
Original commit message from CVS:
adding structure setters matching the templates for audio
Diffstat (limited to 'gst-libs/gst/audio/audio.h')
-rw-r--r-- | gst-libs/gst/audio/audio.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 |