DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | List of all members
shaka::media::VPCodecConfiguration Class Reference

Class for parsing or writing VP codec configuration data. More...

#include <vp_codec_configuration.h>

Public Types

enum  ColorSpace {
  COLOR_SPACE_UNSPECIFIED = 0, COLOR_SPACE_BT_601 = 1, COLOR_SPACE_BT_709 = 2, COLOR_SPACE_SMPTE_170 = 3,
  COLOR_SPACE_SMPTE_240 = 4, COLOR_SPACE_BT_2020_NON_CONSTANT_LUMINANCE = 5, COLOR_SPACE_BT_2020_CONSTANT_LUMINANCE = 6, COLOR_SPACE_SRGB = 7
}
 
enum  ChromaSubsampling {
  CHROMA_420_VERTICAL = 0, CHROMA_420_COLLOCATED_WITH_LUMA = 1, CHROMA_422 = 2, CHROMA_444 = 3,
  CHROMA_440 = 4
}
 

Public Member Functions

 VPCodecConfiguration (uint8_t profile, uint8_t level, uint8_t bit_depth, uint8_t color_space, uint8_t chroma_subsampling, uint8_t transfer_function, bool video_full_range_flag, const std::vector< uint8_t > &codec_initialization_data)
 
bool Parse (const std::vector< uint8_t > &data)
 
void Write (std::vector< uint8_t > *data) const
 
std::string GetCodecString (VideoCodec codec) const
 
void set_profile (uint8_t profile)
 
void set_level (uint8_t level)
 
void set_bit_depth (uint8_t bit_depth)
 
void set_color_space (uint8_t color_space)
 
void set_chroma_subsampling (uint8_t chroma_subsampling)
 
void set_transfer_function (uint8_t transfer_function)
 
void set_video_full_range_flag (bool video_full_range_flag)
 
uint8_t profile () const
 
uint8_t level () const
 
uint8_t bit_depth () const
 
uint8_t color_space () const
 
uint8_t chroma_subsampling () const
 
uint8_t transfer_function () const
 
bool video_full_range_flag () const
 

Detailed Description

Class for parsing or writing VP codec configuration data.

Definition at line 21 of file vp_codec_configuration.h.

Member Function Documentation

std::string shaka::media::VPCodecConfiguration::GetCodecString ( VideoCodec  codec) const
Returns
The codec string.

Definition at line 99 of file vp_codec_configuration.cc.

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

Parses input to extract VP codec configuration data.

Returns
false if there is parsing errors.

Definition at line 65 of file vp_codec_configuration.cc.

void shaka::media::VPCodecConfiguration::Write ( std::vector< uint8_t > *  data) const
Parameters
datashould not be null. Writes VP codec configuration data to buffer.

Definition at line 84 of file vp_codec_configuration.cc.


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