Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPP_ContentDecryptor_Private</code> | 7 * This file defines the <code>PPP_ContentDecryptor_Private</code> |
| 8 * interface. Note: This is a special interface, only to be used for Content | 8 * interface. Note: This is a special interface, only to be used for Content |
| 9 * Decryption Modules, not normal plugins. | 9 * Decryption Modules, not normal plugins. |
| 10 */ | 10 */ |
| 11 label Chrome { | 11 label Chrome { |
| 12 M23 = 0.2 | 12 M24 = 0.3 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function | 16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function |
| 17 * pointers the decryption plugin must implement to provide services needed by | 17 * pointers the decryption plugin must implement to provide services needed by |
| 18 * the browser. This interface provides the plugin side support for the Content | 18 * the browser. This interface provides the plugin side support for the Content |
| 19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions: | 19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions: |
| 20 * http://goo.gl/rbdnR | 20 * http://goo.gl/rbdnR |
| 21 */ | 21 */ |
| 22 interface PPP_ContentDecryptor_Private { | 22 interface PPP_ContentDecryptor_Private { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that | 93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
| 94 * contains all auxiliary information needed for decryption of the | 94 * contains all auxiliary information needed for decryption of the |
| 95 * <code>encrypted_block</code>. | 95 * <code>encrypted_block</code>. |
| 96 */ | 96 */ |
| 97 void Decrypt( | 97 void Decrypt( |
| 98 [in] PP_Instance instance, | 98 [in] PP_Instance instance, |
| 99 [in] PP_Resource encrypted_block, | 99 [in] PP_Resource encrypted_block, |
| 100 [in] PP_EncryptedBlockInfo encrypted_block_info); | 100 [in] PP_EncryptedBlockInfo encrypted_block_info); |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Resets the video decoder. Reset completion is reported to the browser | |
| 104 * using the <code>DecoderReset()</code> method on the | |
| 105 * <code>PPB_ContentDecryptor_Private</code> interface. | |
| 106 * | |
| 107 * @param[in] request_id A request ID that allows the browser to associate a | |
| 108 * request to reset the video decoder with the corresponding call to the | |
| 109 * <code>DecoderReset()</code> method on the | |
|
xhwang
2012/10/09 16:27:27
It looks like the PPB interfaces are sharing APIs
Tom Finegan
2012/10/10 00:39:32
+ddorwin,fischman:
We still need audio and video s
| |
| 110 * <code>PPB_ContentDecryptor_Private</code> interface. | |
| 111 */ | |
| 112 void ResetVideoDecoder( | |
| 113 [in] PP_Instance instance, | |
| 114 [in] uint32_t request_id); | |
| 115 | |
| 116 /** | |
| 117 * Stops the video decoder. Stop completion is reported to the browser using | |
| 118 * the <code>DecoderStopped()</code> method on the | |
| 119 * <code>PPB_ContentDecryptor_Private</code> interface. | |
| 120 * | |
| 121 * @param[in] request_id A request ID that allows the browser to associate a | |
| 122 * request to stop the video decoder with the corresponding call to the | |
| 123 * <code>DecoderStopped()</code> method on the | |
| 124 * <code>PPB_ContentDecryptor_Private</code> interface. | |
| 125 */ | |
| 126 void StopVideoDecoder( | |
|
Ami GONE FROM CHROMIUM
2012/10/09 07:25:54
Is there a reason this is "Stop" and not "Destroy"
xhwang
2012/10/09 16:27:27
In the CDM world, a video decoder can be reinitial
Ami GONE FROM CHROMIUM
2012/10/09 16:41:05
Then how about DeinitializeVideoDecoder()?
Stop i
Tom Finegan
2012/10/10 00:39:32
Agreed, discussing this in the above comment.
| |
| 127 [in] PP_Instance instance, | |
| 128 [in] uint32_t request_id); | |
| 129 | |
| 130 /** | |
| 103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | 131 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted |
| 104 * uncompressed (decoded) video frame to the browser via the | 132 * uncompressed (decoded) video frame to the browser via the |
| 105 * <code>DeliverFrame()</code> method on the | 133 * <code>DeliverFrame()</code> method on the |
| 106 * <code>PPB_ContentDecryptor_Private</code> interface. | 134 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 107 * | 135 * |
| 108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding | 136 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding |
| 109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video | 137 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video |
| 110 * frame. | 138 * frame. |
| 111 * | 139 * |
| 112 * @param[in] encrypted_video_frame_info A | 140 * @param[in] encrypted_video_frame_info A |
| 113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information | 141 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information |
| 114 * needed to decrypt and decode <code>encrypted_video_frame</code>. | 142 * needed to decrypt and decode <code>encrypted_video_frame</code>. |
| 115 */ | 143 */ |
| 116 void DecryptAndDecodeFrame( | 144 void DecryptAndDecodeFrame( |
| 117 [in] PP_Instance instance, | 145 [in] PP_Instance instance, |
| 118 [in] PP_Resource encrypted_video_frame, | 146 [in] PP_Resource encrypted_video_frame, |
| 119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); | 147 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); |
| 120 }; | 148 }; |
| OLD | NEW |