GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
stencil.c File Reference
#include "rast_soft.h"
+ Include dependency graph for stencil.c:

Macros

#define EVGGRADIENTBUFFERSIZE   (1<<EVGGRADIENTBITS)
 
#define EVGGRADIENTMAXINTPOS   EVGGRADIENTBUFFERSIZE - 1
 
#define USE_BILINEAR   0
 

Functions

EVGStencilevg_solid_brush ()
 
EVGStencilevg_texture_brush ()
 
EVGStencilevg_linear_gradient_brush ()
 
EVGStencilevg_radial_gradient_brush ()
 
GF_Color color_interpolate (u32 a, u32 b, u8 pos)
 
static void gradient_update (EVG_BaseGradient *_this)
 
static u32 gradient_get_color (EVG_BaseGradient *_this, s32 pos)
 
GF_Err evg_stencil_set_gradient_interpolation (GF_STENCIL p, Fixed *pos, GF_Color *col, u32 count)
 
GF_Err evg_stencil_set_gradient_mode (GF_STENCIL p, GF_GradientMode mode)
 
GF_STENCIL evg_stencil_new (GF_Raster2D *_dr, GF_StencilType type)
 
void evg_stencil_delete (GF_STENCIL st)
 
GF_Err evg_stencil_set_matrix (GF_STENCIL st, GF_Matrix2D *mx)
 
GF_Err evg_stencil_set_brush_color (GF_STENCIL st, GF_Color c)
 
static void lgb_fill_run (EVGStencil *p, EVGSurface *surf, s32 x, s32 y, u32 count)
 
GF_Err evg_stencil_set_linear_gradient (GF_STENCIL st, Fixed start_x, Fixed start_y, Fixed end_x, Fixed end_y)
 
static void rg_fill_run (EVGStencil *p, EVGSurface *surf, s32 _x, s32 _y, u32 count)
 
void evg_radial_init (EVG_RadialGradient *_this)
 
GF_Err evg_stencil_set_radial_gradient (GF_STENCIL st, Fixed cx, Fixed cy, Fixed fx, Fixed fy, Fixed x_radius, Fixed y_radius)
 
static void bmp_untransform_coord (EVG_Texture *_this, s32 _x, s32 _y, Fixed *outx, Fixed *outy)
 
static void bmp_fill_run (EVGStencil *p, EVGSurface *surf, s32 _x, s32 _y, u32 count)
 
static void bmp_fill_run_straight (EVGStencil *p, EVGSurface *surf, s32 _x, s32 _y, u32 count)
 
void evg_bmp_init (EVGStencil *p)
 
u32 get_pix_argb (char *pix)
 
u32 get_pix_rgba (char *pix)
 
u32 get_pix_rgb_32 (char *pix)
 
u32 get_pix_rgb_24 (char *pix)
 
u32 get_pix_bgr_24 (char *pix)
 
u32 get_pix_444 (char *pix)
 
u32 get_pix_555 (char *pix)
 
u32 get_pix_565 (char *pix)
 
u32 get_pix_grey (char *pix)
 
u32 get_pix_alphagrey (char *pix)
 
static void texture_set_callback (EVG_Texture *_this)
 
GF_Err evg_stencil_set_texture (GF_STENCIL st, char *pixels, u32 width, u32 height, u32 stride, GF_PixelFormat pixelFormat, GF_PixelFormat destination_format_hint, Bool no_copy)
 
GF_Err evg_stencil_set_tiling (GF_STENCIL st, GF_TextureTiling mode)
 
GF_Err evg_stencil_set_filter (GF_STENCIL st, GF_TextureFilter filter_mode)
 
GF_Err evg_stencil_set_color_matrix (GF_STENCIL st, GF_ColorMatrix *cmat)
 
GF_Err evg_stencil_set_alpha (GF_STENCIL st, u8 alpha)
 
void evg_set_texture_active (EVGStencil *st)
 
GF_Err evg_stencil_create_texture (GF_STENCIL st, u32 width, u32 height, GF_PixelFormat pixelFormat)
 

Macro Definition Documentation

#define EVGGRADIENTBUFFERSIZE   (1<<EVGGRADIENTBITS)
#define EVGGRADIENTMAXINTPOS   EVGGRADIENTBUFFERSIZE - 1
#define USE_BILINEAR   0

Function Documentation

EVGStencil * evg_solid_brush ( )

+ Here is the caller graph for this function:

EVGStencil * evg_texture_brush ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EVGStencil * evg_linear_gradient_brush ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EVGStencil * evg_radial_gradient_brush ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Color color_interpolate ( u32  a,
u32  b,
u8  pos 
)

+ Here is the caller graph for this function:

static void gradient_update ( EVG_BaseGradient _this)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 gradient_get_color ( EVG_BaseGradient _this,
s32  pos 
)
static

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_gradient_interpolation ( GF_STENCIL  p,
Fixed pos,
GF_Color col,
u32  count 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_gradient_mode ( GF_STENCIL  p,
GF_GradientMode  mode 
)

+ Here is the caller graph for this function:

GF_STENCIL evg_stencil_new ( GF_Raster2D _dr,
GF_StencilType  type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void evg_stencil_delete ( GF_STENCIL  st)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_matrix ( GF_STENCIL  st,
GF_Matrix2D mx 
)

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_brush_color ( GF_STENCIL  st,
GF_Color  c 
)

+ Here is the caller graph for this function:

static void lgb_fill_run ( EVGStencil p,
EVGSurface *  surf,
s32  x,
s32  y,
u32  count 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_linear_gradient ( GF_STENCIL  st,
Fixed  start_x,
Fixed  start_y,
Fixed  end_x,
Fixed  end_y 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void rg_fill_run ( EVGStencil p,
EVGSurface *  surf,
s32  _x,
s32  _y,
u32  count 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void evg_radial_init ( EVG_RadialGradient _this)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_radial_gradient ( GF_STENCIL  st,
Fixed  cx,
Fixed  cy,
Fixed  fx,
Fixed  fy,
Fixed  x_radius,
Fixed  y_radius 
)

+ Here is the caller graph for this function:

static void bmp_untransform_coord ( EVG_Texture _this,
s32  _x,
s32  _y,
Fixed outx,
Fixed outy 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void bmp_fill_run ( EVGStencil p,
EVGSurface *  surf,
s32  _x,
s32  _y,
u32  count 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void bmp_fill_run_straight ( EVGStencil p,
EVGSurface *  surf,
s32  _x,
s32  _y,
u32  count 
)
static

+ Here is the caller graph for this function:

void evg_bmp_init ( EVGStencil p)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 get_pix_argb ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_rgba ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_rgb_32 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_rgb_24 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_bgr_24 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_444 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_555 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_565 ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_grey ( char *  pix)

+ Here is the caller graph for this function:

u32 get_pix_alphagrey ( char *  pix)

+ Here is the caller graph for this function:

static void texture_set_callback ( EVG_Texture _this)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_texture ( GF_STENCIL  st,
char *  pixels,
u32  width,
u32  height,
u32  stride,
GF_PixelFormat  pixelFormat,
GF_PixelFormat  destination_format_hint,
Bool  no_copy 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_tiling ( GF_STENCIL  st,
GF_TextureTiling  mode 
)

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_filter ( GF_STENCIL  st,
GF_TextureFilter  filter_mode 
)

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_color_matrix ( GF_STENCIL  st,
GF_ColorMatrix cmat 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_set_alpha ( GF_STENCIL  st,
u8  alpha 
)

+ Here is the caller graph for this function:

void evg_set_texture_active ( EVGStencil st)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err evg_stencil_create_texture ( GF_STENCIL  st,
u32  width,
u32  height,
GF_PixelFormat  pixelFormat 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: