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,
37 bool Parse(
const std::vector<uint8_t>& data);
39 size_t ComputeSize()
const;
41 uint16_t esid()
const {
return esid_; }
42 void set_esid(uint16_t esid) { esid_ = esid; }
44 ObjectType object_type()
const {
return object_type_; }
45 void set_object_type(ObjectType object_type) { object_type_ = object_type; }
47 const std::vector<uint8_t>& decoder_specific_info()
const {
48 return decoder_specific_info_;
50 void set_decoder_specific_info(
51 const std::vector<uint8_t>& decoder_specific_info) {
52 decoder_specific_info_ = decoder_specific_info;
57 return object_type_ == kISO_14496_3 || object_type_ == kISO_13818_7_AAC_LC;
63 kDecoderConfigDescrTag = 0x04,
64 kDecoderSpecificInfoTag = 0x05,
68 bool ParseDecoderConfigDescriptor(
BitReader* reader);
69 bool ParseDecoderSpecificInfo(
BitReader* reader);
72 ObjectType object_type_;
73 std::vector<uint8_t> decoder_specific_info_;
81 #endif // MEDIA_FORMATS_MP4_ES_DESCRIPTOR_H_