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>PPB_ContentDecryptor_Private</code> | 7 * This file defines the <code>PPB_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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 * <code>InitializeAudioDecoder</code> or <code>InitializeVideoDecoder</code> | 159 * <code>InitializeAudioDecoder</code> or <code>InitializeVideoDecoder</code> |
160 * in <code>PP_AudioDecoderConfig</code> or | 160 * in <code>PP_AudioDecoderConfig</code> or |
161 * <code>PP_VideoDecoderConfig</code>. | 161 * <code>PP_VideoDecoderConfig</code>. |
162 */ | 162 */ |
163 void DecoderInitialized( | 163 void DecoderInitialized( |
164 [in] PP_Instance instance, | 164 [in] PP_Instance instance, |
165 [in] PP_Bool success, | 165 [in] PP_Bool success, |
166 [in] uint32_t request_id); | 166 [in] uint32_t request_id); |
167 | 167 |
168 /** | 168 /** |
| 169 * Called after the <code>DeinitializeDecoder()</code> method on the |
| 170 * <code>PPP_ContentDecryptor_Private</code> interface completes to report |
| 171 * decoder de-initialization completion to the browser. |
| 172 * |
| 173 * @param[in] decoder_type The <code>PP_DecryptorStreamType</code> passed to |
| 174 * <code>DeinitializeDecoder()</code>. |
| 175 * |
| 176 * @param[in] request_id The <code>request_id</code> value passed to |
| 177 * <code>DeinitializeDecoder()</code>. |
| 178 */ |
| 179 void DecoderDeinitializeDone( |
| 180 [in] PP_Instance instance, |
| 181 [in] PP_DecryptorStreamType decoder_type, |
| 182 [in] uint32_t request_id); |
| 183 |
| 184 /** |
| 185 * Called after the <code>ResetDecoder()</code> method on the |
| 186 * <code>PPP_ContentDecryptor_Private</code> interface completes to report |
| 187 * decoder reset completion to the browser. |
| 188 * |
| 189 * @param[in] decoder_type The <code>PP_DecryptorStreamType</code> passed to |
| 190 * <code>ResetDecoder()</code>. |
| 191 * |
| 192 * @param[in] request_id The <code>request_id</code> value passed to |
| 193 * <code>ResetDecoder()</code>. |
| 194 */ |
| 195 void DecoderResetDone( |
| 196 [in] PP_Instance instance, |
| 197 [in] PP_DecryptorStreamType decoder_type, |
| 198 [in] uint32_t request_id); |
| 199 |
| 200 /** |
169 * Called after the <code>DecryptAndDecode()</code> method on the | 201 * Called after the <code>DecryptAndDecode()</code> method on the |
170 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver | 202 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver |
171 * a decrypted and decoded video frame to the browser for rendering. | 203 * a decrypted and decoded video frame to the browser for rendering. |
172 * | 204 * |
173 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a | 205 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a |
174 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. | 206 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. |
175 * | 207 * |
176 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that | 208 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that |
177 * contains the result code, tracking info, and buffer format associated with | 209 * contains the result code, tracking info, and buffer format associated with |
178 * <code>decrypted_frame</code>. | 210 * <code>decrypted_frame</code>. |
(...skipping 15 matching lines...) Expand all Loading... |
194 * | 226 * |
195 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that | 227 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
196 * contains the tracking info and result code associated with the | 228 * contains the tracking info and result code associated with the |
197 * <code>decrypted_block</code>. | 229 * <code>decrypted_block</code>. |
198 */ | 230 */ |
199 void DeliverSamples( | 231 void DeliverSamples( |
200 [in] PP_Instance instance, | 232 [in] PP_Instance instance, |
201 [in] PP_Resource decrypted_samples, | 233 [in] PP_Resource decrypted_samples, |
202 [in] PP_DecryptedBlockInfo decrypted_block_info); | 234 [in] PP_DecryptedBlockInfo decrypted_block_info); |
203 }; | 235 }; |
OLD | NEW |