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 Jan 14 13:18:15 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_SupportedVideoProfile { |
| 140 /* The codec profile. */ |
| 141 PP_VideoProfile profile; |
| 142 /** |
| 143 * Dimensions of the maximum resolution of video frames, in pixels. |
| 144 */ |
| 145 struct PP_Size max_resolution; |
| 146 /** |
| 147 * The numerator of the maximum frame rate. |
| 148 */ |
| 149 uint32_t max_framerate_numerator; |
| 150 /** |
| 151 * The denominator of the maximum frame rate. |
| 152 */ |
| 153 uint32_t max_framerate_denominator; |
| 154 }; |
| 155 |
| 156 /** |
| 157 * Struct describing a bitstream buffer. |
| 158 */ |
| 159 struct PP_BitstreamBuffer { |
| 160 /** |
| 161 * The size, in bytes, of the bitstream data. |
| 162 */ |
| 163 uint32_t size; |
| 164 /** |
| 165 * The base address of the bitstream data. |
| 166 */ |
| 167 void* buffer; |
| 168 /** |
| 169 * Whether the buffer represents a key frame. |
| 170 */ |
| 171 PP_Bool key_frame; |
| 172 }; |
133 /** | 173 /** |
134 * @} | 174 * @} |
135 */ | 175 */ |
136 | 176 |
137 #endif /* PPAPI_C_PP_CODECS_H_ */ | 177 #endif /* PPAPI_C_PP_CODECS_H_ */ |
138 | 178 |
OLD | NEW |