AP4_SampleSource Class Reference
#include <Ap4SampleSource.h>

Public Member Functions | |
virtual | ~AP4_SampleSource () |
virtual AP4_UI32 | GetTimeScale ()=0 |
Return the timscale of the sample's media. | |
virtual AP4_UI32 | GetDurationMs ()=0 |
Return the duration in milliseconds. | |
virtual AP4_UI32 | GetTrackId ()=0 |
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)=0 |
Read the next sample from the source. | |
virtual AP4_Ordinal | GetNearestSyncSampleIndex (AP4_Ordinal indx, bool before=true)=0 |
Return the index of the nearest sync sample from a given sample index. | |
virtual AP4_Result | GetSampleIndexForTimeStampMs (AP4_UI32 timestamp, AP4_Ordinal &indx)=0 |
Return the sample index given a timestamp in milliseconds. | |
virtual AP4_Result | SetSampleIndex (AP4_Ordinal indx)=0 |
Seek to a specific sample index. | |
virtual AP4_SampleDescription * | GetSampleDescription (AP4_Ordinal indx)=0 |
Return a sample description by index. |
Detailed Description
Definition at line 48 of file Ap4SampleSource.h.
Constructor & Destructor Documentation
virtual AP4_SampleSource::~AP4_SampleSource | ( | ) | [inline, virtual] |
Definition at line 51 of file Ap4SampleSource.h.
Member Function Documentation
virtual AP4_UI32 AP4_SampleSource::GetDurationMs | ( | ) | [pure virtual] |
Return the duration in milliseconds.
Implemented in AP4_TrackSampleSource.
virtual AP4_Ordinal AP4_SampleSource::GetNearestSyncSampleIndex | ( | AP4_Ordinal | indx, | |
bool | before = true | |||
) | [pure virtual] |
Return the index of the nearest sync sample from a given sample index.
Implemented in AP4_TrackSampleSource.
virtual AP4_SampleDescription* AP4_SampleSource::GetSampleDescription | ( | AP4_Ordinal | indx | ) | [pure virtual] |
Return a sample description by index.
Returns NULL if there is no sample description with the requested index.
Implemented in AP4_TrackSampleSource.
virtual AP4_Result AP4_SampleSource::GetSampleIndexForTimeStampMs | ( | AP4_UI32 | timestamp, | |
AP4_Ordinal & | indx | |||
) | [pure virtual] |
Return the sample index given a timestamp in milliseconds.
Implemented in AP4_TrackSampleSource.
virtual AP4_UI32 AP4_SampleSource::GetTimeScale | ( | ) | [pure virtual] |
Return the timscale of the sample's media.
Implemented in AP4_TrackSampleSource.
virtual AP4_UI32 AP4_SampleSource::GetTrackId | ( | ) | [pure virtual] |
Return the track ID associated with this source, or 0 if there is no track ID associated with it.
Implemented in AP4_TrackSampleSource.
virtual AP4_Result AP4_SampleSource::ReadNextSample | ( | AP4_Sample & | sample, | |
AP4_DataBuffer & | buffer | |||
) | [pure virtual] |
Read the next sample from the source.
Implemented in AP4_TrackSampleSource.
virtual AP4_Result AP4_SampleSource::SetSampleIndex | ( | AP4_Ordinal | indx | ) | [pure virtual] |
Seek to a specific sample index.
Implemented in AP4_TrackSampleSource.
The documentation for this class was generated from the following file:
Generated on Thu May 13 16:37:49 2010 for Bento4 MP4 SDK by
