Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: media/formats/mp4/hevc.h

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/formats/mp4/dolby_vision_unittest.cc ('k') | media/formats/mp4/hevc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/formats/mp4/dolby_vision_unittest.cc ('k') | media/formats/mp4/hevc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698