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 |