7 #ifndef PACKAGER_MEDIA_CODECS_AVC_DECODER_CONFIGURATION_RECORD_H_
8 #define PACKAGER_MEDIA_CODECS_AVC_DECODER_CONFIGURATION_RECORD_H_
14 #include <packager/macros/classes.h>
15 #include <packager/media/base/fourccs.h>
16 #include <packager/media/codecs/decoder_configuration_record.h>
30 uint8_t version()
const {
return version_; }
31 uint8_t profile_indication()
const {
return profile_indication_; }
32 uint8_t profile_compatibility()
const {
return profile_compatibility_; }
33 uint8_t avc_level()
const {
return avc_level_; }
34 uint32_t coded_width()
const {
return coded_width_; }
35 uint32_t coded_height()
const {
return coded_height_; }
36 uint32_t pixel_width()
const {
return pixel_width_; }
37 uint32_t pixel_height()
const {
return pixel_height_; }
38 uint8_t chroma_format()
const {
return chroma_format_; }
39 uint8_t bit_depth_luma_minus8()
const {
return bit_depth_luma_minus8_; }
40 uint8_t bit_depth_chroma_minus8()
const {
return bit_depth_chroma_minus8_; }
45 uint8_t profile_indication,
46 uint8_t profile_compatibility,
50 bool ParseInternal()
override;
53 uint8_t profile_indication_ = 0;
54 uint8_t profile_compatibility_ = 0;
55 uint8_t avc_level_ = 0;
58 uint32_t coded_width_ = 0;
59 uint32_t coded_height_ = 0;
60 uint32_t pixel_width_ = 0;
61 uint32_t pixel_height_ = 0;
65 uint8_t chroma_format_ = 0;
66 uint8_t bit_depth_luma_minus8_ = 0;
67 uint8_t bit_depth_chroma_minus8_ = 0;
All the methods that are virtual are virtual for mocking.