Shaka Packager SDK
|
#include <composition_offset_iterator.h>
Public Member Functions | |
CompositionOffsetIterator (const CompositionTimeToSample &composition_time_to_sample) | |
Create CompositionOffsetIterator from composition time to sample box. | |
bool | AdvanceSample () |
bool | IsValid () const |
int64_t | sample_offset () const |
int64_t | SampleOffset (uint32_t sample) const |
uint32_t | NumSamples () const |
Composition time to sample box (CTTS) iterator used to iterate through the compressed table. This class also provides convenient functions to query total number of samples and the composition offset for a particular sample.
Definition at line 23 of file composition_offset_iterator.h.
bool shaka::media::mp4::CompositionOffsetIterator::AdvanceSample | ( | ) |
Advance the iterator to the next sample.
Definition at line 23 of file composition_offset_iterator.cc.
bool shaka::media::mp4::CompositionOffsetIterator::IsValid | ( | ) | const |
Definition at line 34 of file composition_offset_iterator.cc.
uint32_t shaka::media::mp4::CompositionOffsetIterator::NumSamples | ( | ) | const |
Definition at line 52 of file composition_offset_iterator.cc.
|
inline |
Definition at line 39 of file composition_offset_iterator.h.
int64_t shaka::media::mp4::CompositionOffsetIterator::SampleOffset | ( | uint32_t | sample | ) | const |
Definition at line 39 of file composition_offset_iterator.cc.