Shaka Packager SDK
Public Member Functions | Protected Member Functions | List of all members
shaka::media::DecoderConfigurationRecord Class Referenceabstract
Inheritance diagram for shaka::media::DecoderConfigurationRecord:
shaka::media::AVCDecoderConfigurationRecord shaka::media::HEVCDecoderConfigurationRecord

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
 
uint8_t transfer_characteristics () const
 
uint8_t color_primaries () const
 
uint8_t matrix_coefficients () 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.
 
void set_transfer_characteristics (uint8_t transfer_characteristics)
 Sets the transfer characteristics.
 
void set_color_primaries (uint8_t color_primaries)
 Sets the colour primaries.
 
void set_matrix_coefficients (uint8_t matrix_coefficients)
 Sets the matrix coeffs.
 

Detailed Description

Definition at line 22 of file decoder_configuration_record.h.

Member Function Documentation

◆ color_primaries()

uint8_t shaka::media::DecoderConfigurationRecord::color_primaries ( ) const
inline
Returns
Colour Primaries of the config.

Definition at line 52 of file decoder_configuration_record.h.

◆ data()

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

Definition at line 64 of file decoder_configuration_record.h.

◆ data_size()

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

Definition at line 67 of file decoder_configuration_record.h.

◆ matrix_coefficients()

uint8_t shaka::media::DecoderConfigurationRecord::matrix_coefficients ( ) const
inline
Returns
Matrix Coeffs of the config.

Definition at line 55 of file decoder_configuration_record.h.

◆ nalu()

const Nalu& shaka::media::DecoderConfigurationRecord::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 46 of file decoder_configuration_record.h.

◆ nalu_count()

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

Definition at line 42 of file decoder_configuration_record.h.

◆ nalu_length_size()

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

Definition at line 39 of file decoder_configuration_record.h.

◆ Parse() [1/2]

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

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

Returns
false if there are parsing errors.

Definition at line 29 of file decoder_configuration_record.h.

◆ Parse() [2/2]

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

Parses input to extract decoder configuration record. 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_record.cc.

◆ transfer_characteristics()

uint8_t shaka::media::DecoderConfigurationRecord::transfer_characteristics ( ) const
inline
Returns
Transfer characteristics of the config.

Definition at line 49 of file decoder_configuration_record.h.


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