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 /* From private/ppb_content_decryptor_private.idl, | 6 /* From private/ppb_content_decryptor_private.idl, |
7 * modified Mon Oct 8 13:44:40 2012. | 7 * modified Thu Oct 11 20:30:13 2012. |
8 */ | 8 */ |
9 | 9 |
10 #ifndef PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ |
11 #define PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ |
12 | 12 |
13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 * | 171 * |
172 * @param[in] request_id The <code>request_id</code> value passed to | 172 * @param[in] request_id The <code>request_id</code> value passed to |
173 * <code>InitializeAudioDecoder</code> or <code>InitializeVideoDecoder</code> | 173 * <code>InitializeAudioDecoder</code> or <code>InitializeVideoDecoder</code> |
174 * in <code>PP_AudioDecoderConfig</code> or | 174 * in <code>PP_AudioDecoderConfig</code> or |
175 * <code>PP_VideoDecoderConfig</code>. | 175 * <code>PP_VideoDecoderConfig</code>. |
176 */ | 176 */ |
177 void (*DecoderInitialized)(PP_Instance instance, | 177 void (*DecoderInitialized)(PP_Instance instance, |
178 PP_Bool success, | 178 PP_Bool success, |
179 uint32_t request_id); | 179 uint32_t request_id); |
180 /** | 180 /** |
| 181 * Called after the <code>DeinitializeDecoder()</code> method on the |
| 182 * <code>PPP_ContentDecryptor_Private</code> interface completes to report |
| 183 * decoder de-initialization completion to the browser. |
| 184 * |
| 185 * @param[in] decoder_type The <code>PP_DecryptorStreamType</code> passed to |
| 186 * <code>DeinitializeDecoder()</code>. |
| 187 * |
| 188 * @param[in] request_id The <code>request_id</code> value passed to |
| 189 * <code>DeinitializeDecoder()</code>. |
| 190 */ |
| 191 void (*DecoderDeinitializeDone)(PP_Instance instance, |
| 192 PP_DecryptorStreamType decoder_type, |
| 193 uint32_t request_id); |
| 194 /** |
| 195 * Called after the <code>ResetDecoder()</code> method on the |
| 196 * <code>PPP_ContentDecryptor_Private</code> interface completes to report |
| 197 * decoder reset completion to the browser. |
| 198 * |
| 199 * @param[in] decoder_type The <code>PP_DecryptorStreamType</code> passed to |
| 200 * <code>ResetDecoder()</code>. |
| 201 * |
| 202 * @param[in] request_id The <code>request_id</code> value passed to |
| 203 * <code>ResetDecoder()</code>. |
| 204 */ |
| 205 void (*DecoderResetDone)(PP_Instance instance, |
| 206 PP_DecryptorStreamType decoder_type, |
| 207 uint32_t request_id); |
| 208 /** |
181 * Called after the <code>DecryptAndDecode()</code> method on the | 209 * Called after the <code>DecryptAndDecode()</code> method on the |
182 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver | 210 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver |
183 * a decrypted and decoded video frame to the browser for rendering. | 211 * a decrypted and decoded video frame to the browser for rendering. |
184 * | 212 * |
185 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a | 213 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a |
186 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. | 214 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. |
187 * | 215 * |
188 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that | 216 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that |
189 * contains the result code, tracking info, and buffer format associated with | 217 * contains the result code, tracking info, and buffer format associated with |
190 * <code>decrypted_frame</code>. | 218 * <code>decrypted_frame</code>. |
(...skipping 22 matching lines...) Expand all Loading... |
213 const struct PP_DecryptedBlockInfo* decrypted_block_info); | 241 const struct PP_DecryptedBlockInfo* decrypted_block_info); |
214 }; | 242 }; |
215 | 243 |
216 typedef struct PPB_ContentDecryptor_Private_0_3 PPB_ContentDecryptor_Private; | 244 typedef struct PPB_ContentDecryptor_Private_0_3 PPB_ContentDecryptor_Private; |
217 /** | 245 /** |
218 * @} | 246 * @} |
219 */ | 247 */ |
220 | 248 |
221 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ | 249 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ |
222 | 250 |
OLD | NEW |