DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
hevc_decoder_configuration.h
1 // Copyright 2015 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 #ifndef MEDIA_FILTERS_HEVC_DECODER_CONFIGURATION_H_
8 #define MEDIA_FILTERS_HEVC_DECODER_CONFIGURATION_H_
9 
10 #include <stdint.h>
11 #include <string>
12 #include <vector>
13 
14 #include "packager/base/macros.h"
15 #include "packager/media/base/video_stream_info.h"
16 
17 namespace edash_packager {
18 namespace media {
19 
22  public:
25 
28  bool Parse(const std::vector<uint8_t>& data);
29 
31  std::string GetCodecString(VideoCodec codec) const;
32 
34  uint8_t length_size() { return length_size_; }
35 
36  private:
37  uint8_t version_;
38  uint8_t general_profile_space_;
39  bool general_tier_flag_;
40  uint8_t general_profile_idc_;
41  uint32_t general_profile_compatibility_flags_;
42  std::vector<uint8_t> general_constraint_indicator_flags_;
43  uint8_t general_level_idc_;
44  uint8_t length_size_;
45 
46  DISALLOW_COPY_AND_ASSIGN(HEVCDecoderConfiguration);
47 };
48 
49 } // namespace media
50 } // namespace edash_packager
51 
52 #endif // MEDIA_FILTERS_HEVC_DECODER_CONFIGURATION_H_
Class for parsing HEVC decoder configuration.
bool Parse(const std::vector< uint8_t > &data)