Chromium Code Reviews| Index: ppapi/api/private/pp_content_decryptor.idl |
| diff --git a/ppapi/api/private/pp_content_decryptor.idl b/ppapi/api/private/pp_content_decryptor.idl |
| index 248b7356b2d29946e6c7b48f062ae3064d0d44f1..fc0cf85f5da753d6e82d6834130d12a9a9eb56fa 100644 |
| --- a/ppapi/api/private/pp_content_decryptor.idl |
| +++ b/ppapi/api/private/pp_content_decryptor.idl |
| @@ -260,3 +260,55 @@ struct PP_DecryptedFrameInfo { |
| */ |
| PP_DecryptTrackingInfo tracking_info; |
| }; |
| + |
| +/** |
| + * <code>PP_VideoCodecProfile</code> contains video codec profile type |
| + * constants required for video decoder configuration. |
| + *. |
| + */ |
| +[assert_size(4)] |
| +enum PP_VideoCodecProfile { |
| + PP_VIDEOCODECPROFILE_UNKNOWN = 0, |
|
Ami GONE FROM CHROMIUM
2012/10/08 18:35:16
Any reason not to use PP_VideoDecoder_Profile?
Tom Finegan
2012/10/08 23:23:27
These types are based on those defined in media/vi
Ami GONE FROM CHROMIUM
2012/10/09 07:21:12
So is the enum I pointed at (well, they grew toget
|
| + PP_VIDEOCODECPROFILE_VP8_MAIN = 1 |
| +}; |
| + |
| +/** |
| + * <code>PP_VideoDecoderConfig</code> contains video decoder configuration |
| + * information required to initialize video decoders, and a request ID |
| + * that allows clients to associate a decoder intialization request with a |
|
Ami GONE FROM CHROMIUM
2012/10/08 18:35:16
typo: intialization
(here and a surprising number
Tom Finegan
2012/10/08 23:23:27
Thanks, fixed.
|
| + * status response. |
|
xhwang
2012/10/08 17:16:13
Add a comment here that the extra data is sent sep
Tom Finegan
2012/10/08 23:23:27
Done.
|
| + */ |
| +[assert_size(24)] |
| +struct PP_VideoDecoderConfig { |
| + /** |
| + * The video codec to initialize. |
| + */ |
| + PP_VideoCodec codec; |
| + |
| + /** |
| + * Profile to use when intializing the video codec. |
| + */ |
| + PP_VideoCodecProfile profile; |
| + |
| + /** |
| + * Output video format. |
| + */ |
| + PP_DecryptedFrameFormat format; |
| + |
| + /** |
| + * Width of decoded video frames, in pixels. |
| + */ |
| + int32_t width; |
| + |
| + /** |
| + * Height of decoded video frames, in pixels. |
| + */ |
| + int32_t height; |
| + |
| + /** |
| + * Client-specified identifier for the associated video decoder intialization |
|
Ami GONE FROM CHROMIUM
2012/10/08 18:35:16
I don't follow why this needs an extra id, over re
xhwang
2012/10/08 19:00:35
Originally request ID was added in Decrypt()/Deliv
|
| + * request. By using this value, the client can associate a decoder |
| + * initialization status response with an intialization request. |
| + */ |
| + uint32_t request_id; |
| +}; |