| 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..6627dfa97bf1b2e4b762dbe34c4bf5a6e2517edd 100644
|
| --- a/ppapi/api/private/pp_content_decryptor.idl
|
| +++ b/ppapi/api/private/pp_content_decryptor.idl
|
| @@ -260,3 +260,57 @@ 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,
|
| + 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 initialization request with a
|
| + * status response. Note: When <code>codec</code> requires extra data for
|
| + * initialization, the data is sent as a <code>PP_Resource</code> carried
|
| + * alongside <code>PP_VideoDecoderConfig</code>.
|
| + */
|
| +[assert_size(24)]
|
| +struct PP_VideoDecoderConfig {
|
| + /**
|
| + * The video codec to initialize.
|
| + */
|
| + PP_VideoCodec codec;
|
| +
|
| + /**
|
| + * Profile to use when initializing 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 initialization
|
| + * request. By using this value, the client can associate a decoder
|
| + * initialization status response with an initialization request.
|
| + */
|
| + uint32_t request_id;
|
| +};
|
|
|