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 M23 = 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 * | 92 * |
| 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 | |
| 103 /** | |
| 104 * 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.
| |
| 105 * <code>decoder_config</code>, and returns the result of the intialization | |
| 106 * request to the browser using the <code>DecoderInitializeStatus()</code> | |
| 107 * method on the <code>PPB_ContentDecryptor_Private</code> interface. | |
| 108 * | |
| 109 * @param[in] decoder_config A <code>PP_VideoDecoderConfig</code> that | |
| 110 * contains video decoder settings and a request ID. The request ID is passed | |
| 111 * to the <code>DecoderInitializeStatus()</code> method on the | |
| 112 * <code>PPB_ContentDecryptor_Private</code> interface to allow clients to | |
| 113 * associate the result with a video decoder initialization request. | |
| 114 * | |
| 115 * @param[in] codec_extra_data A <code>PP_Resource</code> corresponding to a | |
| 116 * <code>PPB_Buffer_Dev</code> resource containing codec setup data required | |
| 117 * by some codecs. It should be set to 0 when the codec being initialized | |
| 118 * does not require it. | |
| 119 */ | |
| 120 void InitializeVideoDecoder( | |
| 121 [in] PP_Instance instance, | |
| 122 [in] PP_VideoDecoderConfig decoder_config, | |
| 123 [in] PP_Resource codec_extra_data); | |
| 124 | |
| 102 /** | 125 /** |
| 103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | 126 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted |
| 104 * uncompressed (decoded) video frame to the browser via the | 127 * uncompressed (decoded) video frame to the browser via the |
| 105 * <code>DeliverFrame()</code> method on the | 128 * <code>DeliverFrame()</code> method on the |
| 106 * <code>PPB_ContentDecryptor_Private</code> interface. | 129 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 107 * | 130 * |
| 108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding | 131 * @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 | 132 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video |
| 110 * frame. | 133 * frame. |
| 111 * | 134 * |
| 112 * @param[in] encrypted_video_frame_info A | 135 * @param[in] encrypted_video_frame_info A |
| 113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information | 136 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information |
| 114 * needed to decrypt and decode <code>encrypted_video_frame</code>. | 137 * needed to decrypt and decode <code>encrypted_video_frame</code>. |
| 115 */ | 138 */ |
| 116 void DecryptAndDecodeFrame( | 139 void DecryptAndDecodeFrame( |
| 117 [in] PP_Instance instance, | 140 [in] PP_Instance instance, |
| 118 [in] PP_Resource encrypted_video_frame, | 141 [in] PP_Resource encrypted_video_frame, |
| 119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); | 142 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); |
| 120 }; | 143 }; |
| OLD | NEW |