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.c File Reference
+ Include dependency graph for compositor.c:

Macros

#define SC_DEF_WIDTH   320
 
#define SC_DEF_HEIGHT   240
 

Enumerations

enum  {
  GF_COMPOSITOR_THREAD_START = 0, GF_COMPOSITOR_THREAD_RUN, GF_COMPOSITOR_THREAD_ABORTING, GF_COMPOSITOR_THREAD_DONE,
  GF_COMPOSITOR_THREAD_INIT_FAILED
}
 

Functions

void gf_sc_simulation_tick (GF_Compositor *compositor)
 
void gf_sc_next_frame_state (GF_Compositor *compositor, u32 state)
 
static void gf_sc_set_fullscreen (GF_Compositor *compositor)
 
static void gf_sc_reconfig_task (GF_Compositor *compositor)
 
Bool gf_sc_draw_frame (GF_Compositor *compositor)
 
void gf_sc_reset_graphics (GF_Compositor *compositor)
 
static void gf_sc_reset_framerate (GF_Compositor *compositor)
 
static Bool gf_sc_on_event (void *cbck, GF_Event *event)
 
static Bool gf_sc_set_check_raster2d (GF_Compositor *compositor, GF_Raster2D *ifce)
 
static GF_Err gf_sc_load (GF_Compositor *compositor)
 
static GF_Err gf_sc_create (GF_Compositor *compositor)
 
static u32 gf_sc_proc (void *par)
 
GF_Compositor * gf_sc_new (GF_User *user, Bool self_threaded, GF_Terminal *term)
 
void gf_sc_del (GF_Compositor *compositor)
 
void gf_sc_set_fps (GF_Compositor *compositor, Double fps)
 
u32 gf_sc_get_audio_buffer_length (GF_Compositor *compositor)
 
static void gf_sc_set_play_state (GF_Compositor *compositor, u32 PlayState)
 
u32 gf_sc_get_clock (GF_Compositor *compositor)
 
GF_Err gf_sc_set_scene_size (GF_Compositor *compositor, u32 Width, u32 Height, Bool force_size)
 
Bool gf_sc_get_size (GF_Compositor *compositor, u32 *Width, u32 *Height)
 
Fixed gf_sc_svg_convert_length_to_display (GF_Compositor *compositor, SVG_Length *length)
 
void compositor_set_ar_scale (GF_Compositor *compositor, Fixed scaleX, Fixed scaleY)
 
static void gf_sc_reset (GF_Compositor *compositor)
 
GF_Err gf_sc_set_scene (GF_Compositor *compositor, GF_SceneGraph *scene_graph)
 
void gf_sc_lock_audio (GF_Compositor *compositor, Bool doLock)
 
void gf_sc_lock (GF_Compositor *compositor, Bool doLock)
 
GF_Err gf_sc_set_size (GF_Compositor *compositor, u32 NewWidth, u32 NewHeight)
 
void gf_sc_reload_config (GF_Compositor *compositor)
 
GF_Err gf_sc_set_option (GF_Compositor *compositor, u32 type, u32 value)
 
u32 gf_sc_get_option (GF_Compositor *compositor, u32 type)
 
void gf_sc_map_point (GF_Compositor *compositor, s32 X, s32 Y, Fixed *bifsX, Fixed *bifsY)
 
GF_Err gf_sc_get_screen_buffer (GF_Compositor *compositor, GF_VideoSurface *framebuffer, u32 depth_dump_mode)
 
GF_Err gf_sc_get_offscreen_buffer (GF_Compositor *compositor, GF_VideoSurface *framebuffer, u32 view_idx, u32 depth_dump_mode)
 
GF_Err gf_sc_release_screen_buffer (GF_Compositor *compositor, GF_VideoSurface *framebuffer)
 
Double gf_sc_get_fps (GF_Compositor *compositor, Bool absoluteFPS)
 
void gf_sc_register_time_node (GF_Compositor *compositor, GF_TimeNode *tn)
 
void gf_sc_unregister_time_node (GF_Compositor *compositor, GF_TimeNode *tn)
 
GF_Nodegf_sc_pick_node (GF_Compositor *compositor, s32 X, s32 Y)
 
static void gf_sc_setup_root_visual (GF_Compositor *compositor, GF_Node *top_node)
 
