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

Data Structures

struct  GF_TermConnectObject
 

Enumerations

enum  {
  GF_ACTION_PLAY, GF_ACTION_STOP, GF_ACTION_STEP, GF_ACTION_EXIT,
  GF_ACTION_MUTE, GF_ACTION_VOLUP, GF_ACTION_VOLDOWN, GF_ACTION_JUMP_FORWARD,
  GF_ACTION_JUMP_BACKWARD, GF_ACTION_JUMP_START, GF_ACTION_JUMP_END, GF_ACTION_VERY_FAST_FORWARD,
  GF_ACTION_FAST_FORWARD, GF_ACTION_SLOW_FORWARD, GF_ACTION_VERY_FAST_REWIND, GF_ACTION_FAST_REWIND,
  GF_ACTION_SLOW_REWIND, GF_ACTION_NEXT, GF_ACTION_PREVIOUS, GF_ACTION_QUALITY_UP,
  GF_ACTION_QUALITY_DOWN
}
 

Functions

static void gf_term_connect_object (GF_Terminal *app, GF_ObjectManager *odm, char *serviceURL, char *parent_url)
 
void gf_term_load_shortcuts (GF_Terminal *term)
 
u32 gf_term_get_time (GF_Terminal *term)
 
void gf_term_invalidate_compositor (GF_Terminal *term)
 
static Bool check_user (GF_User *user)
 
static Bool term_script_action (void *opaque, u32 type, GF_Node *n, GF_JSAPIParam *param)
 
static Bool term_find_res (GF_TermLocales *loc, char *parent, char *path, char *relocated_path, char *localized_rel_path)
 
static Bool term_check_locales (void *__self, const char *locales_parent_path, const char *rel_path, char *relocated_path, char *localized_rel_path)
 
static void gf_term_reload_cfg (GF_Terminal *term)
 
static Bool gf_term_get_user_pass (void *usr_cbk, const char *site_url, char *usr_name, char *password)
 
void gf_term_pause_all_clocks (GF_Terminal *term, Bool pause)
 
static void gf_term_set_play_state (GF_Terminal *term, u32 PlayState, Bool reset_audio, Bool pause_clocks)
 
static void gf_term_connect_from_time_ex (GF_Terminal *term, const char *URL, u64 startTime, Bool pause_at_first_frame, Bool secondary_scene, const char *parent_path)
 
void gf_term_refresh_cache (GF_Config *cfg)
 
Bool gf_term_is_type_supported (GF_Terminal *term, const char *mime)
 
GF_Terminal * gf_term_new (GF_User *user)
 
GF_Err gf_term_del (GF_Terminal *term)
 
void gf_term_message (GF_Terminal *term, const char *service, const char *message, GF_Err error)
 
GF_Err gf_term_step_clocks (GF_Terminal *term, u32 ms_diff)
 
void gf_term_connect_from_time (GF_Terminal *term, const char *URL, u64 startTime, Bool pause_at_first_frame)
 
void gf_term_connect (GF_Terminal *term, const char *URL)
 
void gf_term_connect_with_path (GF_Terminal *term, const char *URL, const char *parent_path)
 
void gf_term_disconnect (GF_Terminal *term)
 
const char * gf_term_get_url (GF_Terminal *term)
 
static GF_Err gf_term_set_cache_state (GF_Terminal *term, u32 state)
 
GF_Err gf_term_set_option (GF_Terminal *term, u32 type, u32 value)
 
GF_Err gf_term_set_simulation_frame_rate (GF_Terminal *term, Double frame_rate)
 
Double gf_term_get_simulation_frame_rate (GF_Terminal *term)
 
u32 gf_term_check_end_of_scene (GF_Terminal *term, Bool skip_interactions)
 
u32 gf_term_get_option (GF_Terminal *term, u32 type)
 
static void gf_term_cleanup_pending_session (GF_Terminal *term, GF_ClientService *ns)
 
GF_Err gf_term_set_size (GF_Terminal *term, u32 NewWidth, u32 NewHeight)
 
void gf_term_handle_services (GF_Terminal *term)
 
void gf_term_queue_node_traverse (GF_Terminal *term, GF_Node *node)
 
