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 /* From pp_codecs.idl modified Wed Nov 5 13:38:52 2014. */ | 6 /* From pp_codecs.idl modified Wed Feb 4 05:24:21 2015. */ |
7 | 7 |
8 #ifndef PPAPI_C_PP_CODECS_H_ | 8 #ifndef PPAPI_C_PP_CODECS_H_ |
9 #define PPAPI_C_PP_CODECS_H_ | 9 #define PPAPI_C_PP_CODECS_H_ |
10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" |
11 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
12 #include "ppapi/c/pp_point.h" | 13 #include "ppapi/c/pp_point.h" |
13 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
14 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
15 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
16 | 17 |
17 /** | 18 /** |
18 * @file | 19 * @file |
19 * Video profiles. | 20 * Video profiles. |
20 */ | 21 */ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 * GL_TEXTURE_EXTERNAL_OES | 124 * GL_TEXTURE_EXTERNAL_OES |
124 * | 125 * |
125 * The pixel format of the texture is GL_RGBA. | 126 * The pixel format of the texture is GL_RGBA. |
126 */ | 127 */ |
127 uint32_t texture_target; | 128 uint32_t texture_target; |
128 /** | 129 /** |
129 * Dimensions of the texture holding the decoded picture. | 130 * Dimensions of the texture holding the decoded picture. |
130 */ | 131 */ |
131 struct PP_Size texture_size; | 132 struct PP_Size texture_size; |
132 }; | 133 }; |
| 134 |
| 135 /** |
| 136 * Supported video profile information. See the PPB_VideoEncoder function |
| 137 * GetSupportedProfiles() for more details. |
| 138 */ |
| 139 struct PP_VideoProfileDescription { |
| 140 /** |
| 141 * The codec profile. |
| 142 */ |
| 143 PP_VideoProfile profile; |
| 144 /** |
| 145 * Dimensions of the maximum resolution of video frames, in pixels. |
| 146 */ |
| 147 struct PP_Size max_resolution; |
| 148 /** |
| 149 * The numerator of the maximum frame rate. |
| 150 */ |
| 151 uint32_t max_framerate_numerator; |
| 152 /** |
| 153 * The denominator of the maximum frame rate. |
| 154 */ |
| 155 uint32_t max_framerate_denominator; |
| 156 /** |
| 157 * A value indicating if the profile is available in hardware, software, or |
| 158 * both. |
| 159 */ |
| 160 PP_HardwareAcceleration acceleration; |
| 161 }; |
| 162 |
| 163 /** |
| 164 * Struct describing a bitstream buffer. |
| 165 */ |
| 166 struct PP_BitstreamBuffer { |
| 167 /** |
| 168 * The size, in bytes, of the bitstream data. |
| 169 */ |
| 170 uint32_t size; |
| 171 /** |
| 172 * The base address of the bitstream data. |
| 173 */ |
| 174 void* buffer; |
| 175 /** |
| 176 * Whether the buffer represents a key frame. |
| 177 */ |
| 178 PP_Bool key_frame; |
| 179 }; |
133 /** | 180 /** |
134 * @} | 181 * @} |
135 */ | 182 */ |
136 | 183 |
137 #endif /* PPAPI_C_PP_CODECS_H_ */ | 184 #endif /* PPAPI_C_PP_CODECS_H_ */ |
138 | 185 |
OLD | NEW |