summaryrefslogtreecommitdiffstats
path: root/gst/avi/gstavidemux.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
commit5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 (patch)
tree74a5b1eaf3a324b520e64e87404fd0b3018a7829 /gst/avi/gstavidemux.h
parent1e83b097f7b732ae49e294a5a398bdc3e88854a8 (diff)
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'gst/avi/gstavidemux.h')
-rw-r--r--gst/avi/gstavidemux.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/gst/avi/gstavidemux.h b/gst/avi/gstavidemux.h
index d94433ae..9849bdaf 100644
--- a/gst/avi/gstavidemux.h
+++ b/gst/avi/gstavidemux.h
@@ -26,7 +26,6 @@
#include "gst/riff/riff-read.h"
G_BEGIN_DECLS
-
#define GST_TYPE_AVI_DEMUX \
(gst_avi_demux_get_type ())
#define GST_AVI_DEMUX(obj) \
@@ -37,93 +36,94 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_AVI_DEMUX))
#define GST_IS_AVI_DEMUX_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_AVI_DEMUX))
-
-#define GST_AVI_DEMUX_MAX_STREAMS 16
-
+#define GST_AVI_DEMUX_MAX_STREAMS 16
#define CHUNKID_TO_STREAMNR(chunkid) \
((((chunkid) & 0xff) - '0') * 10 + \
(((chunkid) >> 8) & 0xff) - '0')
-
-typedef struct {
- gint index_nr;
- gint stream_nr;
- guint64 ts;
- guint32 flags;
- guint32 offset;
- gint size;
- guint64 bytes_before;
- guint32 frames_before;
+ typedef struct
+{
+ gint index_nr;
+ gint stream_nr;
+ guint64 ts;
+ guint32 flags;
+ guint32 offset;
+ gint size;
+ guint64 bytes_before;
+ guint32 frames_before;
} gst_avi_index_entry;
-typedef struct {
+typedef struct
+{
/* index of this streamcontext */
- guint num;
+ guint num;
/* pad, strh */
- GstPad *pad;
- GstCaps *caps;
- gst_riff_strh *strh;
+ GstPad *pad;
+ GstCaps *caps;
+ gst_riff_strh *strh;
/* current position (byte, frame, time) */
- guint current_frame;
- guint64 current_byte;
- gint current_entry;
+ guint current_frame;
+ guint64 current_byte;
+ gint current_entry;
/* delay in time (init_frames) */
- guint64 delay;
+ guint64 delay;
/* stream length */
- guint64 total_bytes;
- guint32 total_frames;
+ guint64 total_bytes;
+ guint32 total_frames;
- guint32 skip;
+ guint32 skip;
} avi_stream_context;
-typedef enum {
+typedef enum
+{
GST_AVI_DEMUX_START,
GST_AVI_DEMUX_HEADER,
GST_AVI_DEMUX_MOVI,
} GstAviDemuxState;
-typedef struct _GstAviDemux {
- GstRiffRead parent;
+typedef struct _GstAviDemux
+{
+ GstRiffRead parent;
/* pads */
- GstPad *sinkpad;
+ GstPad *sinkpad;
/* AVI decoding state */
GstAviDemuxState state;
- guint level_up;
+ guint level_up;
/* index */
gst_avi_index_entry *index_entries;
- guint index_size;
- guint64 index_offset;
+ guint index_size;
+ guint64 index_offset;
/* streams */
- guint num_streams;
- guint num_v_streams;
- guint num_a_streams;
+ guint num_streams;
+ guint num_v_streams;
+ guint num_a_streams;
avi_stream_context stream[GST_AVI_DEMUX_MAX_STREAMS];
/* some stream info for length */
- guint32 us_per_frame;
- guint32 num_frames;
+ guint32 us_per_frame;
+ guint32 num_frames;
/* seeking */
- guint64 seek_offset;
- guint64 last_seek;
+ guint64 seek_offset;
+ guint64 last_seek;
/* info */
- GstCaps *streaminfo;
+ GstCaps *streaminfo;
} GstAviDemux;
-typedef struct _GstAviDemuxClass {
+typedef struct _GstAviDemuxClass
+{
GstRiffReadClass parent_class;
} GstAviDemuxClass;
-GType gst_avi_demux_get_type (void);
+GType gst_avi_demux_get_type (void);
G_END_DECLS
-
#endif /* __GST_AVI_DEMUX_H__ */