static void gf_sc_recompute_ar (GF_Compositor *compositor, GF_Node *top_node)
 
static void gf_sc_draw_scene (GF_Compositor *compositor)
 
Bool gf_sc_visual_is_registered (GF_Compositor *compositor, GF_VisualManager *visual)
 
void gf_sc_visual_register (GF_Compositor *compositor, GF_VisualManager *visual)
 
void gf_sc_visual_unregister (GF_Compositor *compositor, GF_VisualManager *visual)
 
void gf_sc_traverse_subscene_ex (GF_Compositor *compositor, GF_Node *inline_parent, GF_SceneGraph *subscene, void *rs)
 
static Bool gf_sc_handle_event_intern (GF_Compositor *compositor, GF_Event *event, Bool from_user)
 
void gf_sc_traverse_subscene (GF_Compositor *compositor, GF_Node *inline_parent, GF_SceneGraph *subscene, void *rs)
 
static Bool gf_sc_on_event_ex (GF_Compositor *compositor, GF_Event *event, Bool from_user)
 
Bool gf_sc_user_event (GF_Compositor *compositor, GF_Event *event)
 
void gf_sc_register_extra_graph (GF_Compositor *compositor, GF_SceneGraph *extra_scene, Bool do_remove)
 
u32 gf_sc_get_audio_delay (GF_Compositor *compositor)
 
Bool gf_sc_script_action (GF_Compositor *compositor, u32 type, GF_Node *n, GF_JSAPIParam *param)
 
Bool gf_sc_pick_in_clipper (GF_TraverseState *tr_state, GF_Rect *clip)
 
Bool gf_sc_has_text_selection (GF_Compositor *compositor)
 
const char * gf_sc_get_selected_text (GF_Compositor *compositor)
 
void gf_sc_check_focus_upon_destroy (GF_Node *n)
 
GF_Err gf_sc_add_video_listener (GF_Compositor *sc, GF_VideoListener *vl)
 
GF_Err gf_sc_remove_video_listener (GF_Compositor *sc, GF_VideoListener *vl)
 
Bool gf_sc_use_raw_texture (GF_Compositor *compositor)
 
void gf_sc_get_av_caps (GF_Compositor *compositor, u32 *width, u32 *height, u32 *bpp, u32 *channels, u32 *sample_rate)
 

Variables

u32 time_spent_in_anim
 

Macro Definition Documentation

#define SC_DEF_WIDTH   320
#define SC_DEF_HEIGHT   240

Enumeration Type Documentation

anonymous enum
Enumerator
GF_COMPOSITOR_THREAD_START 
GF_COMPOSITOR_THREAD_RUN 
GF_COMPOSITOR_THREAD_ABORTING 
GF_COMPOSITOR_THREAD_DONE 
GF_COMPOSITOR_THREAD_INIT_FAILED 

Function Documentation

void gf_sc_simulation_tick ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_next_frame_state ( GF_Compositor *  compositor,
u32  state 
)

+ Here is the caller graph for this function:

static void gf_sc_set_fullscreen ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sc_reconfig_task ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_draw_frame ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_reset_graphics ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sc_reset_framerate ( GF_Compositor *  compositor)
static

+ Here is the caller graph for this function:

