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
compositor_2d.c File Reference
#include "visual_manager.h"
#include "nodes_stacks.h"
#include <gpac/options.h>
#include "gl_inc.h"
#include "texturing.h"
+ Include dependency graph for compositor_2d.c:

Macros

#define ROUND_FIX(_v)
 
#define CEILING(_v)
 

Functions

static void c2d_gl_fill_no_alpha (void *cbk, u32 x, u32 y, u32 run_h_len, GF_Color color)
 
static void c2d_gl_fill_alpha (void *cbk, u32 x, u32 y, u32 run_h_len, GF_Color color, u8 alpha)
 
static void c2d_gl_fill_rect (void *cbk, u32 x, u32 y, u32 width, u32 height, GF_Color color)
 
Bool c2d_gl_draw_bitmap (GF_VisualManager *visual, GF_TraverseState *tr_state, DrawableContext *ctx, GF_ColorKey *col_key)
 
GF_Err compositor_2d_get_video_access (GF_VisualManager *visual)
 
void compositor_2d_release_video_access (GF_VisualManager *visual)
 
static void log_blit_times (GF_TextureHandler *txh, u32 push_time)
 
Bool compositor_texture_rectangles (GF_VisualManager *visual, GF_TextureHandler *txh, GF_IRect *clip, GF_Rect *unclip, GF_Window *src, GF_Window *dst, Bool *disable_blit, Bool *has_scale)
 
static Bool compositor_2d_draw_bitmap_ex (GF_VisualManager *visual, GF_TextureHandler *txh, DrawableContext *ctx, GF_IRect *clip, GF_Rect *unclip, u8 alpha, GF_ColorKey *col_key, GF_TraverseState *tr_state, Bool force_soft_blt)
 
Bool compositor_2d_draw_bitmap (GF_VisualManager *visual, GF_TraverseState *tr_state, DrawableContext *ctx, GF_ColorKey *col_key)
 
GF_Err compositor_2d_set_aspect_ratio (GF_Compositor *compositor)
 
void compositor_send_resize_event (GF_Compositor *compositor, GF_SceneGraph *subscene, Fixed old_z, Fixed old_tx, Fixed old_ty, Bool is_resize)
 
void compositor_2d_set_user_transform (GF_Compositor *compositor, Fixed zoom, Fixed tx, Fixed ty, Bool is_resize)
 
GF_Rect compositor_2d_update_clipper (GF_TraverseState *tr_state, GF_Rect this_clip, Bool *need_restore, GF_Rect *original, Bool for_layer)
 
Bool visual_2d_overlaps_overlay (GF_VisualManager *visual, DrawableContext *ctx, GF_TraverseState *tr_state)
 
void visual_2d_flush_overlay_areas (GF_VisualManager *visual, GF_TraverseState *tr_state)
 
void visual_2d_draw_overlays (GF_VisualManager *visual)
 
void compositor_2d_init_callbacks (GF_Compositor *compositor)
 

Macro Definition Documentation

#define ROUND_FIX (   _v)
Value:
_v = FIX2INT(tmp); \
tmp -= INT2FIX(_v); \
if (tmp>99*FIX_ONE/100) { _v++; tmp = 0; } \
if (ABS(tmp) > FIX_EPSILON) use_blit = 0;
#define FIX_EPSILON
#define FIX_ONE
#define ABS(a)
Definition: setup.h:311
#define INT2FIX(v)
#define FIX2INT(v)
#define CEILING (   _v)
Value:
_v = FIX2INT(tmp); \
tmp -= INT2FIX(_v); \
if (tmp>0) { _v++; tmp = 0; } \
if (ABS(tmp) > FIX_EPSILON) use_blit = 0;
#define FIX_EPSILON
#define ABS(a)
Definition: setup.h:311
#define INT2FIX(v)
#define FIX2INT(v)

Function Documentation

static void c2d_gl_fill_no_alpha ( void *  cbk,
u32  x,
u32  y,
u32  run_h_len,
GF_Color  color 
)
static

+ Here is the caller graph for this function:

static void c2d_gl_fill_alpha ( void *  cbk,
u32  x,
u32  y,
u32  run_h_len,
GF_Color  color,
u8  alpha 
)
static

+ Here is the caller graph for this function:

static void c2d_gl_fill_rect ( void *  cbk,
u32  x,
u32  y,
u32  width,
u32  height,
GF_Color  color 
)
static

+ Here is the caller graph for this function:

Bool c2d_gl_draw_bitmap ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state,
DrawableContext *  ctx,
GF_ColorKey col_key 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err compositor_2d_get_video_access ( GF_VisualManager *  visual)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void compositor_2d_release_video_access ( GF_VisualManager *  visual)

+ Here is the caller graph for this function:

static void log_blit_times ( GF_TextureHandler txh,
u32  push_time 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool compositor_texture_rectangles ( GF_VisualManager *  visual,
GF_TextureHandler txh,
GF_IRect clip,
GF_Rect unclip,
GF_Window src,
GF_Window dst,
Bool disable_blit,
Bool has_scale 
)

+ Here is the caller graph for this function:

static Bool compositor_2d_draw_bitmap_ex ( GF_VisualManager *  visual,
GF_TextureHandler txh,
DrawableContext *  ctx,
GF_IRect clip,
GF_Rect unclip,
u8  alpha,
GF_ColorKey col_key,
GF_TraverseState *  tr_state,
Bool  force_soft_blt 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool compositor_2d_draw_bitmap ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state,
DrawableContext *  ctx,
GF_ColorKey col_key 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err compositor_2d_set_aspect_ratio ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void compositor_send_resize_event ( GF_Compositor *  compositor,
GF_SceneGraph *  subscene,
Fixed  old_z,
Fixed  old_tx,
Fixed  old_ty,
Bool  is_resize 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void compositor_2d_set_user_transform ( GF_Compositor *  compositor,
Fixed  zoom,
Fixed  tx,
Fixed  ty,
Bool  is_resize 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Rect compositor_2d_update_clipper ( GF_TraverseState *  tr_state,
GF_Rect  this_clip,
Bool need_restore,
GF_Rect original,
Bool  for_layer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool visual_2d_overlaps_overlay ( GF_VisualManager *  visual,
DrawableContext *  ctx,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_2d_flush_overlay_areas ( GF_VisualManager *  visual,
GF_TraverseState *  tr_state 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void visual_2d_draw_overlays ( GF_VisualManager *  visual)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void compositor_2d_init_callbacks ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: