libgpac
Documentation of the core library of GPAC
color.c File Reference
#include <gpac/tools.h>
#include <gpac/constants.h>
#include <gpac/color.h>
+ Include dependency graph for color.c:

Data Structures

struct  predef_col
 

Macros

#define col_clip(a)   MAX(0, MIN(255, a))
 
#define SCALEBITS_OUT   13
 
#define FIX_OUT(x)   ((unsigned short) ((x) * (1L<<SCALEBITS_OUT) + 0.5))
 
#define CLIP_COMP(val)   { if (val<0) { val=0; } else if (val>FIX_ONE) { val=FIX_ONE;} }
 

Typedefs

typedef void(* copy_row_proto) (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
typedef void(* load_line_proto) (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 src_width, u32 src_height, u8 *dst_bits, Bool dst_yuv)
 

Functions

static GF_Err color_write_nv12_10_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yv12_10_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, const GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yuv422_10_to_yuv422 (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yuv422_10_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yuv444_10_to_yuv444 (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yuv444_10_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_up)
 
static GF_Err color_write_yuv420_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_uv)
 
static GF_Err color_write_yuv422_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_uv)
 
static GF_Err color_write_yuv444_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_uv)
 
static GF_Err color_write_yvyu_to_yuv (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd, Bool swap_uv)
 
static GF_Err color_write_rgb_to_24 (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd)
 
static GF_Err color_write_rgb_to_32 (GF_VideoSurface *vs_dst, GF_VideoSurface *vs_src, GF_Window *_src_wnd)
 
static GFINLINE u8 colmask (s32 a, s32 n)
 
static void yuv2rgb_init (void)
 
