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

Unified Diff: ppapi/api/private/ppp_content_decryptor_private.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/ppp_content_decryptor_private.idl
diff --git a/ppapi/api/private/ppp_content_decryptor_private.idl b/ppapi/api/private/ppp_content_decryptor_private.idl
index 3f9b412f28ba1b4cd257a6b9cad28277228031a9..30c0ded5bd7234eb3b5fbb162673a3abeed2e4ea 100644
--- a/ppapi/api/private/ppp_content_decryptor_private.idl
+++ b/ppapi/api/private/ppp_content_decryptor_private.idl
@@ -9,7 +9,7 @@
* Decryption Modules, not normal plugins.
*/
label Chrome {
- M23 = 0.2
+ M23 = 0.3
};
/**
@@ -99,8 +99,31 @@ interface PPP_ContentDecryptor_Private {
[in] PP_Resource encrypted_block,
[in] PP_EncryptedBlockInfo encrypted_block_info);
+
+ /**
+ * Initializes the video decoder using codec and settings in
xhwang 2012/10/08 17:16:13 indentation is off by 1
Tom Finegan 2012/10/08 23:23:27 Done.
+ * <code>decoder_config</code>, and returns the result of the intialization
+ * request to the browser using the <code>DecoderInitializeStatus()</code>
+ * method on the <code>PPB_ContentDecryptor_Private</code> interface.
+ *
+ * @param[in] decoder_config A <code>PP_VideoDecoderConfig</code> that
+ * contains video decoder settings and a request ID. The request ID is passed
+ * to the <code>DecoderInitializeStatus()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface to allow clients to
+ * associate the result with a video decoder initialization request.
+ *
+ * @param[in] codec_extra_data A <code>PP_Resource</code> corresponding to a
+ * <code>PPB_Buffer_Dev</code> resource containing codec setup data required
+ * by some codecs. It should be set to 0 when the codec being initialized
+ * does not require it.
+ */
+ void InitializeVideoDecoder(
+ [in] PP_Instance instance,
+ [in] PP_VideoDecoderConfig decoder_config,
+ [in] PP_Resource codec_extra_data);
+
/**
- * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted
+ * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted
* uncompressed (decoded) video frame to the browser via the
* <code>DeliverFrame()</code> method on the
* <code>PPB_ContentDecryptor_Private</code> interface.
@@ -109,7 +132,7 @@ interface PPP_ContentDecryptor_Private {
* to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video
* frame.
*
- * @param[in] encrypted_video_frame_info A
+ * @param[in] encrypted_video_frame_info A
* <code>PP_EncryptedVideoFrameInfo</code> that contains all information
* needed to decrypt and decode <code>encrypted_video_frame</code>.
*/

Powered by Google App Engine
This is Rietveld 408576698