libgpac
Documentation of the core library of GPAC
color.h File Reference

Color conversion. More...

#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_COLW_A(c)
 
#define GF_COLW_R(c)
 
#define GF_COLW_G(c)
 
#define GF_COLW_B(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)
 
Bool gf_color_enum (u32 *idx, GF_Color *color, const char **color_name)
 
void gf_cmx_init (GF_ColorMatrix *_this)
 
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_argb (GF_ColorMatrix *_this, u8 *a, u8 *r, u8 *g, u8 *b)
 color matrix transform More...
 
u64 gf_cmx_apply_wide (GF_ColorMatrix *_this, u64 col)
 color matrix transform on wide pixel (16 bit per component) 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...
 

Detailed Description

>