void gf_term_unqueue_node_traverse (GF_Terminal *term, GF_Node *node)
 
void gf_term_check_connections_for_delete (GF_Terminal *term, GF_ObjectManager *odm)
 
void gf_term_close_service (GF_Terminal *term, GF_ClientService *ns)
 
void gf_term_lock_compositor (GF_Terminal *term, Bool LockIt)
 
void gf_term_lock_media_queue (GF_Terminal *term, Bool LockIt)
 
void gf_term_lock_net (GF_Terminal *term, Bool LockIt)
 
void media_event_collect_info (GF_ClientService *net, GF_ObjectManager *odm, GF_DOMMediaEvent *media_event, u32 *min_time, u32 *min_buffer)
 
void gf_term_service_media_event_with_download (GF_ObjectManager *odm, u32 event_type, u64 loaded_size, u64 total_size, u32 bytes_per_sec)
 
void gf_term_service_media_event (GF_ObjectManager *odm, u32 event_type)
 
Bool gf_term_relocate_url (GF_Terminal *term, const char *service_url, const char *parent_url, char *out_relocated_url, char *out_localized_url)
 
void gf_term_post_connect_object (GF_Terminal *term, GF_ObjectManager *odm, char *serviceURL, char *parent_url)
 
GF_ClientService * gf_term_get_service_from_url (GF_Terminal *term, const char *url)
 
GF_Err gf_term_connect_remote_channel (GF_Terminal *term, GF_Channel *ch, char *URL)
 
u32 gf_term_play_from_time (GF_Terminal *term, u64 from_time, u32 pause_at_first_frame)
 
Bool gf_term_user_event (GF_Terminal *term, GF_Event *evt)
 
Double gf_term_get_framerate (GF_Terminal *term, Bool absoluteFPS)
 
u32 gf_term_get_time_in_ms (GF_Terminal *term)
 
GF_Nodegf_term_pick_node (GF_Terminal *term, s32 X, s32 Y)
 
void gf_term_navigate_to (GF_Terminal *term, const char *toURL)
 
GF_Err gf_term_get_viewpoint (GF_Terminal *term, u32 viewpoint_idx, const char **outName, Bool *is_bound)
 
GF_Err gf_term_set_viewpoint (GF_Terminal *term, u32 viewpoint_idx, const char *viewpoint_name)
 
GF_Err gf_term_add_object (GF_Terminal *term, const char *url, Bool auto_play)
 
void gf_term_attach_service (GF_Terminal *term, GF_InputService *service_hdl)
 
GF_Err gf_term_scene_update (GF_Terminal *term, char *type, char *com)
 
GF_Err gf_term_get_screen_buffer (GF_Terminal *term, GF_VideoSurface *framebuffer)
 
GF_Err gf_term_get_offscreen_buffer (GF_Terminal *term, GF_VideoSurface *framebuffer, u32 view_idx, u32 depth_buffer_type)
 
GF_Err gf_term_release_screen_buffer (GF_Terminal *term, GF_VideoSurface *framebuffer)
 
static void gf_term_sample_scenetime (GF_Scene *scene)
 
u32 gf_term_sample_clocks (GF_Terminal *term)
 
const char * gf_term_get_text_selection (GF_Terminal *term, Bool probe_only)
 
GF_Err gf_term_paste_text (GF_Terminal *term, const char *txt, Bool probe_only)
 
Bool gf_term_forward_event (GF_Terminal *term, GF_Event *evt, Bool consumed, Bool forward_only)
 
GF_Err gf_term_add_event_filter (GF_Terminal *terminal, GF_TermEventFilter *ef)
 
GF_Err gf_term_remove_event_filter (GF_Terminal *terminal, GF_TermEventFilter *ef)
 
Bool gf_term_send_event (GF_Terminal *term, GF_Event *evt)
 
static void set_clocks_speed (GF_Terminal *term, Fixed ratio)
 
void gf_term_set_speed (GF_Terminal *term, Fixed speed)
 
void gf_term_process_shortcut (GF_Terminal *term, GF_Event *ev)
 
void gf_scene_switch_quality (GF_Scene *scene, Bool up)
 
void gf_term_switch_quality (GF_Terminal *term, Bool up)
 

Data Structure Documentation

