5 #ifndef MEDIA_FORMATS_MP4_ES_DESCRIPTOR_H_
6 #define MEDIA_FORMATS_MP4_ES_DESCRIPTOR_H_
13 namespace edash_packager {
26 kISO_13818_7_AAC_LC = 0x67,
38 bool Parse(
const std::vector<uint8_t>& data);
40 size_t ComputeSize()
const;
42 uint16_t esid()
const {
return esid_; }
43 void set_esid(uint16_t esid) { esid_ = esid; }
45 ObjectType object_type()
const {
return object_type_; }
46 void set_object_type(ObjectType object_type) { object_type_ = object_type; }
48 const std::vector<uint8_t>& decoder_specific_info()
const {
49 return decoder_specific_info_;
51 void set_decoder_specific_info(
52 const std::vector<uint8_t>& decoder_specific_info) {
53 decoder_specific_info_ = decoder_specific_info;
58 return object_type_ == kISO_14496_3 || object_type_ == kISO_13818_7_AAC_LC;
64 kDecoderConfigDescrTag = 0x04,
65 kDecoderSpecificInfoTag = 0x05,
69 bool ParseDecoderConfigDescriptor(
BitReader* reader);
70 bool ParseDecoderSpecificInfo(
BitReader* reader);
73 ObjectType object_type_;
74 std::vector<uint8_t> decoder_specific_info_;
82 #endif // MEDIA_FORMATS_MP4_ES_DESCRIPTOR_H_