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

Class for parsing AVC decoder configuration record. More...

#include <avc_decoder_configuration_record.h>

Inheritance diagram for shaka::media::AVCDecoderConfigurationRecord:
shaka::media::DecoderConfigurationRecord

Public Member Functions

std::string GetCodecString (FourCC codec_fourcc) const
 
uint8_t version () const
 
uint8_t profile_indication () const
 
uint8_t profile_compatibility () const
 
uint8_t avc_level () const
 
uint32_t coded_width () const
 
uint32_t coded_height () const
 
uint32_t pixel_width () const
 
uint32_t pixel_height () const
 
uint8_t chroma_format () const
 
uint8_t bit_depth_luma_minus8 () const
 
uint8_t bit_depth_chroma_minus8 () const
 
- Public Member Functions inherited from shaka::media::DecoderConfigurationRecord
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
 

Static Public Member Functions

static std::string GetCodecString (FourCC codec_fourcc, uint8_t profile_indication, uint8_t profile_compatibility, uint8_t avc_level)
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::media::DecoderConfigurationRecord
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

Class for parsing AVC decoder configuration record.

Definition at line 22 of file avc_decoder_configuration_record.h.

Member Function Documentation

◆ GetCodecString() [1/2]

std::string shaka::media::AVCDecoderConfigurationRecord::GetCodecString ( FourCC  codec_fourcc) const
Returns
The codec string.

Definition at line 115 of file avc_decoder_configuration_record.cc.

◆ GetCodecString() [2/2]

std::string shaka::media::AVCDecoderConfigurationRecord::GetCodecString ( FourCC  codec_fourcc,
uint8_t  profile_indication,
uint8_t  profile_compatibility,
uint8_t  avc_level 
)
static

Static version of GetCodecString.

Returns
The codec string.

Definition at line 121 of file avc_decoder_configuration_record.cc.


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