7 #ifndef MEDIA_FILTERS_DECODER_CONFIGURATION_H_
8 #define MEDIA_FILTERS_DECODER_CONFIGURATION_H_
12 #include "packager/base/logging.h"
13 #include "packager/base/macros.h"
14 #include "packager/media/filters/nalu_reader.h"
28 return Parse(data.data(), data.size());
44 const Nalu&
nalu(
size_t i)
const {
return nalu_[i]; }
53 const uint8_t*
data()
const {
return data_.data(); }
60 DCHECK(nalu_length_size <= 2 || nalu_length_size == 4);
66 virtual bool ParseInternal() = 0;
70 std::vector<uint8_t> data_;
71 std::vector<Nalu> nalu_;
72 uint8_t nalu_length_size_;
80 #endif // MEDIA_FILTERS_DECODER_CONFIGURATION_H_