DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions | List of all members
shaka::media::DecoderConfiguration Class Referenceabstract
Inheritance diagram for shaka::media::DecoderConfiguration:
shaka::media::AVCDecoderConfiguration shaka::media::HEVCDecoderConfiguration

Public Member Functions

bool Parse (const std::vector< uint8_t > &data)
 
bool Parse (const uint8_t *data, size_t data_size)
 
uint8_t nalu_length_size () const
 
size_t nalu_count () const
 
const Nalunalu (size_t i) const
 

Protected Member Functions

void AddNalu (const Nalu &nalu)
 Adds the given Nalu to the configuration.
 
const uint8_t * data () const
 
size_t data_size () const
 
void set_nalu_length_size (uint8_t nalu_length_size)
 Sets the size of the NAL unit length field.
 

Detailed Description

Definition at line 20 of file decoder_configuration.h.

Member Function Documentation

const uint8_t* shaka::media::DecoderConfiguration::data ( ) const
inlineprotected
Returns
a pointer to the copy of the data.

Definition at line 53 of file decoder_configuration.h.

size_t shaka::media::DecoderConfiguration::data_size ( ) const
inlineprotected
Returns
the size of the copy of the data.

Definition at line 56 of file decoder_configuration.h.

const Nalu& shaka::media::DecoderConfiguration::nalu ( size_t  i) const
inline
Returns
The nalu at the given index. The Nalu is only valid for the lifetime of this object, even if copied.

Definition at line 44 of file decoder_configuration.h.

size_t shaka::media::DecoderConfiguration::nalu_count ( ) const
inline
Returns
The number of Nalu in the configuration.

Definition at line 40 of file decoder_configuration.h.

uint8_t shaka::media::DecoderConfiguration::nalu_length_size ( ) const
inline
Returns
The size of the NAL unit length field.

Definition at line 37 of file decoder_configuration.h.

bool shaka::media::DecoderConfiguration::Parse ( const std::vector< uint8_t > &  data)
inline

Parses input to extract decoder configuration data. This will make and store a copy of the data for Nalu access.

Returns
false if there are parsing errors.

Definition at line 27 of file decoder_configuration.h.

bool shaka::media::DecoderConfiguration::Parse ( const uint8_t *  data,
size_t  data_size 
)

Parses input to extract decoder configuration data. This will make and store a copy of the data for Nalu access.

Returns
false if there are parsing errors.

Definition at line 15 of file decoder_configuration.cc.


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