Commit f20bede1 authored by Thomas Vander Stichele's avatar Thomas Vander Stichele Committed by Wim Taymans

[MOVED FROM BAD 06/68] gst-indent

Original commit message from CVS:
gst-indent
parent 243acdb0
This diff is collapsed.
......@@ -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
This diff is collapsed.
......@@ -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,9 +50,11 @@ 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;
......@@ -63,35 +65,34 @@ 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment