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

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

Issue 11023004: Update PPP side of Pepper CDM API to support video decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, CQ'ing. 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 */
11 label Chrome { 11 label Chrome {
12 M23 = 0.1 12 M23 = 0.2
13 }; 13 };
14 14
15 /** 15 /**
16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function 16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function
17 * pointers the decryption plugin must implement to provide services needed by 17 * pointers the decryption plugin must implement to provide services needed by
18 * the browser. This interface provides the plugin side support for the Content 18 * the browser. This interface provides the plugin side support for the Content
19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions: 19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions:
20 * http://goo.gl/rbdnR 20 * http://goo.gl/rbdnR
21 */ 21 */
22 interface PPP_ContentDecryptor_Private { 22 interface PPP_ContentDecryptor_Private {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that 93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
94 * contains all auxiliary information needed for decryption of the 94 * contains all auxiliary information needed for decryption of the
95 * <code>encrypted_block</code>. 95 * <code>encrypted_block</code>.
96 */ 96 */
97 void Decrypt( 97 void Decrypt(
98 [in] PP_Instance instance, 98 [in] PP_Instance instance,
99 [in] PP_Resource encrypted_block, 99 [in] PP_Resource encrypted_block,
100 [in] PP_EncryptedBlockInfo encrypted_block_info); 100 [in] PP_EncryptedBlockInfo encrypted_block_info);
101 101
102 /** 102 /**
103 * Decrypts the block, decodes it, and returns the unencrypted uncompressed 103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted
104 * (decoded) media to the browser via the 104 * uncompressed (decoded) video frame to the browser via the
105 * <code>DeliverFrame()</code> method on the
105 * <code>PPB_ContentDecryptor_Private</code> interface. 106 * <code>PPB_ContentDecryptor_Private</code> interface.
106 * 107 *
107 * Decrypted and decoded video frames are sent to <code>DeliverFrame()</code>, 108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding
108 * and decrypted and decoded audio samples are sent to 109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video
109 * <code>DeliverSamples()</code>. 110 * frame.
110 * 111 *
111 * @param[in] resource A <code>PP_Resource</code> corresponding to a 112 * @param[in] encrypted_video_frame_info A
112 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data 113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information
113 * block. 114 * needed to decrypt and decode <code>encrypted_video_frame</code>.
114 *
115 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
116 * contains all auxiliary information needed for decryption of the
117 * <code>encrypted_block</code>.
118 */ 115 */
119 void DecryptAndDecode( 116 void DecryptAndDecodeFrame(
120 [in] PP_Instance instance, 117 [in] PP_Instance instance,
121 [in] PP_Resource encrypted_block, 118 [in] PP_Resource encrypted_video_frame,
122 [in] PP_EncryptedBlockInfo encrypted_block_info); 119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info);
123 }; 120 };
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