OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_VIDEO_DECODER_CONFIG_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool IsValidConfig() const; | 102 bool IsValidConfig() const; |
103 | 103 |
104 // Returns true if all fields in |config| match this config. | 104 // Returns true if all fields in |config| match this config. |
105 // Note: The contents of |extra_data_| are compared not the raw pointers. | 105 // Note: The contents of |extra_data_| are compared not the raw pointers. |
106 bool Matches(const VideoDecoderConfig& config) const; | 106 bool Matches(const VideoDecoderConfig& config) const; |
107 | 107 |
108 // Returns a human-readable string describing |*this|. For debugging & test | 108 // Returns a human-readable string describing |*this|. For debugging & test |
109 // output only. | 109 // output only. |
110 std::string AsHumanReadableString() const; | 110 std::string AsHumanReadableString() const; |
111 | 111 |
| 112 std::string GetHumanReadableCodecName() const; |
| 113 |
112 VideoCodec codec() const; | 114 VideoCodec codec() const; |
113 VideoCodecProfile profile() const; | 115 VideoCodecProfile profile() const; |
114 | 116 |
115 // Video format used to determine YUV buffer sizes. | 117 // Video format used to determine YUV buffer sizes. |
116 VideoFrame::Format format() const; | 118 VideoFrame::Format format() const; |
117 | 119 |
118 // Width and height of video frame immediately post-decode. Not all pixels | 120 // Width and height of video frame immediately post-decode. Not all pixels |
119 // in this region are valid. | 121 // in this region are valid. |
120 gfx::Size coded_size() const; | 122 gfx::Size coded_size() const; |
121 | 123 |
(...skipping 29 matching lines...) Expand all Loading... |
151 bool is_encrypted_; | 153 bool is_encrypted_; |
152 | 154 |
153 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 155 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
154 // generated copy constructor and assignment operator. Since the extra data is | 156 // generated copy constructor and assignment operator. Since the extra data is |
155 // typically small, the performance impact is minimal. | 157 // typically small, the performance impact is minimal. |
156 }; | 158 }; |
157 | 159 |
158 } // namespace media | 160 } // namespace media |
159 | 161 |
160 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 162 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
OLD | NEW |