| 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/ppp_content_decryptor_private.idl, | 6 /* From private/ppp_content_decryptor_private.idl, |
| 7 * modified Thu Oct 11 20:53:07 2012. | 7 * modified Thu Oct 11 22:28:01 2012. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPP_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 * | 170 * |
| 171 * @param[in] request_id A request ID that allows the browser to associate a | 171 * @param[in] request_id A request ID that allows the browser to associate a |
| 172 * request to reset the decoder with a corresponding call to the | 172 * request to reset the decoder with a corresponding call to the |
| 173 * <code>DecoderResetDone()</code> method on the | 173 * <code>DecoderResetDone()</code> method on the |
| 174 * <code>PPB_ContentDecryptor_Private</code> interface. | 174 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 175 */ | 175 */ |
| 176 void (*ResetDecoder)(PP_Instance instance, | 176 void (*ResetDecoder)(PP_Instance instance, |
| 177 PP_DecryptorStreamType decoder_type, | 177 PP_DecryptorStreamType decoder_type, |
| 178 uint32_t request_id); | 178 uint32_t request_id); |
| 179 /** | 179 /** |
| 180 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | 180 * Decrypts encrypted_buffer, decodes it, and returns the unencrypted |
| 181 * uncompressed (decoded) video frame to the browser via the | 181 * uncompressed (decoded) data to the browser via the |
| 182 * <code>DeliverFrame()</code> method on the | 182 * <code>DeliverFrame()</code> or <code>DeliverSamples()</code> method on the |
| 183 * <code>PPB_ContentDecryptor_Private</code> interface. | 183 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 184 * | 184 * |
| 185 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding | 185 * @param[in] decoder_type A <code>PP_DecryptorStreamType</code> that |
| 186 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video | 186 * specifies the decoder to use after <code>encrypted_buffer</code> is |
| 187 * frame. | 187 * decrypted. |
| 188 * | 188 * |
| 189 * @param[in] encrypted_video_frame_info A | 189 * @param[in] encrypted_buffer A <code>PP_Resource</code> corresponding to a |
| 190 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information | 190 * <code>PPB_Buffer_Dev</code> resource that contains encrypted media data. |
| 191 * needed to decrypt and decode <code>encrypted_video_frame</code>. | 191 * |
| 192 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
| 193 * contains all auxiliary information needed for decryption of the |
| 194 * <code>encrypted_block</code>. |
| 192 */ | 195 */ |
| 193 void (*DecryptAndDecodeFrame)( | 196 void (*DecryptAndDecode)( |
| 194 PP_Instance instance, | 197 PP_Instance instance, |
| 195 PP_Resource encrypted_video_frame, | 198 PP_DecryptorStreamType decoder_type, |
| 196 const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info); | 199 PP_Resource encrypted_buffer, |
| 200 const struct PP_EncryptedBlockInfo* encrypted_block_info); |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 typedef struct PPP_ContentDecryptor_Private_0_3 PPP_ContentDecryptor_Private; | 203 typedef struct PPP_ContentDecryptor_Private_0_3 PPP_ContentDecryptor_Private; |
| 200 /** | 204 /** |
| 201 * @} | 205 * @} |
| 202 */ | 206 */ |
| 203 | 207 |
| 204 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */ | 208 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */ |
| 205 | 209 |
| OLD | NEW |