Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::mp4::DecodingTimeIterator Class Reference

#include <decoding_time_iterator.h>

Public Member Functions

 DecodingTimeIterator (const DecodingTimeToSample &decoding_time_to_sample)
 Create DecodingTimeIterator from decoding time to sample box.
 
bool AdvanceSample ()
 
bool IsValid () const
 
uint32_t sample_delta () const
 
int64_t Duration (uint32_t start_sample, uint32_t end_sample) const
 
uint32_t NumSamples () const
 

Detailed Description

Decoding time to sample box (STTS) iterator used to iterate through the compressed table. This class also provides convenient functions to query total number of samples and the duration from start_sample to end_sample.

Definition at line 23 of file decoding_time_iterator.h.

Member Function Documentation

◆ AdvanceSample()

bool shaka::media::mp4::DecodingTimeIterator::AdvanceSample ( )

Advance to the next sample.

Returns
true if not past the last sample, false otherwise.

Definition at line 25 of file decoding_time_iterator.cc.

◆ Duration()

int64_t shaka::media::mp4::DecodingTimeIterator::Duration ( uint32_t  start_sample,
uint32_t  end_sample 
) const
Returns
Duration from start_sample to end_sample, both 1-based, inclusive.

Definition at line 41 of file decoding_time_iterator.cc.

◆ IsValid()

bool shaka::media::mp4::DecodingTimeIterator::IsValid ( ) const
Returns
true if the iterator is still valid, false if past the last sample.

Definition at line 36 of file decoding_time_iterator.cc.

◆ NumSamples()

uint32_t shaka::media::mp4::DecodingTimeIterator::NumSamples ( ) const
Returns
Total number of samples in the table.

Definition at line 62 of file decoding_time_iterator.cc.

◆ sample_delta()

uint32_t shaka::media::mp4::DecodingTimeIterator::sample_delta ( ) const
inline
Returns
Sample delta for current sample.

Definition at line 39 of file decoding_time_iterator.h.


The documentation for this class was generated from the following files: