diff options
author | Johan Dahlin <johan@gnome.org> | 2004-03-15 16:32:54 +0000 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2004-03-15 16:32:54 +0000 |
commit | 39fd8a2dbd436cbabe5e336d1145b62c2a885ed5 (patch) | |
tree | 61df7da4a9d2b8bdb853af50a27219a8921bf5e4 /gst/colorspace | |
parent | 1633bd8693c54cbc5f6648703a7ecf01548ec55f (diff) | |
download | gst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.tar.gz gst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.tar.bz2 gst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.zip |
*.h: Revert indenting
Original commit message from CVS:
* *.h: Revert indenting
Diffstat (limited to 'gst/colorspace')
-rw-r--r-- | gst/colorspace/gstcolorspace.h | 31 | ||||
-rw-r--r-- | gst/colorspace/yuv2rgb.h | 33 |
2 files changed, 30 insertions, 34 deletions
diff --git a/gst/colorspace/gstcolorspace.h b/gst/colorspace/gstcolorspace.h index f777b41b..22e2f7ec 100644 --- a/gst/colorspace/gstcolorspace.h +++ b/gst/colorspace/gstcolorspace.h @@ -23,6 +23,7 @@ #include <gst/gst.h> G_BEGIN_DECLS + #define GST_TYPE_COLORSPACE \ (gst_colorspace_get_type()) #define GST_COLORSPACE(obj) \ @@ -33,11 +34,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, @@ -47,11 +48,10 @@ 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,21 +68,18 @@ 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, @@ -90,13 +87,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 + diff --git a/gst/colorspace/yuv2rgb.h b/gst/colorspace/yuv2rgb.h index ec987dfc..be173bca 100644 --- a/gst/colorspace/yuv2rgb.h +++ b/gst/colorspace/yuv2rgb.h @@ -26,11 +26,11 @@ #include <gstcolorspace.h> G_BEGIN_DECLS + #if 0 typedef struct _GstColorspaceYUVTables GstColorspaceYUVTables; -struct _GstColorspaceYUVTables -{ +struct _GstColorspaceYUVTables { int gammaCorrectFlag; double gammaCorrect; int chromaCorrectFlag; @@ -50,11 +50,9 @@ struct _GstColorspaceYUVTables typedef struct _GstColorspaceConverter GstColorspaceConverter; -typedef void (*GstColorspaceConvertFunction) (GstColorspaceConverter * space, - guchar * src, guchar * dest); +typedef void (*GstColorspaceConvertFunction) (GstColorspaceConverter *space, guchar *src, guchar *dest); -struct _GstColorspaceConverter -{ +struct _GstColorspaceConverter { guint width; guint height; guint insize; @@ -65,34 +63,35 @@ struct _GstColorspaceConverter }; #endif -void gst_colorspace_table_init (GstColorspace * space); +void gst_colorspace_table_init (GstColorspace *space); -void gst_colorspace_I420_to_rgb32 (GstColorspace * space, +void gst_colorspace_I420_to_rgb32(GstColorspace *space, unsigned char *src, unsigned char *dest); -void gst_colorspace_I420_to_rgb24 (GstColorspace * space, +void gst_colorspace_I420_to_rgb24(GstColorspace *space, unsigned char *src, unsigned char *dest); -void gst_colorspace_I420_to_rgb16 (GstColorspace * space, +void gst_colorspace_I420_to_rgb16(GstColorspace *space, unsigned char *src, unsigned char *dest); -void gst_colorspace_YV12_to_rgb32 (GstColorspace * space, +void gst_colorspace_YV12_to_rgb32(GstColorspace *space, unsigned char *src, unsigned char *dest); -void gst_colorspace_YV12_to_rgb24 (GstColorspace * space, +void gst_colorspace_YV12_to_rgb24(GstColorspace *space, unsigned char *src, unsigned char *dest); -void gst_colorspace_YV12_to_rgb16 (GstColorspace * space, +void gst_colorspace_YV12_to_rgb16(GstColorspace *space, unsigned char *src, unsigned char *dest); #if 0 -GstColorspaceYUVTables *gst_colorspace_init_yuv (long depth, +GstColorspaceYUVTables * gst_colorspace_init_yuv(long depth, long red_mask, long green_mask, long blue_mask); #endif #if 0 -GstColorspaceConverter *gst_colorspace_yuv2rgb_get_converter (const GstCaps * - from, const GstCaps * to); +GstColorspaceConverter* gst_colorspace_yuv2rgb_get_converter (const GstCaps *from, const GstCaps *to); #define gst_colorspace_convert(converter, src, dest) \ (converter)->convert((converter), (src), (dest)) -void gst_colorspace_converter_destroy (GstColorspaceConverter * space); +void gst_colorspace_converter_destroy (GstColorspaceConverter *space); #endif G_END_DECLS + #endif + |