[MOVED FROM BAD 07/68] *.h: Revert indenting

Original commit message from CVS:
* *.h: Revert indenting
This commit is contained in:
Johan Dahlin 2004-03-15 16:32:54 +00:00 committed by Wim Taymans
parent f20bede182
commit 5c6a30bd77
2 changed files with 30 additions and 34 deletions

View file

@ -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,8 +48,7 @@ typedef enum
GST_COLORSPACE_420_SWAP,
} GstColorSpaceConverterType;
struct _GstColorspace
{
struct _GstColorspace {
GstElement element;
GstPad *sinkpad,*srcpad;
@ -68,21 +68,18 @@ struct _GstColorspace
gdouble fps;
};
struct _GstColorspaceClass
{
struct _GstColorspaceClass {
GstElementClass parent_class;
};
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

View file

@ -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;
@ -87,12 +85,13 @@ GstColorspaceYUVTables *gst_colorspace_init_yuv (long depth,
#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);
#endif
G_END_DECLS
#endif