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

Functions

static GF_MediaObject * get_sync_reference (GF_Scene *scene, XMLRI *iri, u32 o_type, GF_Node *orig_ref, Bool *post_pone)
 
GF_MediaObject * gf_mo_register (GF_Node *node, MFURL *url, Bool lock_timelines, Bool force_new_res)
 
void gf_mo_unregister (GF_Node *node, GF_MediaObject *mo)
 
GF_MediaObject * gf_mo_new ()
 
Bool gf_mo_get_visual_info (GF_MediaObject *mo, u32 *width, u32 *height, u32 *stride, u32 *pixel_ar, u32 *pixelFormat, Bool *is_flipped)
 
Bool gf_mo_get_audio_info (GF_MediaObject *mo, u32 *sample_rate, u32 *bits_per_sample, u32 *num_channels, u32 *channel_config)
 
void gf_mo_update_caps (GF_MediaObject *mo)
 
char * gf_mo_fetch_data (GF_MediaObject *mo, Bool resync, Bool *eos, u32 *timestamp, u32 *size, s32 *ms_until_pres, u32 *ms_until_next)
 
GF_Err gf_mo_get_raw_image_planes (GF_MediaObject *mo, u8 **pY_or_RGB, u8 **pU, u8 **pV)
 
void gf_mo_release_data (GF_MediaObject *mo, u32 nb_bytes, s32 forceDrop)
 
void gf_mo_get_object_time (GF_MediaObject *mo, u32 *obj_time)
 
void gf_mo_play (GF_MediaObject *mo, Double clipBegin, Double clipEnd, Bool can_loop)
 
Bool gf_mo_stop (GF_MediaObject *mo)
 
void gf_mo_restart (GF_MediaObject *mo)
 
u32 gf_mo_get_od_id (MFURL *url)
 
Bool gf_mo_is_same_url (GF_MediaObject *obj, MFURL *an_url, Bool *keep_fragment, u32 obj_hint_type)
 
Bool gf_mo_url_changed (GF_MediaObject *mo, MFURL *url)
 
void gf_mo_pause (GF_MediaObject *mo)
 
void gf_mo_resume (GF_MediaObject *mo)
 
void gf_mo_set_speed (GF_MediaObject *mo, Fixed speed)
 
Fixed gf_mo_get_current_speed (GF_MediaObject *mo)
 
Fixed gf_mo_get_speed (GF_MediaObject *mo, Fixed in_speed)
 
Bool gf_mo_get_loop (GF_MediaObject *mo, Bool in_loop)
 
Double gf_mo_get_duration (GF_MediaObject *mo)
 
Bool gf_mo_should_deactivate (GF_MediaObject *mo)
 
Bool gf_mo_is_muted (GF_MediaObject *mo)
 
Bool gf_mo_is_done (GF_MediaObject *mo)
 
void gf_mo_adjust_clock (GF_MediaObject *mo, s32 ms_drift)
 
u32 gf_mo_get_flags (GF_MediaObject *mo)
 
void gf_mo_set_flag (GF_MediaObject *mo, u32 flag, Bool set_on)
 
u32 gf_mo_get_last_frame_time (GF_MediaObject *mo)
 
Bool gf_mo_is_private_media (GF_MediaObject *mo)
 
Bool gf_mo_set_position (GF_MediaObject *mo, GF_Window *src, GF_Window *dst)
 
Bool gf_mo_is_raw_memory (GF_MediaObject *mo)
 
u32 gf_mo_has_audio (GF_MediaObject *mo)
 
GF_SceneGraph * gf_mo_get_scenegraph (GF_MediaObject *mo)
 
static GF_DOMEventTargetgf_mo_event_target_add (GF_MediaObject *mo, GF_DOMEventTargetType type, void *obj)
 
GF_DOMEventTargetgf_mo_event_target_add_node (GF_MediaObject *mo, GF_Node *n)
 
GF_DOMEventTargetgf_mo_event_target_add_object (GF_MediaObject *mo, void *obj)
 
GF_Err gf_mo_event_target_remove (GF_MediaObject *mo, GF_DOMEventTarget *target)
 
GF_Err gf_mo_event_target_remove_by_index (GF_MediaObject *mo, u32 i)
 
GF_Nodegf_mo_event_target_enum_node (GF_MediaObject *mo, u32 *i)
 
s32 gf_mo_event_target_find_by_node (GF_MediaObject *mo, GF_Node *node)
 
GF_Err gf_mo_event_target_remove_by_node (GF_MediaObject *mo, GF_Node *node)
 
GF_Nodegf_event_target_get_node (GF_DOMEventTarget *target)
 
