libgpac
Documentation of the core library of GPAC. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
color.h File Reference
#include <gpac/constants.h>
#include <gpac/maths.h>
#include <gpac/tools.h>
+ Include dependency graph for color.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_VideoSurface
 Video framebuffer object. More...
 
struct  GF_Window
 Video Window object. More...
 
struct  GF_ColorMatrix
 color matrix object More...
 
struct  GF_ColorKey
 Color Key descriptor. More...
 

Macros

#define GF_COL_ARGB(a, r, g, b)
 
#define GF_COL_ARGB_FIXED(_a, _r, _g, _b)
 
#define GF_COL_A(c)
 
#define GF_COL_R(c)
 
#define GF_COL_G(c)
 
#define GF_COL_B(c)
 
#define GF_COL_565(r, g, b)
 
#define GF_COL_555(r, g, b)
 
#define GF_COL_444(r, g, b)
 
#define GF_COL_AG(a, g)
 
#define GF_COL_TO_565(c)
 
#define GF_COL_TO_555(c)
 
#define GF_COL_TO_AG(c)
 
#define GF_COL_TO_444(c)
 

Typedefs

typedef u32 GF_Color
 ARGB color object. More...
 

Functions

GF_Color gf_color_parse (const char *name)
 
const char * gf_color_get_name (GF_Color col)
 
void gf_cmx_init (GF_ColorMatrix *_this)
 
void gf_cmx_set_all (GF_ColorMatrix *_this, Fixed *coefs)
 
void gf_cmx_set (GF_ColorMatrix *_this, Fixed mrr, Fixed mrg, Fixed mrb, Fixed mra, Fixed tr, Fixed mgr, Fixed mgg, Fixed mgb, Fixed mga, Fixed tg, Fixed mbr, Fixed mbg, Fixed mbb, Fixed mba, Fixed tb, Fixed mar, Fixed mag, Fixed mab, Fixed maa, Fixed ta)
 
void gf_cmx_copy (GF_ColorMatrix *_this, GF_ColorMatrix *from)
 
void gf_cmx_multiply (GF_ColorMatrix *_this, GF_ColorMatrix *with)
 color matrix multiplication More...
 
GF_Color gf_cmx_apply (GF_ColorMatrix *_this, GF_Color col)
 color matrix transform More...
 
void gf_cmx_apply_fixed (GF_ColorMatrix *_this, Fixed *a, Fixed *r, Fixed *g, Fixed *b)
 color components matrix transform More...
 
GF_Err gf_stretch_bits (GF_VideoSurface *dst, GF_VideoSurface *src, GF_Window *dst_wnd, GF_Window *src_wnd, u8 alpha, Bool flip, GF_ColorKey *colorKey, GF_ColorMatrix *cmat)
 stretches two video surfaces More...
 
GF_Err gf_color_write_yv12_10_to_yuv (GF_VideoSurface *vs_dst, unsigned char *pY, unsigned char *pU, unsigned char *pV, u32 src_stride, u32 src_width, u32 src_height, const GF_Window *src_wnd, Bool swap_uv)
 copies YUV 420 10 bits to YUV destination (only YUV420 8 bits supported) More...