Shaka Packager SDK
|
#include <chunk_info_iterator.h>
Public Member Functions | |
ChunkInfoIterator (const SampleToChunk &sample_to_chunk) | |
Create ChunkInfoIterator from sample to chunk box. | |
bool | AdvanceChunk () |
bool | AdvanceSample () |
bool | IsValid () const |
uint32_t | current_chunk () const |
uint32_t | samples_per_chunk () const |
uint32_t | sample_description_index () const |
uint32_t | NumSamples (uint32_t start_chunk, uint32_t end_chunk) const |
uint32_t | LastFirstChunk () const |
Sample to chunk box (STSC) iterator used to iterate through the compressed table by sample/chunk. This class also provides a convenient function to query total number of samples from start_chunk to end_chunk.
Definition at line 23 of file chunk_info_iterator.h.
bool shaka::media::mp4::ChunkInfoIterator::AdvanceChunk | ( | ) |
Advance to the next chunk.
Definition at line 29 of file chunk_info_iterator.cc.
bool shaka::media::mp4::ChunkInfoIterator::AdvanceSample | ( | ) |
Advance to the next sample.
Definition at line 39 of file chunk_info_iterator.cc.
|
inline |
Definition at line 41 of file chunk_info_iterator.h.
bool shaka::media::mp4::ChunkInfoIterator::IsValid | ( | ) | const |
Definition at line 46 of file chunk_info_iterator.cc.
|
inline |
Definition at line 56 of file chunk_info_iterator.h.
uint32_t shaka::media::mp4::ChunkInfoIterator::NumSamples | ( | uint32_t | start_chunk, |
uint32_t | end_chunk | ||
) | const |
Definition at line 51 of file chunk_info_iterator.cc.
|
inline |
Definition at line 47 of file chunk_info_iterator.h.
|
inline |
Definition at line 44 of file chunk_info_iterator.h.