| 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 */ |
| (...skipping 82 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 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | 103 * Decrypts encrypted_buffer, decodes it, and returns the unencrypted |
| 104 * uncompressed (decoded) video frame to the browser via the | 104 * uncompressed (decoded) data to the browser via the |
| 105 * <code>DeliverFrame()</code> method on the | 105 * <code>DeliverFrame()</code> or <code>DeliverSamples()</code> method on the |
| 106 * <code>PPB_ContentDecryptor_Private</code> interface. | 106 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 107 * | 107 * |
| 108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding | 108 * @param[in] encrypted_buffer A <code>PP_Resource</code> corresponding to a |
| 109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video | 109 * <code>PPB_Buffer_Dev</code> resource that contains encrypted media data. |
| 110 * frame. | |
| 111 * | 110 * |
| 112 * @param[in] encrypted_video_frame_info A | 111 * @param[in] encrypted_media_info A <code>PP_EncryptedMediaInfo</code> that |
| 113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information | 112 * contains all information needed to decrypt and decode |
| 114 * needed to decrypt and decode <code>encrypted_video_frame</code>. | 113 * <code>encrypted_buffer</code>. |
| 115 */ | 114 */ |
| 116 void DecryptAndDecodeFrame( | 115 void DecryptAndDecode( |
| 117 [in] PP_Instance instance, | 116 [in] PP_Instance instance, |
| 118 [in] PP_Resource encrypted_video_frame, | 117 [in] PP_Resource encrypted_buffer, |
| 119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); | 118 [in] PP_EncryptedMediaInfo encrypted_media_info); |
| 120 }; | 119 }; |
| OLD | NEW |