AP4_TrackSampleSource Class Reference
#include <Ap4SampleSource.h>

Public Member Functions | |
AP4_TrackSampleSource (AP4_Track *track) | |
virtual AP4_UI32 | GetTimeScale () |
Return the timscale of the sample's media. | |
virtual AP4_UI32 | GetDurationMs () |
Return the duration in milliseconds. | |
virtual AP4_UI32 | GetTrackId () |
Return the track ID associated with this source, or 0 if there is no track ID associated with it. | |
virtual AP4_Result | ReadNextSample (AP4_Sample &sample, AP4_DataBuffer &buffer) |
Read the next sample from the source. | |
virtual AP4_Ordinal | GetNearestSyncSampleIndex (AP4_Ordinal indx, bool before=true) |
Return the index of the nearest sync sample from a given sample index. | |
virtual AP4_Result | GetSampleIndexForTimeStampMs (AP4_UI32 timestamp, AP4_Ordinal &indx) |
Return the sample index given a timestamp in milliseconds. | |
virtual AP4_Result | SetSampleIndex (AP4_Ordinal indx) |
Seek to a specific sample index. | |
virtual AP4_SampleDescription * | GetSampleDescription (AP4_Ordinal indx) |
Return a sample description by index. |
Detailed Description
Definition at line 99 of file Ap4SampleSource.h.
Constructor & Destructor Documentation
AP4_TrackSampleSource::AP4_TrackSampleSource | ( | AP4_Track * | track | ) |
Member Function Documentation
virtual AP4_UI32 AP4_TrackSampleSource::GetDurationMs | ( | ) | [virtual] |
Return the duration in milliseconds.
Implements AP4_SampleSource.
virtual AP4_Ordinal AP4_TrackSampleSource::GetNearestSyncSampleIndex | ( | AP4_Ordinal | indx, | |
bool | before = true | |||
) | [virtual] |
Return the index of the nearest sync sample from a given sample index.
Implements AP4_SampleSource.
virtual AP4_SampleDescription* AP4_TrackSampleSource::GetSampleDescription | ( | AP4_Ordinal | indx | ) | [virtual] |
Return a sample description by index.
Returns NULL if there is no sample description with the requested index.
Implements AP4_SampleSource.
virtual AP4_Result AP4_TrackSampleSource::GetSampleIndexForTimeStampMs | ( | AP4_UI32 | timestamp, | |
AP4_Ordinal & | indx | |||
) | [virtual] |
Return the sample index given a timestamp in milliseconds.
Implements AP4_SampleSource.
virtual AP4_UI32 AP4_TrackSampleSource::GetTimeScale | ( | ) | [virtual] |
Return the timscale of the sample's media.
Implements AP4_SampleSource.
virtual AP4_UI32 AP4_TrackSampleSource::GetTrackId | ( | ) | [virtual] |
Return the track ID associated with this source, or 0 if there is no track ID associated with it.
Implements AP4_SampleSource.
virtual AP4_Result AP4_TrackSampleSource::ReadNextSample | ( | AP4_Sample & | sample, | |
AP4_DataBuffer & | buffer | |||
) | [virtual] |
Read the next sample from the source.
Implements AP4_SampleSource.
virtual AP4_Result AP4_TrackSampleSource::SetSampleIndex | ( | AP4_Ordinal | indx | ) | [virtual] |
Seek to a specific sample index.
Implements AP4_SampleSource.
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