struct GF_TermConnectObject
+ Collaboration diagram for GF_TermConnectObject:
Data Fields
GF_ObjectManager * odm
char * service_url
char * parent_url

Enumeration Type Documentation

anonymous enum
Enumerator
GF_ACTION_PLAY 
GF_ACTION_STOP 
GF_ACTION_STEP 
GF_ACTION_EXIT 
GF_ACTION_MUTE 
GF_ACTION_VOLUP 
GF_ACTION_VOLDOWN 
GF_ACTION_JUMP_FORWARD 
GF_ACTION_JUMP_BACKWARD 
GF_ACTION_JUMP_START 
GF_ACTION_JUMP_END 
GF_ACTION_VERY_FAST_FORWARD 
GF_ACTION_FAST_FORWARD 
GF_ACTION_SLOW_FORWARD 
GF_ACTION_VERY_FAST_REWIND 
GF_ACTION_FAST_REWIND 
GF_ACTION_SLOW_REWIND 
GF_ACTION_NEXT 
GF_ACTION_PREVIOUS 
GF_ACTION_QUALITY_UP 
GF_ACTION_QUALITY_DOWN 

Function Documentation

static void gf_term_connect_object ( GF_Terminal *  app,
GF_ObjectManager *  odm,
char *  serviceURL,
char *  parent_url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_load_shortcuts ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_term_get_time ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_invalidate_compositor ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool check_user ( GF_User *  user)
static

+ Here is the caller graph for this function:

static Bool term_script_action ( void *  opaque,
u32  type,
GF_Node n,
GF_JSAPIParam param 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool term_find_res ( GF_TermLocales loc,
char *  parent,
char *  path,
char *  relocated_path,
char *  localized_rel_path 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool term_check_locales ( void *  __self,
const char *  locales_parent_path,
const char *  rel_path,
char *  relocated_path,
char *  localized_rel_path 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_term_reload_cfg ( GF_Terminal *  term)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_term_get_user_pass ( void *  usr_cbk,
const char *  site_url,
char *  usr_name,
char *  password 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_pause_all_clocks ( GF_Terminal *  term,
Bool  pause 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_term_set_play_state ( GF_Terminal *  term,
u32  PlayState,
Bool  reset_audio,
Bool  pause_clocks 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_term_connect_from_time_ex ( GF_Terminal *  term,
const char *  URL,
u64  startTime,
Bool  pause_at_first_frame,
Bool  secondary_scene,
const char *  parent_path 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_refresh_cache ( GF_Config *  cfg)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_is_type_supported ( GF_Terminal *  term,
const char *  mime 
)

+ Here is the call graph for this function:

GF_Terminal* gf_term_new ( GF_User *  user)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_del ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_message ( GF_Terminal *  term,
const char *  service,
const char *  message,
GF_Err  error 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_step_clocks ( GF_Terminal *  term,
u32  ms_diff 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_connect_from_time ( GF_Terminal *  term,
const char *  URL,
u64  startTime,
Bool  pause_at_first_frame 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_connect ( GF_Terminal *  term,
const char *  URL 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_connect_with_path ( GF_Terminal *  term,
const char *  URL,
const char *  parent_path 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_disconnect ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_term_get_url ( GF_Terminal *  term)

+ Here is the caller graph for this function:

static GF_Err gf_term_set_cache_state ( GF_Terminal *  term,
u32  state 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_set_option ( GF_Terminal *  term,
u32  type,
u32  value 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_set_simulation_frame_rate ( GF_Terminal *  term,
Double  frame_rate 
)

+ Here is the call graph for this function:

Double gf_term_get_simulation_frame_rate ( GF_Terminal *  term)
u32 gf_term_check_end_of_scene ( GF_Terminal *  term,
Bool  skip_interactions 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_term_get_option ( GF_Terminal *  term,
u32  type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_term_cleanup_pending_session ( GF_Terminal *  term,
GF_ClientService *  ns 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_set_size ( GF_Terminal *  term,
u32  NewWidth,
u32  NewHeight 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_handle_services ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_queue_node_traverse ( GF_Terminal *  term,
GF_Node node 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_unqueue_node_traverse ( GF_Terminal *  term,
GF_Node node 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_check_connections_for_delete ( GF_Terminal *  term,
GF_ObjectManager *  odm 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_close_service ( GF_Terminal *  term,
GF_ClientService *  ns 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_lock_compositor ( GF_Terminal *  term,
Bool  LockIt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_lock_media_queue ( GF_Terminal *  term,
Bool  LockIt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_lock_net ( GF_Terminal *  term,
Bool  LockIt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void media_event_collect_info ( GF_ClientService *  net,
GF_ObjectManager *  odm,
GF_DOMMediaEvent media_event,
u32 min_time,
u32 min_buffer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_service_media_event_with_download ( GF_ObjectManager *  odm,
u32  event_type,
u64  loaded_size,
u64  total_size,
u32  bytes_per_sec 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_service_media_event ( GF_ObjectManager *  odm,
u32  event_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_relocate_url ( GF_Terminal *  term,
const char *  service_url,
const char *  parent_url,
char *  out_relocated_url,
char *  out_localized_url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_post_connect_object ( GF_Terminal *  term,
GF_ObjectManager *  odm,
char *  serviceURL,
char *  parent_url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_ClientService* gf_term_get_service_from_url ( GF_Terminal *  term,
const char *  url 
)

+ Here is the call graph for this function:

GF_Err gf_term_connect_remote_channel ( GF_Terminal *  term,
GF_Channel *  ch,
char *  URL 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_term_play_from_time ( GF_Terminal *  term,
u64  from_time,
u32  pause_at_first_frame 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_user_event ( GF_Terminal *  term,
GF_Event evt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Double gf_term_get_framerate ( GF_Terminal *  term,
Bool  absoluteFPS 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_term_get_time_in_ms ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Node* gf_term_pick_node ( GF_Terminal *  term,
s32  X,
s32  Y 
)

+ Here is the call graph for this function:

void gf_term_navigate_to ( GF_Terminal *  term,
const char *  toURL 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_get_viewpoint ( GF_Terminal *  term,
u32  viewpoint_idx,
const char **  outName,
Bool is_bound 
)

+ Here is the call graph for this function:

GF_Err gf_term_set_viewpoint ( GF_Terminal *  term,
u32  viewpoint_idx,
const char *  viewpoint_name 
)

+ Here is the call graph for this function:

GF_Err gf_term_add_object ( GF_Terminal *  term,
const char *  url,
Bool  auto_play 
)

+ Here is the call graph for this function:

void gf_term_attach_service ( GF_Terminal *  term,
GF_InputService service_hdl 
)

+ Here is the call graph for this function:

GF_Err gf_term_scene_update ( GF_Terminal *  term,
char *  type,
char *  com 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_get_screen_buffer ( GF_Terminal *  term,
GF_VideoSurface framebuffer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_get_offscreen_buffer ( GF_Terminal *  term,
GF_VideoSurface framebuffer,
u32  view_idx,
u32  depth_buffer_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_release_screen_buffer ( GF_Terminal *  term,
GF_VideoSurface framebuffer 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_term_sample_scenetime ( GF_Scene *  scene)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_term_sample_clocks ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_term_get_text_selection ( GF_Terminal *  term,
Bool  probe_only 
)

+ Here is the call graph for this function:

GF_Err gf_term_paste_text ( GF_Terminal *  term,
const char *  txt,
Bool  probe_only 
)

+ Here is the call graph for this function:

Bool gf_term_forward_event ( GF_Terminal *  term,
GF_Event evt,
Bool  consumed,
Bool  forward_only 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_add_event_filter ( GF_Terminal *  terminal,
GF_TermEventFilter ef 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_remove_event_filter ( GF_Terminal *  terminal,
GF_TermEventFilter ef 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_send_event ( GF_Terminal *  term,
GF_Event evt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void set_clocks_speed ( GF_Terminal *  term,
Fixed  ratio 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_set_speed ( GF_Terminal *  term,
Fixed  speed 
)

+ Here is the call graph for this function:

void gf_term_process_shortcut ( GF_Terminal *  term,
GF_Event ev 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_scene_switch_quality ( GF_Scene *  scene,
Bool  up 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_switch_quality ( GF_Terminal *  term,
Bool  up 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: