mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
[MOVED FROM BAD 07/68] *.h: Revert indenting
Original commit message from CVS: * *.h: Revert indenting
This commit is contained in:
parent
f20bede182
commit
5c6a30bd77
2 changed files with 30 additions and 34 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue