| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Returns a human-readable string describing |*this|. For debugging & test | 106 // Returns a human-readable string describing |*this|. For debugging & test |
| 107 // output only. | 107 // output only. |
| 108 std::string AsHumanReadableString() const; | 108 std::string AsHumanReadableString() const; |
| 109 | 109 |
| 110 VideoCodec codec() const; | 110 VideoCodec codec() const; |
| 111 VideoCodecProfile profile() const; | 111 VideoCodecProfile profile() const; |
| 112 | 112 |
| 113 // Video format used to determine YUV buffer sizes. | 113 // Video format used to determine YUV buffer sizes. |
| 114 VideoFrame::Format format() const; | 114 VideoFrame::Format format() const; |
| 115 | 115 |
| 116 // The name of the format being used |
| 117 std::string FormatName() const; |
| 118 |
| 116 // Width and height of video frame immediately post-decode. Not all pixels | 119 // Width and height of video frame immediately post-decode. Not all pixels |
| 117 // in this region are valid. | 120 // in this region are valid. |
| 118 gfx::Size coded_size() const; | 121 gfx::Size coded_size() const; |
| 119 | 122 |
| 120 // Region of |coded_size_| that is visible. | 123 // Region of |coded_size_| that is visible. |
| 121 gfx::Rect visible_rect() const; | 124 gfx::Rect visible_rect() const; |
| 122 | 125 |
| 123 // Final visible width and height of a video frame with aspect ratio taken | 126 // Final visible width and height of a video frame with aspect ratio taken |
| 124 // into account. | 127 // into account. |
| 125 gfx::Size natural_size() const; | 128 gfx::Size natural_size() const; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 149 bool is_encrypted_; | 152 bool is_encrypted_; |
| 150 | 153 |
| 151 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 154 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
| 152 // generated copy constructor and assignment operator. Since the extra data is | 155 // generated copy constructor and assignment operator. Since the extra data is |
| 153 // typically small, the performance impact is minimal. | 156 // typically small, the performance impact is minimal. |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace media | 159 } // namespace media |
| 157 | 160 |
| 158 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 161 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| OLD | NEW |