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 Fri Apr 17 10:55:27 2015. */ | 6 /* From pp_codecs.idl modified Thu May 21 15:11:01 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_bool.h" |
12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
13 #include "ppapi/c/pp_point.h" | 13 #include "ppapi/c/pp_point.h" |
14 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
15 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
(...skipping 19 matching lines...) Expand all Loading... |
36 PP_VIDEOPROFILE_H264SCALABLEBASELINE = 7, | 36 PP_VIDEOPROFILE_H264SCALABLEBASELINE = 7, |
37 PP_VIDEOPROFILE_H264SCALABLEHIGH = 8, | 37 PP_VIDEOPROFILE_H264SCALABLEHIGH = 8, |
38 PP_VIDEOPROFILE_H264STEREOHIGH = 9, | 38 PP_VIDEOPROFILE_H264STEREOHIGH = 9, |
39 PP_VIDEOPROFILE_H264MULTIVIEWHIGH = 10, | 39 PP_VIDEOPROFILE_H264MULTIVIEWHIGH = 10, |
40 PP_VIDEOPROFILE_VP8_ANY = 11, | 40 PP_VIDEOPROFILE_VP8_ANY = 11, |
41 PP_VIDEOPROFILE_VP9_ANY = 12, | 41 PP_VIDEOPROFILE_VP9_ANY = 12, |
42 PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY | 42 PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY |
43 } PP_VideoProfile; | 43 } PP_VideoProfile; |
44 | 44 |
45 /** | 45 /** |
| 46 * Audio profiles. |
| 47 */ |
| 48 typedef enum { |
| 49 PP_AUDIOPROFILE_OPUS = 0, |
| 50 PP_AUDIOPROFILE_SPEEX = 1, |
| 51 PP_AUDIOPROFILE_MAX = PP_AUDIOPROFILE_SPEEX |
| 52 } PP_AudioProfile; |
| 53 |
| 54 /** |
46 * Hardware acceleration options. | 55 * Hardware acceleration options. |
47 */ | 56 */ |
48 typedef enum { | 57 typedef enum { |
49 /** Create a hardware accelerated resource only. */ | 58 /** Create a hardware accelerated resource only. */ |
50 PP_HARDWAREACCELERATION_ONLY = 0, | 59 PP_HARDWAREACCELERATION_ONLY = 0, |
51 /** | 60 /** |
52 * Create a hardware accelerated resource if possible. Otherwise, fall back | 61 * Create a hardware accelerated resource if possible. Otherwise, fall back |
53 * to the software implementation. | 62 * to the software implementation. |
54 */ | 63 */ |
55 PP_HARDWAREACCELERATION_WITHFALLBACK = 1, | 64 PP_HARDWAREACCELERATION_WITHFALLBACK = 1, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 */ | 190 */ |
182 uint32_t max_framerate_denominator; | 191 uint32_t max_framerate_denominator; |
183 /** | 192 /** |
184 * A value indicating if the profile is available in hardware, software, or | 193 * A value indicating if the profile is available in hardware, software, or |
185 * both. | 194 * both. |
186 */ | 195 */ |
187 PP_HardwareAcceleration acceleration; | 196 PP_HardwareAcceleration acceleration; |
188 }; | 197 }; |
189 | 198 |
190 /** | 199 /** |
| 200 * Supported audio profile information. See the PPB_AudioEncoder function |
| 201 * GetSupportedProfiles() for more details. |
| 202 */ |
| 203 struct PP_AudioProfileDescription { |
| 204 /** |
| 205 * The codec profile. |
| 206 */ |
| 207 PP_AudioProfile profile; |
| 208 /** |
| 209 * Maximum number of channels that can be encoded. |
| 210 */ |
| 211 uint32_t max_channels; |
| 212 /** |
| 213 * Sample size. |
| 214 */ |
| 215 uint32_t sample_size; |
| 216 /** |
| 217 * Sampling rate that can be encoded |
| 218 */ |
| 219 uint32_t sample_rate; |
| 220 /** |
| 221 * Whether the profile is hardware accelerated. |
| 222 */ |
| 223 PP_Bool hardware_accelerated; |
| 224 }; |
| 225 |
| 226 /** |
191 * Struct describing a bitstream buffer. | 227 * Struct describing a bitstream buffer. |
192 */ | 228 */ |
193 struct PP_BitstreamBuffer { | 229 struct PP_BitstreamBuffer { |
194 /** | 230 /** |
195 * The size, in bytes, of the bitstream data. | 231 * The size, in bytes, of the bitstream data. |
196 */ | 232 */ |
197 uint32_t size; | 233 uint32_t size; |
198 /** | 234 /** |
199 * The base address of the bitstream data. | 235 * The base address of the bitstream data. |
200 */ | 236 */ |
201 void* buffer; | 237 void* buffer; |
202 /** | 238 /** |
203 * Whether the buffer represents a key frame. | 239 * Whether the buffer represents a key frame. |
204 */ | 240 */ |
205 PP_Bool key_frame; | 241 PP_Bool key_frame; |
206 }; | 242 }; |
| 243 |
| 244 /** |
| 245 * Struct describing an audio bitstream buffer. |
| 246 */ |
| 247 struct PP_AudioBitstreamBuffer { |
| 248 /** |
| 249 * The size, in bytes, of the bitstream data. |
| 250 */ |
| 251 uint32_t size; |
| 252 /** |
| 253 * The base address of the bitstream data. |
| 254 */ |
| 255 void* buffer; |
| 256 }; |
207 /** | 257 /** |
208 * @} | 258 * @} |
209 */ | 259 */ |
210 | 260 |
211 #endif /* PPAPI_C_PP_CODECS_H_ */ | 261 #endif /* PPAPI_C_PP_CODECS_H_ */ |
212 | 262 |
OLD | NEW |