GF_DOMEventTargetgf_mo_event_target_get (GF_MediaObject *mo, u32 i)
 
void gf_mo_event_target_reset (GF_MediaObject *mo)
 
u32 gf_mo_event_target_count (GF_MediaObject *mo)
 
void gf_mo_del (GF_MediaObject *mo)
 

Function Documentation

static GF_MediaObject* get_sync_reference ( GF_Scene *  scene,
XMLRI iri,
u32  o_type,
GF_Node orig_ref,
Bool post_pone 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_MediaObject* gf_mo_register ( GF_Node node,
MFURL url,
Bool  lock_timelines,
Bool  force_new_res 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_unregister ( GF_Node node,
GF_MediaObject *  mo 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_MediaObject* gf_mo_new ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_get_visual_info ( GF_MediaObject *  mo,
u32 width,
u32 height,
u32 stride,
u32 pixel_ar,
u32 pixelFormat,
Bool is_flipped 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_get_audio_info ( GF_MediaObject *  mo,
u32 sample_rate,
u32 bits_per_sample,
u32 num_channels,
u32 channel_config 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_update_caps ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* gf_mo_fetch_data ( GF_MediaObject *  mo,
Bool  resync,
Bool eos,
u32 timestamp,
u32 size,
s32 ms_until_pres,
u32 ms_until_next 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_mo_get_raw_image_planes ( GF_MediaObject *  mo,
u8 **  pY_or_RGB,
u8 **  pU,
u8 **  pV 
)

+ Here is the caller graph for this function:

void gf_mo_release_data ( GF_MediaObject *  mo,
u32  nb_bytes,
s32  forceDrop 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_get_object_time ( GF_MediaObject *  mo,
u32 obj_time 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_play ( GF_MediaObject *  mo,
Double  clipBegin,
Double  clipEnd,
Bool  can_loop 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_stop ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_restart ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_mo_get_od_id ( MFURL url)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_is_same_url ( GF_MediaObject *  obj,
MFURL an_url,
Bool keep_fragment,
u32  obj_hint_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_url_changed ( GF_MediaObject *  mo,
MFURL url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_pause ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_resume ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_set_speed ( GF_MediaObject *  mo,
Fixed  speed 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Fixed gf_mo_get_current_speed ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

Fixed gf_mo_get_speed ( GF_MediaObject *  mo,
Fixed  in_speed 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_get_loop ( GF_MediaObject *  mo,
Bool  in_loop 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Double gf_mo_get_duration ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_should_deactivate ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_is_muted ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_mo_is_done ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_adjust_clock ( GF_MediaObject *  mo,
s32  ms_drift 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_mo_get_flags ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

void gf_mo_set_flag ( GF_MediaObject *  mo,
u32  flag,
Bool  set_on 
)

+ Here is the caller graph for this function:

u32 gf_mo_get_last_frame_time ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

Bool gf_mo_is_private_media ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

Bool gf_mo_set_position ( GF_MediaObject *  mo,
GF_Window src,
GF_Window dst 
)

+ Here is the caller graph for this function:

Bool gf_mo_is_raw_memory ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

u32 gf_mo_has_audio ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SceneGraph* gf_mo_get_scenegraph ( GF_MediaObject *  mo)

+ Here is the caller graph for this function:

static GF_DOMEventTarget* gf_mo_event_target_add ( GF_MediaObject *  mo,
GF_DOMEventTargetType  type,
void *  obj 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_DOMEventTarget* gf_mo_event_target_add_node ( GF_MediaObject *  mo,
GF_Node n 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_DOMEventTarget* gf_mo_event_target_add_object ( GF_MediaObject *  mo,
void *  obj 
)

+ Here is the call graph for this function:

GF_Err gf_mo_event_target_remove ( GF_MediaObject *  mo,
GF_DOMEventTarget target 
)

+ Here is the call graph for this function:

GF_Err gf_mo_event_target_remove_by_index ( GF_MediaObject *  mo,
u32  i 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Node* gf_mo_event_target_enum_node ( GF_MediaObject *  mo,
u32 i 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

s32 gf_mo_event_target_find_by_node ( GF_MediaObject *  mo,
GF_Node node 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_mo_event_target_remove_by_node ( GF_MediaObject *  mo,
GF_Node node 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Node* gf_event_target_get_node ( GF_DOMEventTarget target)

+ Here is the caller graph for this function:

GF_DOMEventTarget* gf_mo_event_target_get ( GF_MediaObject *  mo,
u32  i 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_event_target_reset ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_mo_event_target_count ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_mo_del ( GF_MediaObject *  mo)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: