AP4_Track Class Reference
#include <Ap4Track.h>
List of all members.
Public Types |
enum | Type {
TYPE_UNKNOWN = 0,
TYPE_AUDIO = 1,
TYPE_VIDEO = 2,
TYPE_SYSTEM = 3,
TYPE_HINT = 4,
TYPE_TEXT = 5,
TYPE_JPEG = 6,
TYPE_RTP = 7
} |
Public Member Functions |
| AP4_Track (Type type, AP4_SampleTable *sample_table, AP4_UI32 track_id, AP4_UI32 movie_time_scale, AP4_UI64 track_duration, AP4_UI32 media_time_scale, AP4_UI64 media_duration, const char *language, AP4_UI32 width, AP4_UI32 height) |
| AP4_Track (AP4_TrakAtom &atom, AP4_ByteStream &sample_stream, AP4_UI32 movie_time_scale) |
virtual | ~AP4_Track () |
AP4_Track * | Clone (AP4_Result *result=NULL) |
| Clone a track.
|
AP4_UI32 | GetFlags () |
AP4_Result | SetFlags (AP4_UI32 flags) |
AP4_Track::Type | GetType () |
AP4_UI32 | GetHandlerType () |
AP4_UI64 | GetDuration () |
AP4_UI32 | GetDurationMs () |
AP4_UI32 | GetWidth () |
AP4_UI32 | GetHeight () |
AP4_Cardinal | GetSampleCount () |
AP4_Result | GetSample (AP4_Ordinal index, AP4_Sample &sample) |
AP4_Result | ReadSample (AP4_Ordinal index, AP4_Sample &sample, AP4_DataBuffer &data) |
AP4_Result | GetSampleIndexForTimeStampMs (AP4_UI32 ts_ms, AP4_Ordinal &index) |
AP4_Ordinal | GetNearestSyncSampleIndex (AP4_Ordinal index, bool before=true) |
AP4_SampleDescription * | GetSampleDescription (AP4_Ordinal index) |
AP4_SampleTable * | GetSampleTable () |
AP4_UI32 | GetId () |
AP4_Result | SetId (AP4_UI32 track_id) |
AP4_TrakAtom * | GetTrakAtom () |
AP4_Result | SetMovieTimeScale (AP4_UI32 time_scale) |
AP4_UI32 | GetMovieTimeScale () |
AP4_UI32 | GetMediaTimeScale () |
AP4_UI64 | GetMediaDuration () |
const char * | GetTrackName () |
const char * | GetTrackLanguage () |
AP4_Result | Attach (AP4_MoovAtom *moov) |
Protected Attributes |
AP4_TrakAtom * | m_TrakAtom |
bool | m_TrakAtomIsOwned |
Type | m_Type |
AP4_SampleTable * | m_SampleTable |
bool | m_SampleTableIsOwned |
AP4_UI32 | m_MovieTimeScale |
Detailed Description
Definition at line 62 of file Ap4Track.h.
Member Enumeration Documentation
- Enumerator:
TYPE_UNKNOWN |
|
TYPE_AUDIO |
|
TYPE_VIDEO |
|
TYPE_SYSTEM |
|
TYPE_HINT |
|
TYPE_TEXT |
|
TYPE_JPEG |
|
TYPE_RTP |
|
Definition at line 65 of file Ap4Track.h.
Constructor & Destructor Documentation
virtual AP4_Track::~AP4_Track |
( |
|
) |
[virtual] |
Member Function Documentation
Clone a track.
This is useful if you want to create a track from a non-synthetic track (parsed from a file for example) and write it out
AP4_UI64 AP4_Track::GetMediaDuration |
( |
|
) |
|
AP4_UI32 AP4_Track::GetMediaTimeScale |
( |
|
) |
|
AP4_UI32 AP4_Track::GetMovieTimeScale |
( |
|
) |
[inline] |
const char* AP4_Track::GetTrackLanguage |
( |
|
) |
|
const char* AP4_Track::GetTrackName |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu May 13 16:37:53 2010 for Bento4 MP4 SDK by
1.6.3