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

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

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments with the exception of renaming Deinit 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
« no previous file with comments | « ppapi/api/private/ppb_content_decryptor_private.idl ('k') | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b0ac5b3049763c531aadf9e012b9ccbc19e053b9..7f490bc73363ecf14642c8558b7cfbf6d91da48b 100644
--- a/ppapi/api/private/ppp_content_decryptor_private.idl
+++ b/ppapi/api/private/ppp_content_decryptor_private.idl
@@ -122,6 +122,52 @@ interface PPP_ContentDecryptor_Private {
[in] PP_Resource codec_extra_data);
/**
+ * De-initializes the decoder for the <code>PP_DecryptorStreamType</code>
+ * specified by <code>decoder_type</code> and sets it to an uninitialized
+ * state. The decoder can be re-initialized after de-initialization completes
+ * by calling <code>InitializeAudioDecoder</code> or
+ * <code>InitializeVideoDecoder</code>.
+ *
+ * De-initialization completion is reported to the browser using the
+ * <code>DecoderDeinitializeDone()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ *
+ * @param[in] decoder_type A <code>PP_DecryptorStreamType</code> that
+ * specifies the decoder to de-initialize.
+ *
+ * @param[in] request_id A request ID that allows the browser to associate a
+ * request to de-initialize a decoder with the corresponding call to the
+ * <code>DecoderDeinitializeDone()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ */
+ void DeinitializeDecoder(
+ [in] PP_Instance instance,
+ [in] PP_DecryptorStreamType decoder_type,
+ [in] uint32_t request_id);
+
+ /**
+ * Resets the decoder for the <code>PP_DecryptorStreamType</code> specified
+ * by <code>decoder_type</code> to an initialized clean state. Reset
+ * completion is reported to the browser using the
+ * <code>DecoderResetDone()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface. This method can be
+ * used to signal a discontinuity in the encoded data stream, and is safe to
+ * call multiple times.
+ *
+ * @param[in] decoder_type A <code>PP_DecryptorStreamType</code> that
+ * specifies the decoder to reset.
+ *
+ * @param[in] request_id A request ID that allows the browser to associate a
+ * request to reset the decoder with a corresponding call to the
+ * <code>DecoderResetDone()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ */
+ void ResetDecoder(
+ [in] PP_Instance instance,
+ [in] PP_DecryptorStreamType decoder_type,
+ [in] uint32_t request_id);
+
+ /**
* 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
« no previous file with comments | « ppapi/api/private/ppb_content_decryptor_private.idl ('k') | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698