| 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 Sat Oct 06 13:17:27 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 intialization request with a |
| 331 * status response. |
| 332 */ |
| 333 struct PP_VideoDecoderConfig { |
| 334 /** |
| 335 * The video codec to initialize. |
| 336 */ |
| 337 PP_VideoCodec codec; |
| 338 /** |
| 339 * Profile to use when intializing the video codec. |
| 340 */ |
| 341 PP_VideoCodecProfile profile; |
| 342 /** |
| 343 * Output video format. |
| 344 */ |
| 345 PP_DecryptedFrameFormat format; |
| 346 /** |
| 347 * Width of decoded video frames, in pixels. |
| 348 */ |
| 349 int32_t width; |
| 350 /** |
| 351 * Height of decoded video frames, in pixels. |
| 352 */ |
| 353 int32_t height; |
| 354 /** |
| 355 * Client-specified identifier for the associated video decoder intialization |
| 356 * request. By using this value, the client can associate a decoder |
| 357 * initialization status response with an intialization request. |
| 358 */ |
| 359 uint32_t request_id; |
| 360 }; |
| 361 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig, 24); |
| 362 /** |
| 363 * @} |
| 364 */ |
| 365 |
| 305 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ | 366 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ |
| 306 | 367 |
| OLD | NEW |