| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FORMATS_MP4_HEVC_H_ | 5 #ifndef MEDIA_FORMATS_MP4_HEVC_H_ |
| 6 #define MEDIA_FORMATS_MP4_HEVC_H_ | 6 #define MEDIA_FORMATS_MP4_HEVC_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 HVCCNALArray(const HVCCNALArray& other); | 57 HVCCNALArray(const HVCCNALArray& other); |
| 58 ~HVCCNALArray(); | 58 ~HVCCNALArray(); |
| 59 uint8_t first_byte; | 59 uint8_t first_byte; |
| 60 std::vector<HVCCNALUnit> units; | 60 std::vector<HVCCNALUnit> units; |
| 61 }; | 61 }; |
| 62 std::vector<HVCCNALArray> arrays; | 62 std::vector<HVCCNALArray> arrays; |
| 63 | 63 |
| 64 VideoCodecProfile GetVideoProfile() const; | 64 VideoCodecProfile GetVideoProfile() const; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 bool ParseInternal(BufferReader* reader, | 67 bool ParseInternal(BufferReader* reader, MediaLog* media_log); |
| 68 const scoped_refptr<MediaLog>& media_log); | |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 class MEDIA_EXPORT HEVC { | 70 class MEDIA_EXPORT HEVC { |
| 72 public: | 71 public: |
| 73 static bool ConvertConfigToAnnexB( | 72 static bool ConvertConfigToAnnexB( |
| 74 const HEVCDecoderConfigurationRecord& hevc_config, | 73 const HEVCDecoderConfigurationRecord& hevc_config, |
| 75 std::vector<uint8_t>* buffer); | 74 std::vector<uint8_t>* buffer); |
| 76 | 75 |
| 77 static bool InsertParamSetsAnnexB( | 76 static bool InsertParamSetsAnnexB( |
| 78 const HEVCDecoderConfigurationRecord& hevc_config, | 77 const HEVCDecoderConfigurationRecord& hevc_config, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 105 | 104 |
| 106 private: | 105 private: |
| 107 ~HEVCBitstreamConverter() override; | 106 ~HEVCBitstreamConverter() override; |
| 108 std::unique_ptr<HEVCDecoderConfigurationRecord> hevc_config_; | 107 std::unique_ptr<HEVCDecoderConfigurationRecord> hevc_config_; |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace mp4 | 110 } // namespace mp4 |
| 112 } // namespace media | 111 } // namespace media |
| 113 | 112 |
| 114 #endif // MEDIA_FORMATS_MP4_HEVC_H_ | 113 #endif // MEDIA_FORMATS_MP4_HEVC_H_ |
| OLD | NEW |