DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
decoder_configuration.cc
1 // Copyright 2016 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #include "packager/media/filters/decoder_configuration.h"
8 
9 namespace shaka {
10 namespace media {
11 
12 DecoderConfiguration::DecoderConfiguration() : nalu_length_size_(0) {}
13 DecoderConfiguration::~DecoderConfiguration() {}
14 
15 bool DecoderConfiguration::Parse(const uint8_t* data, size_t data_size) {
16  data_.assign(data, data + data_size);
17  nalu_.clear();
18  return ParseInternal();
19 }
20 
22  nalu_.push_back(nalu);
23 }
24 
25 } // namespace media
26 } // namespace shaka
bool Parse(const std::vector< uint8_t > &data)
void AddNalu(const Nalu &nalu)
Adds the given Nalu to the configuration.