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

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

Issue 11013052: Add PPAPI CDM video decoder initialization. (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
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>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 */
11 label Chrome { 11 label Chrome {
12 M23 = 0.2 12 M24 = 0.3
13 }; 13 };
14 14
15 /** 15 /**
16 * <code>PPB_ContentDecryptor_Private</code> structure contains the function 16 * <code>PPB_ContentDecryptor_Private</code> structure contains the function
17 * pointers the browser must implement to support plugins implementing the 17 * pointers the browser must implement to support plugins implementing the
18 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides 18 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides
19 * browser side support for the Content Decryption Module (CDM) for v0.1 of the 19 * browser side support for the Content Decryption Module (CDM) for v0.1 of the
20 * proposed Encrypted Media Extensions: http://goo.gl/rbdnR 20 * proposed Encrypted Media Extensions: http://goo.gl/rbdnR
21 */ 21 */
22 interface PPB_ContentDecryptor_Private { 22 interface PPB_ContentDecryptor_Private {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that 139 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
140 * contains the result code and tracking info associated with the 140 * contains the result code and tracking info associated with the
141 * <code>decrypted_block</code>. 141 * <code>decrypted_block</code>.
142 */ 142 */
143 void DeliverBlock( 143 void DeliverBlock(
144 [in] PP_Instance instance, 144 [in] PP_Instance instance,
145 [in] PP_Resource decrypted_block, 145 [in] PP_Resource decrypted_block,
146 [in] PP_DecryptedBlockInfo decrypted_block_info); 146 [in] PP_DecryptedBlockInfo decrypted_block_info);
147 147
148 /** 148 /**
149 * Called after the <code>InitializeAudioDecoder()</code> or
150 * <code>InitializeVideoDecoder()</code> method on the
151 * <code>PPP_ContentDecryptor_Private</code> interface completes to report
152 * decoder initialization status to the browser.
153 *
154 * @param[in] success A <code>PP_Bool</code> that is set to
155 * <code>PP_TRUE</code> when the decoder initialization request associated
156 * with <code>request_id</code> was successful.
157 *
158 * @param[in] request_id The <code>request_id</code> value passed to
159 * <code>InitializeAudioDecoder</code> or <code>InitializeVideoDecoder</code>
160 * in <code>PP_AudioDecoderConfig</code> or
161 * <code>PP_VideoDecoderConfig</code>.
162 */
163 void DecoderInitialized(
164 [in] PP_Instance instance,
165 [in] PP_Bool success,
166 [in] uint32_t request_id);
167
168 /**
149 * Called after the <code>DecryptAndDecode()</code> method on the 169 * Called after the <code>DecryptAndDecode()</code> method on the
150 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver 170 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
151 * a decrypted and decoded video frame to the browser for rendering. 171 * a decrypted and decoded video frame to the browser for rendering.
152 * 172 *
153 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a 173 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
154 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. 174 * <code>PPB_Buffer_Dev</code> resource that contains a video frame.
155 * 175 *
156 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that 176 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that
157 * contains the result code, tracking info, and buffer format associated with 177 * contains the result code, tracking info, and buffer format associated with
158 * <code>decrypted_frame</code>. 178 * <code>decrypted_frame</code>.
(...skipping 15 matching lines...) Expand all
174 * 194 *
175 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that 195 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
176 * contains the tracking info and result code associated with the 196 * contains the tracking info and result code associated with the
177 * <code>decrypted_block</code>. 197 * <code>decrypted_block</code>.
178 */ 198 */
179 void DeliverSamples( 199 void DeliverSamples(
180 [in] PP_Instance instance, 200 [in] PP_Instance instance,
181 [in] PP_Resource decrypted_samples, 201 [in] PP_Resource decrypted_samples,
182 [in] PP_DecryptedBlockInfo decrypted_block_info); 202 [in] PP_DecryptedBlockInfo decrypted_block_info);
183 }; 203 };
OLDNEW
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | ppapi/api/private/ppp_content_decryptor_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698