gstcolorspace

Name

gstcolorspace -- 

Synopsis


#include <libs/colorspace/gstcolorspace.h>


enum        GstColorSpaceType;
struct      GstColorSpaceConverter;
void        (*GstColorSpaceConvertFunction) (GstColorSpaceConverter *space,
                                             guchar *src,
                                             guchar *dest);
#define     GST_COLORSPACE_RGB_FIRST
#define     GST_COLORSPACE_YUV_FIRST
#define     GST_COLORSPACE_YUV_LAST
#define     GST_COLORSPACE_RGB_LAST
#define     GST_COLORSPACE_IS_YUV_TYPE      (type)
#define     GST_COLORSPACE_IS_RGB_TYPE      (type)
GstColorSpaceConverter* gst_colorspace_converter_new
                                            (gint width,
                                             gint height,
                                             GstColorSpaceType srcspace,
                                             GstColorSpaceType destspace,
                                             GdkVisual *destvisual);
#define     gst_colorspace_convert          (converter, src, dest)
void        gst_colorspace_destroy          (GstColorSpaceConverter *space);

Description

Details

enum GstColorSpaceType

typedef enum {
  GST_COLORSPACE_RGB555,
  GST_COLORSPACE_BGR555,
  GST_COLORSPACE_RGB565,
  GST_COLORSPACE_BGR565,
  GST_COLORSPACE_RGB24,                 
  GST_COLORSPACE_BGR24,               
  GST_COLORSPACE_RGB32,
  GST_COLORSPACE_BGR32,

  GST_COLORSPACE_YUV420,              
  GST_COLORSPACE_YUV420P,           
  GST_COLORSPACE_YUV422,
  GST_COLORSPACE_YUV422P

} GstColorSpaceType;


struct GstColorSpaceConverter

struct GstColorSpaceConverter {
  guint width;
  guint height;
  GstColorSpaceType srcspace;
  GstColorSpaceType destspace;
  GdkVisual *visual;
  guint insize;
  guint outsize;
  /* private */
  GstColorSpaceYUVTables *color_tables;
  GstColorSpaceConvertFunction convert;
};


GstColorSpaceConvertFunction ()

void        (*GstColorSpaceConvertFunction) (GstColorSpaceConverter *space,
                                             guchar *src,
                                             guchar *dest);

space : 
src : 
dest : 


GST_COLORSPACE_RGB_FIRST

#define GST_COLORSPACE_RGB_FIRST GST_COLORSPACE_RGB555


GST_COLORSPACE_YUV_FIRST

#define GST_COLORSPACE_YUV_FIRST GST_COLORSPACE_YUV420


GST_COLORSPACE_YUV_LAST

#define GST_COLORSPACE_YUV_LAST GST_COLORSPACE_YUV422P


GST_COLORSPACE_RGB_LAST

#define GST_COLORSPACE_RGB_LAST GST_COLORSPACE_BGR32


GST_COLORSPACE_IS_YUV_TYPE()

#define     GST_COLORSPACE_IS_YUV_TYPE(type)

type : 


GST_COLORSPACE_IS_RGB_TYPE()

#define     GST_COLORSPACE_IS_RGB_TYPE(type)

type : 


gst_colorspace_converter_new ()

GstColorSpaceConverter* gst_colorspace_converter_new
                                            (gint width,
                                             gint height,
                                             GstColorSpaceType srcspace,
                                             GstColorSpaceType destspace,
                                             GdkVisual *destvisual);

width : 
height : 
srcspace : 
destspace : 
destvisual : 
Returns : 


gst_colorspace_convert()

#define     gst_colorspace_convert(converter, src, dest)

converter : 
src : 
dest : 


gst_colorspace_destroy ()

void        gst_colorspace_destroy          (GstColorSpaceConverter *space);

space :