static void yuv_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv422_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv444_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv_10_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *_y_src, unsigned char *_u_src, unsigned char *_v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv422_10_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *_y_src, unsigned char *_u_src, unsigned char *_v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv444_10_load_lines_planar (unsigned char *dst, s32 dststride, unsigned char *_y_src, unsigned char *_u_src, unsigned char *_v_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static void yuv_load_lines_packed (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, s32 width, Bool dst_yuv)
 
static void yuva_load_lines (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, unsigned char *a_src, s32 y_stride, s32 uv_stride, s32 width, Bool dst_yuv)
 
static s32 mul255 (s32 a, s32 b)
 
static void copy_row_rgb_555 (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_rgb_565 (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_rgb_24 (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_bgr_24 (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_bgrx (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_argb (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_rgbx (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void copy_row_rgbd (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_rgb_555 (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_rgb_565 (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_rgb_24 (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_bgr_24 (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_bgrx (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_rgbx (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_bgra (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_argb (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void merge_row_rgba (u8 *src, u32 src_w, u8 *dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)
 
static void load_line_grey (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_alpha_grey (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_grey_alpha (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgb_555 (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgb_565 (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgb_24 (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_bgr_24 (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgb_32 (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_xrgb (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_bgrx (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgbd (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_rgbds (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_bgra (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_argb (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_yv12 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yuv422 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yuv444 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yv12_10 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yuv422_10 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yuv444_10 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, Bool dst_yuv)
 
static void load_line_yuva (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, u8 *pV, u8 *pA, Bool dst_yuv)
 
static void load_line_yuyv (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_uyvy (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_yvyu (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void load_line_vyuy (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, Bool dst_yuv)
 
static void gf_yuv_load_lines_nv12_nv21 (unsigned char *dst, s32 dststride, unsigned char *y_src, unsigned char *u_src, unsigned char *v_src, s32 y_stride, s32 width, Bool dst_yuv)
 
static void load_line_nv12 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, Bool dst_yuv)
 
static void load_line_nv21 (char *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 width, u32 height, u8 *dst_bits, u8 *pU, Bool dst_yuv)
 
static Bool format_is_yuv (u32 in_pf)
 
GF_EXPORT 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 *key, GF_ColorMatrix *cmat)
 stretches two video surfaces More...
 
GF_EXPORT void gf_cmx_init (GF_ColorMatrix *_this)
 
static void gf_cmx_identity (GF_ColorMatrix *_this)
 
GF_EXPORT void gf_cmx_set (GF_ColorMatrix *_this, Fixed c1, Fixed c2, Fixed c3, Fixed c4, Fixed c5, Fixed c6, Fixed c7, Fixed c8, Fixed c9, Fixed c10, Fixed c11, Fixed c12, Fixed c13, Fixed c14, Fixed c15, Fixed c16, Fixed c17, Fixed c18, Fixed c19, Fixed c20)
 
GF_EXPORT void gf_cmx_copy (GF_ColorMatrix *_this, GF_ColorMatrix *from)
 
GF_EXPORT void gf_cmx_multiply (GF_ColorMatrix *_this, GF_ColorMatrix *w)
 color matrix multiplication More...
 
GF_EXPORT void gf_cmx_apply_argb (GF_ColorMatrix *_this, u8 *a_, u8 *r_, u8 *g_, u8 *b_)
 color matrix transform More...
 
GF_EXPORT GF_Color gf_cmx_apply (GF_ColorMatrix *_this, GF_Color col)
 color matrix transform More...
 
GF_EXPORT u64 gf_cmx_apply_wide (GF_ColorMatrix *_this, u64 col)
 color matrix transform on wide pixel (16 bit per component) More...
 
GF_EXPORT void gf_cmx_apply_fixed (GF_ColorMatrix *_this, Fixed *a, Fixed *r, Fixed *g, Fixed *b)
 color components matrix transform More...
 
static Bool is_planar_yuv (u32 pf)
 
u32 get_bpp (u32 pf)
 
GF_EXPORT GF_Color gf_color_parse (const char *name)
 
GF_EXPORT const char * gf_color_get_name (GF_Color col)
 
GF_EXPORT Bool gf_color_enum (u32 *idx, GF_Color *col, const char **color_name)
 

Variables

static s32 RGB_Y [256]
 
static s32 B_U [256]
 
static s32 G_U [256]
 
static s32 G_V [256]
 
static s32 R_V [256]
 
static s32 yuv2rgb_is_init = 0
 
static const struct predef_col predefined_colors []
 

Data Structure Documentation

◆ predef_col

struct predef_col
Data Fields
const char * name
u8 r
u8 g
u8 b

Macro Definition Documentation

◆ col_clip

#define col_clip (   a)    MAX(0, MIN(255, a))

◆ SCALEBITS_OUT

#define SCALEBITS_OUT   13

◆ FIX_OUT

#define FIX_OUT (   x)    ((unsigned short) ((x) * (1L<<SCALEBITS_OUT) + 0.5))

◆ CLIP_COMP

#define CLIP_COMP (   val)    { if (val<0) { val=0; } else if (val>FIX_ONE) { val=FIX_ONE;} }

Typedef Documentation

◆ copy_row_proto

typedef void(* copy_row_proto) (u8 *src, u32 src_w, u8 *_dst, u32 dst_w, s32 h_inc, s32 x_pitch, u8 alpha, u32 dst_pitch, u32 dst_height)

◆ load_line_proto

typedef void(* load_line_proto) (u8 *src_bits, u32 x_offset, u32 y_offset, u32 y_pitch, u32 src_width, u32 src_height, u8 *dst_bits, Bool dst_yuv)

Function Documentation

◆ color_write_nv12_10_to_yuv()

static GF_Err color_write_nv12_10_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yv12_10_to_yuv()

static GF_Err color_write_yv12_10_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
const GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yuv422_10_to_yuv422()

static GF_Err color_write_yuv422_10_to_yuv422 ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yuv422_10_to_yuv()

static GF_Err color_write_yuv422_10_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yuv444_10_to_yuv444()

static GF_Err color_write_yuv444_10_to_yuv444 ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yuv444_10_to_yuv()

static GF_Err color_write_yuv444_10_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_up 
)
static
+ Here is the caller graph for this function:

◆ color_write_yuv420_to_yuv()

static GF_Err color_write_yuv420_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_uv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ color_write_yuv422_to_yuv()

static GF_Err color_write_yuv422_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_uv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ color_write_yuv444_to_yuv()

static GF_Err color_write_yuv444_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_uv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ color_write_yvyu_to_yuv()

static GF_Err color_write_yvyu_to_yuv ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd,
Bool  swap_uv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ color_write_rgb_to_24()

static GF_Err color_write_rgb_to_24 ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ color_write_rgb_to_32()

static GF_Err color_write_rgb_to_32 ( GF_VideoSurface vs_dst,
GF_VideoSurface vs_src,
GF_Window _src_wnd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ colmask()

static GFINLINE u8 colmask ( s32  a,
s32  n 
)
static
+ Here is the caller graph for this function:

◆ yuv2rgb_init()

static void yuv2rgb_init ( void  )
static
+ Here is the caller graph for this function:

◆ yuv_load_lines_planar()

static void yuv_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv422_load_lines_planar()

static void yuv422_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv444_load_lines_planar()

static void yuv444_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv_10_load_lines_planar()

static void yuv_10_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  _y_src,
unsigned char *  _u_src,
unsigned char *  _v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv422_10_load_lines_planar()

static void yuv422_10_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  _y_src,
unsigned char *  _u_src,
unsigned char *  _v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv444_10_load_lines_planar()

static void yuv444_10_load_lines_planar ( unsigned char *  dst,
s32  dststride,
unsigned char *  _y_src,
unsigned char *  _u_src,
unsigned char *  _v_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuv_load_lines_packed()

static void yuv_load_lines_packed ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ yuva_load_lines()

static void yuva_load_lines ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
unsigned char *  a_src,
s32  y_stride,
s32  uv_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mul255()

static s32 mul255 ( s32  a,
s32  b 
)
static
+ Here is the caller graph for this function:

◆ copy_row_rgb_555()

static void copy_row_rgb_555 ( u8 src,
u32  src_w,
u8 _dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_rgb_565()

static void copy_row_rgb_565 ( u8 src,
u32  src_w,
u8 _dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_rgb_24()

static void copy_row_rgb_24 ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_bgr_24()

static void copy_row_bgr_24 ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_bgrx()

static void copy_row_bgrx ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_argb()

static void copy_row_argb ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_rgbx()

static void copy_row_rgbx ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ copy_row_rgbd()

static void copy_row_rgbd ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the caller graph for this function:

◆ merge_row_rgb_555()

static void merge_row_rgb_555 ( u8 src,
u32  src_w,
u8 _dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_rgb_565()

static void merge_row_rgb_565 ( u8 src,
u32  src_w,
u8 _dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_rgb_24()

static void merge_row_rgb_24 ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_bgr_24()

static void merge_row_bgr_24 ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_bgrx()

static void merge_row_bgrx ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_rgbx()

static void merge_row_rgbx ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_bgra()

static void merge_row_bgra ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_argb()

static void merge_row_argb ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ merge_row_rgba()

static void merge_row_rgba ( u8 src,
u32  src_w,
u8 dst,
u32  dst_w,
s32  h_inc,
s32  x_pitch,
u8  alpha,
u32  dst_pitch,
u32  dst_height 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_grey()

static void load_line_grey ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_alpha_grey()

static void load_line_alpha_grey ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_grey_alpha()

static void load_line_grey_alpha ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_rgb_555()

static void load_line_rgb_555 ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_rgb_565()

static void load_line_rgb_565 ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_rgb_24()

static void load_line_rgb_24 ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_bgr_24()

static void load_line_bgr_24 ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_rgb_32()

static void load_line_rgb_32 ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_xrgb()

static void load_line_xrgb ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_bgrx()

static void load_line_bgrx ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_rgbd()

static void load_line_rgbd ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_rgbds()

static void load_line_rgbds ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_bgra()

static void load_line_bgra ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_argb()

static void load_line_argb ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_yv12()

static void load_line_yv12 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuv422()

static void load_line_yuv422 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuv444()

static void load_line_yuv444 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yv12_10()

static void load_line_yv12_10 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuv422_10()

static void load_line_yuv422_10 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuv444_10()

static void load_line_yuv444_10 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuva()

static void load_line_yuva ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
u8 pV,
u8 pA,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yuyv()

static void load_line_yuyv ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_uyvy()

static void load_line_uyvy ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_yvyu()

static void load_line_yvyu ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_vyuy()

static void load_line_vyuy ( u8 src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_yuv_load_lines_nv12_nv21()

static void gf_yuv_load_lines_nv12_nv21 ( unsigned char *  dst,
s32  dststride,
unsigned char *  y_src,
unsigned char *  u_src,
unsigned char *  v_src,
s32  y_stride,
s32  width,
Bool  dst_yuv 
)
static
+ Here is the caller graph for this function:

◆ load_line_nv12()

static void load_line_nv12 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_line_nv21()

static void load_line_nv21 ( char *  src_bits,
u32  x_offset,
u32  y_offset,
u32  y_pitch,
u32  width,
u32  height,
u8 dst_bits,
u8 pU,
Bool  dst_yuv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_is_yuv()

static Bool format_is_yuv ( u32  in_pf)
static
+ Here is the caller graph for this function:

◆ gf_cmx_identity()

static void gf_cmx_identity ( GF_ColorMatrix _this)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_planar_yuv()

static Bool is_planar_yuv ( u32  pf)
static
+ Here is the caller graph for this function:

◆ get_bpp()

u32 get_bpp ( u32  pf)
+ Here is the caller graph for this function:

Variable Documentation

◆ RGB_Y

s32 RGB_Y[256]
static

◆ B_U

s32 B_U[256]
static

◆ G_U

s32 G_U[256]
static

◆ G_V

s32 G_V[256]
static

◆ R_V

s32 R_V[256]
static

◆ yuv2rgb_is_init

s32 yuv2rgb_is_init = 0
static

◆ predefined_colors

const struct predef_col predefined_colors[]
static