| 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 Fri Jan 9 16:30:13 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_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_point.h" | 12 #include "ppapi/c/pp_point.h" |
| 13 #include "ppapi/c/pp_rect.h" | 13 #include "ppapi/c/pp_rect.h" |
| 14 #include "ppapi/c/pp_size.h" | 14 #include "ppapi/c/pp_size.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 | 16 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 * GL_TEXTURE_EXTERNAL_OES | 123 * GL_TEXTURE_EXTERNAL_OES |
| 124 * | 124 * |
| 125 * The pixel format of the texture is GL_RGBA. | 125 * The pixel format of the texture is GL_RGBA. |
| 126 */ | 126 */ |
| 127 uint32_t texture_target; | 127 uint32_t texture_target; |
| 128 /** | 128 /** |
| 129 * Dimensions of the texture holding the decoded picture. | 129 * Dimensions of the texture holding the decoded picture. |
| 130 */ | 130 */ |
| 131 struct PP_Size texture_size; | 131 struct PP_Size texture_size; |
| 132 }; | 132 }; |
| 133 |
| 134 /** |
| 135 * Supported video profile information. See the PPB_VideoEncoder function |
| 136 * GetSupportedProfiles() for more details. |
| 137 */ |
| 138 struct PP_SupportedVideoProfile { |
| 139 /* The codec profile. */ |
| 140 PP_VideoProfile profile; |
| 141 /** |
| 142 * Dimensions of the maximum resolution of video frames, in pixels. |
| 143 */ |
| 144 struct PP_Size max_resolution; |
| 145 /** |
| 146 * The numerator of the maximum frame rate. |
| 147 */ |
| 148 uint32_t max_framerate_numerator; |
| 149 /** |
| 150 * The denominator of the maximum frame rate. |
| 151 */ |
| 152 uint32_t max_framerate_denominator; |
| 153 }; |
| 154 |
| 155 /** |
| 156 * Struct describing a bitstream buffer. |
| 157 */ |
| 158 struct PP_BitstreamBuffer { |
| 159 /** |
| 160 * The size, in bytes, of the bitstream buffer. |
| 161 */ |
| 162 uint32_t size; |
| 163 /** |
| 164 * The base address of the bitstream buffer. |
| 165 */ |
| 166 void* buffer; |
| 167 }; |
| 133 /** | 168 /** |
| 134 * @} | 169 * @} |
| 135 */ | 170 */ |
| 136 | 171 |
| 137 #endif /* PPAPI_C_PP_CODECS_H_ */ | 172 #endif /* PPAPI_C_PP_CODECS_H_ */ |
| 138 | 173 |
| OLD | NEW |