Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: ppapi/api/private/ppp_content_decryptor_private.idl

Issue 11087044: Generalize Pepper CDM API decrypt and decode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 * request to reset the decoder with a corresponding call to the 161 * request to reset the decoder with a corresponding call to the
162 * <code>DecoderResetDone()</code> method on the 162 * <code>DecoderResetDone()</code> method on the
163 * <code>PPB_ContentDecryptor_Private</code> interface. 163 * <code>PPB_ContentDecryptor_Private</code> interface.
164 */ 164 */
165 void ResetDecoder( 165 void ResetDecoder(
166 [in] PP_Instance instance, 166 [in] PP_Instance instance,
167 [in] PP_DecryptorStreamType decoder_type, 167 [in] PP_DecryptorStreamType decoder_type,
168 [in] uint32_t request_id); 168 [in] uint32_t request_id);
169 169
170 /** 170 /**
171 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted 171 * Decrypts encrypted_buffer, decodes it, and returns the unencrypted
172 * uncompressed (decoded) video frame to the browser via the 172 * uncompressed (decoded) data to the browser via the
173 * <code>DeliverFrame()</code> method on the 173 * <code>DeliverFrame()</code> or <code>DeliverSamples()</code> method on the
174 * <code>PPB_ContentDecryptor_Private</code> interface. 174 * <code>PPB_ContentDecryptor_Private</code> interface.
175 * 175 *
176 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding 176 * @param[in] decoder_type A <code>PP_DecryptorStreamType</code> that
177 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video 177 * specifies the decoder to use after <code>encrypted_buffer</code> is
178 * frame. 178 * decrypted.
179 * 179 *
180 * @param[in] encrypted_video_frame_info A 180 * @param[in] encrypted_buffer A <code>PP_Resource</code> corresponding to a
181 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information 181 * <code>PPB_Buffer_Dev</code> resource that contains encrypted media data.
182 * needed to decrypt and decode <code>encrypted_video_frame</code>. 182 *
183 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
184 * contains all auxiliary information needed for decryption of the
185 * <code>encrypted_block</code>.
183 */ 186 */
184 void DecryptAndDecodeFrame( 187 void DecryptAndDecode(
185 [in] PP_Instance instance, 188 [in] PP_Instance instance,
186 [in] PP_Resource encrypted_video_frame, 189 [in] PP_DecryptorStreamType decoder_type,
187 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); 190 [in] PP_Resource encrypted_buffer,
191 [in] PP_EncryptedBlockInfo encrypted_block_info);
188 }; 192 };
OLDNEW
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698