static Bool gf_sc_on_event ( void *  cbck,
GF_Event event 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_sc_set_check_raster2d ( GF_Compositor *  compositor,
GF_Raster2D ifce 
)
static

+ Here is the caller graph for this function:

static GF_Err gf_sc_load ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err gf_sc_create ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 gf_sc_proc ( void *  par)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Compositor* gf_sc_new ( GF_User *  user,
Bool  self_threaded,
GF_Terminal *  term 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_del ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_set_fps ( GF_Compositor *  compositor,
Double  fps 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_sc_get_audio_buffer_length ( GF_Compositor *  compositor)
static void gf_sc_set_play_state ( GF_Compositor *  compositor,
u32  PlayState 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_sc_get_clock ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_set_scene_size ( GF_Compositor *  compositor,
u32  Width,
u32  Height,
Bool  force_size 
)

+ Here is the caller graph for this function:

Bool gf_sc_get_size ( GF_Compositor *  compositor,
u32 Width,
u32 Height 
)
Fixed gf_sc_svg_convert_length_to_display ( GF_Compositor *  compositor,
SVG_Length length 
)

+ Here is the caller graph for this function:

void compositor_set_ar_scale ( GF_Compositor *  compositor,
Fixed  scaleX,
Fixed  scaleY 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sc_reset ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_set_scene ( GF_Compositor *  compositor,
GF_SceneGraph *  scene_graph 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_lock_audio ( GF_Compositor *  compositor,
Bool  doLock 
)

+ Here is the call graph for this function:

void gf_sc_lock ( GF_Compositor *  compositor,
Bool  doLock 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_set_size ( GF_Compositor *  compositor,
u32  NewWidth,
u32  NewHeight 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_reload_config ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_set_option ( GF_Compositor *  compositor,
u32  type,
u32  value 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_sc_get_option ( GF_Compositor *  compositor,
u32  type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_map_point ( GF_Compositor *  compositor,
s32  X,
s32  Y,
Fixed bifsX,
Fixed bifsY 
)

+ Here is the caller graph for this function:

GF_Err gf_sc_get_screen_buffer ( GF_Compositor *  compositor,
GF_VideoSurface framebuffer,
u32  depth_dump_mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_get_offscreen_buffer ( GF_Compositor *  compositor,
GF_VideoSurface framebuffer,
u32  view_idx,
u32  depth_dump_mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_release_screen_buffer ( GF_Compositor *  compositor,
GF_VideoSurface framebuffer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Double gf_sc_get_fps ( GF_Compositor *  compositor,
Bool  absoluteFPS 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_register_time_node ( GF_Compositor *  compositor,
GF_TimeNode tn 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_unregister_time_node ( GF_Compositor *  compositor,
GF_TimeNode tn 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Node* gf_sc_pick_node ( GF_Compositor *  compositor,
s32  X,
s32  Y 
)

+ Here is the caller graph for this function:

static void gf_sc_setup_root_visual ( GF_Compositor *  compositor,
GF_Node top_node 
)
static

! by default we don't set the focus on the content - this is conform to SVG and avoids displaying the focus box for MPEG-4 !!

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sc_recompute_ar ( GF_Compositor *  compositor,
GF_Node top_node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sc_draw_scene ( GF_Compositor *  compositor)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_visual_is_registered ( GF_Compositor *  compositor,
GF_VisualManager *  visual 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_visual_register ( GF_Compositor *  compositor,
GF_VisualManager *  visual 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_visual_unregister ( GF_Compositor *  compositor,
GF_VisualManager *  visual 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_traverse_subscene_ex ( GF_Compositor *  compositor,
GF_Node inline_parent,
GF_SceneGraph *  subscene,
void *  rs 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_sc_handle_event_intern ( GF_Compositor *  compositor,
GF_Event event,
Bool  from_user 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_traverse_subscene ( GF_Compositor *  compositor,
GF_Node inline_parent,
GF_SceneGraph *  subscene,
void *  rs 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_sc_on_event_ex ( GF_Compositor *  compositor,
GF_Event event,
Bool  from_user 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_user_event ( GF_Compositor *  compositor,
GF_Event event 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_register_extra_graph ( GF_Compositor *  compositor,
GF_SceneGraph *  extra_scene,
Bool  do_remove 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_sc_get_audio_delay ( GF_Compositor *  compositor)
Bool gf_sc_script_action ( GF_Compositor *  compositor,
u32  type,
GF_Node n,
GF_JSAPIParam param 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_pick_in_clipper ( GF_TraverseState *  tr_state,
GF_Rect clip 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_has_text_selection ( GF_Compositor *  compositor)

+ Here is the caller graph for this function:

const char* gf_sc_get_selected_text ( GF_Compositor *  compositor)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sc_check_focus_upon_destroy ( GF_Node n)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_add_video_listener ( GF_Compositor *  sc,
GF_VideoListener vl 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sc_remove_video_listener ( GF_Compositor *  sc,
GF_VideoListener vl 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_sc_use_raw_texture ( GF_Compositor *  compositor)

+ Here is the caller graph for this function:

void gf_sc_get_av_caps ( GF_Compositor *  compositor,
u32 width,
u32 height,
u32 bpp,
u32 channels,
u32 sample_rate 
)

+ Here is the caller graph for this function:

Variable Documentation

u32 time_spent_in_anim