~ubuntu-branches/ubuntu/intrepid/gpac/intrepid-proposed

« back to all changes in this revision

Viewing changes to include/gpac/mediaobject.h

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
(and could actually never be) */
111
111
GF_MediaObject *gf_mo_find(GF_Node *node, MFURL *url);
112
112
/*opens media object*/
113
 
void gf_mo_play(GF_MediaObject *mo);
 
113
void gf_mo_play(GF_MediaObject *mo, Double media_offset, Bool can_loop);
114
114
/*stops media object - video memory is not reset, last frame is kept*/
115
115
void gf_mo_stop(GF_MediaObject *mo);
116
116
/*restarts media object - shall be used for all looping media instead of stop/play for mediaControl
146
146
Bool gf_mo_fetch_data(GF_MediaObject *mo, Bool resync, Bool *eos);
147
147
/*release given amount of media data - nb_bytes is used for audio - if forceDrop is set, the unlocked frame will be 
148
148
droped if all bytes are consumed, otherwise it will be droped based on object time - typically, video fetches with the resync
149
 
flag set and release without forceDrop, while audio fetches without resync but forces buffer drop*/
150
 
void gf_mo_release_data(GF_MediaObject *mo, u32 nb_bytes, Bool forceDrop);
 
149
flag set and release without forceDrop, while audio fetches without resync but forces buffer drop. If forceDrop is set to 2, 
 
150
the frame will be stated as a discraded frame*/
 
151
void gf_mo_release_data(GF_MediaObject *mo, u32 nb_bytes, u32 forceDrop);
151
152
/*get media time*/
152
153
void gf_mo_get_media_time(GF_MediaObject *mo, u32 *media_time, u32 *media_dur);
153
154
/*get object clock*/