| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 private/pp_content_decryptor.idl modified Wed Oct 3 16:16:49 2012. */ | 6 /* From private/pp_content_decryptor.idl modified Mon Oct 8 12:50:54 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ | 8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ |
| 9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ | 9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @file | 15 * @file |
| 16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information | 16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 /** | 295 /** |
| 296 * Information needed by the client to track the decrypted frame. | 296 * Information needed by the client to track the decrypted frame. |
| 297 */ | 297 */ |
| 298 struct PP_DecryptTrackingInfo tracking_info; | 298 struct PP_DecryptTrackingInfo tracking_info; |
| 299 }; | 299 }; |
| 300 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptedFrameInfo, 56); | 300 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptedFrameInfo, 56); |
| 301 /** | 301 /** |
| 302 * @} | 302 * @} |
| 303 */ | 303 */ |
| 304 | 304 |
| 305 /** |
| 306 * @addtogroup Enums |
| 307 * @{ |
| 308 */ |
| 309 /** |
| 310 * <code>PP_VideoCodecProfile</code> contains video codec profile type |
| 311 * constants required for video decoder configuration. |
| 312 *. |
| 313 */ |
| 314 typedef enum { |
| 315 PP_VIDEOCODECPROFILE_UNKNOWN = 0, |
| 316 PP_VIDEOCODECPROFILE_VP8_MAIN = 1 |
| 317 } PP_VideoCodecProfile; |
| 318 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoCodecProfile, 4); |
| 319 /** |
| 320 * @} |
| 321 */ |
| 322 |
| 323 /** |
| 324 * @addtogroup Structs |
| 325 * @{ |
| 326 */ |
| 327 /** |
| 328 * <code>PP_VideoDecoderConfig</code> contains video decoder configuration |
| 329 * information required to initialize video decoders, and a request ID |
| 330 * that allows clients to associate a decoder initialization request with a |
| 331 * status response. Note: When <code>codec</code> requires extra data for |
| 332 * initialization, the data is sent as a <code>PP_Resource</code> carried |
| 333 * alongside <code>PP_VideoDecoderConfig</code>. |
| 334 */ |
| 335 struct PP_VideoDecoderConfig { |
| 336 /** |
| 337 * The video codec to initialize. |
| 338 */ |
| 339 PP_VideoCodec codec; |
| 340 /** |
| 341 * Profile to use when initializing the video codec. |
| 342 */ |
| 343 PP_VideoCodecProfile profile; |
| 344 /** |
| 345 * Output video format. |
| 346 */ |
| 347 PP_DecryptedFrameFormat format; |
| 348 /** |
| 349 * Width of decoded video frames, in pixels. |
| 350 */ |
| 351 int32_t width; |
| 352 /** |
| 353 * Height of decoded video frames, in pixels. |
| 354 */ |
| 355 int32_t height; |
| 356 /** |
| 357 * Client-specified identifier for the associated video decoder initialization |
| 358 * request. By using this value, the client can associate a decoder |
| 359 * initialization status response with an initialization request. |
| 360 */ |
| 361 uint32_t request_id; |
| 362 }; |
| 363 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig, 24); |
| 364 /** |
| 365 * @} |
| 366 */ |
| 367 |
| 305 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ | 368 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ |
| 306 | 369 |
| OLD | NEW |