Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1018)

Unified Diff: ppapi/api/private/pp_content_decryptor.idl

Issue 11013052: Add PPAPI CDM video decoder initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Decoder init, first pass. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+};

Powered by Google App Engine
This is Rietveld 408576698