summaryrefslogtreecommitdiffstats
path: root/gst/colorspace/gstcolorspace.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
commit7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2 (patch)
treef863b467dea9559a6ec9c48affbfae11f8104164 /gst/colorspace/gstcolorspace.h
parenta19db4bbdc4a15ea0d8f4d28e9a1302c9c3d1657 (diff)
downloadgst-plugins-bad-7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2.tar.gz
gst-plugins-bad-7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2.tar.bz2
gst-plugins-bad-7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2.zip
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'gst/colorspace/gstcolorspace.h')
-rw-r--r--gst/colorspace/gstcolorspace.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/gst/colorspace/gstcolorspace.h b/gst/colorspace/gstcolorspace.h
index 22e2f7ec..f777b41b 100644
--- a/gst/colorspace/gstcolorspace.h
+++ b/gst/colorspace/gstcolorspace.h
@@ -23,7 +23,6 @@
#include <gst/gst.h>
G_BEGIN_DECLS
-
#define GST_TYPE_COLORSPACE \
(gst_colorspace_get_type())
#define GST_COLORSPACE(obj) \
@@ -34,11 +33,11 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_COLORSPACE))
#define GST_IS_COLORSPACE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_COLORSPACE))
-
typedef struct _GstColorspace GstColorspace;
typedef struct _GstColorspaceClass GstColorspaceClass;
-typedef enum {
+typedef enum
+{
GST_COLORSPACE_NONE,
GST_COLORSPACE_HERMES,
GST_COLORSPACE_YUV_RGB,
@@ -48,10 +47,11 @@ typedef enum {
GST_COLORSPACE_420_SWAP,
} GstColorSpaceConverterType;
-struct _GstColorspace {
+struct _GstColorspace
+{
GstElement element;
- GstPad *sinkpad,*srcpad;
+ GstPad *sinkpad, *srcpad;
int converter_index;
@@ -60,7 +60,7 @@ struct _GstColorspace {
int src_size;
int sink_size;
-
+
int src_stride;
int sink_stride;
@@ -68,18 +68,21 @@ struct _GstColorspace {
gdouble fps;
};
-struct _GstColorspaceClass {
+struct _GstColorspaceClass
+{
GstElementClass parent_class;
};
-GType gst_colorspace_get_type(void);
+GType gst_colorspace_get_type (void);
-typedef struct _GstColorspaceFormat {
+typedef struct _GstColorspaceFormat
+{
GstStaticCaps caps;
} GstColorspaceFormat;
-typedef enum {
+typedef enum
+{
GST_COLORSPACE_I420,
GST_COLORSPACE_YV12,
GST_COLORSPACE_RGB32,
@@ -87,13 +90,13 @@ typedef enum {
GST_COLORSPACE_RGB16,
} GstColorSpaceFormatType;
-typedef struct _GstColorspaceConverter {
+typedef struct _GstColorspaceConverter
+{
GstColorSpaceFormatType from;
GstColorSpaceFormatType to;
- void (*convert) (GstColorspace *colorspace, unsigned char *dest, unsigned char *src);
+ void (*convert) (GstColorspace * colorspace, unsigned char *dest,
+ unsigned char *src);
} GstColorspaceConverter;
G_END_DECLS
-
#endif
-