OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 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 | 5 |
6 /** | 6 /** |
7 * Video profiles. | 7 * Video profiles. |
8 */ | 8 */ |
9 enum PP_VideoProfile { | 9 enum PP_VideoProfile { |
10 PP_VIDEOPROFILE_H264BASELINE = 0, | 10 PP_VIDEOPROFILE_H264BASELINE = 0, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * | 108 * |
109 * The pixel format of the texture is GL_RGBA. | 109 * The pixel format of the texture is GL_RGBA. |
110 */ | 110 */ |
111 uint32_t texture_target; | 111 uint32_t texture_target; |
112 | 112 |
113 /** | 113 /** |
114 * Dimensions of the texture holding the decoded picture. | 114 * Dimensions of the texture holding the decoded picture. |
115 */ | 115 */ |
116 PP_Size texture_size; | 116 PP_Size texture_size; |
117 }; | 117 }; |
| 118 |
| 119 /** |
| 120 * Supported video profile information. See the PPB_VideoEncoder function |
| 121 * GetSupportedProfiles() for more details. |
| 122 */ |
| 123 struct PP_SupportedVideoProfile { |
| 124 // The codec profile. |
| 125 PP_VideoProfile profile; |
| 126 |
| 127 /** |
| 128 * Dimensions of the maximum resolution of video frames, in pixels. |
| 129 */ |
| 130 PP_Size max_resolution; |
| 131 |
| 132 /** |
| 133 * The numerator of the maximum frame rate. |
| 134 */ |
| 135 uint32_t max_framerate_numerator; |
| 136 |
| 137 /** |
| 138 * The denominator of the maximum frame rate. |
| 139 */ |
| 140 uint32_t max_framerate_denominator; |
| 141 }; |
| 142 |
| 143 /** |
| 144 * Struct describing a bitstream buffer. |
| 145 */ |
| 146 struct PP_BitstreamBuffer { |
| 147 /** |
| 148 * The size, in bytes, of the bitstream data. |
| 149 */ |
| 150 uint32_t size; |
| 151 |
| 152 /** |
| 153 * The base address of the bitstream data. |
| 154 */ |
| 155 mem_t buffer; |
| 156 |
| 157 /** |
| 158 * Whether the buffer represents a key frame. |
| 159 */ |
| 160 PP_Bool key_frame; |
| 161 }; |
| 162 |
OLD | NEW |