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

Side by Side Diff: ppapi/api/private/ppp_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>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.2 12 M24 = 0.3
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 * 92 *
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 /**
103 * Initializes the video decoder using codec and settings in
104 * <code>decoder_config</code>, and returns the result of the initialization
105 * request to the browser using the <code>DecoderInitialized()</code> method
106 * on the <code>PPB_ContentDecryptor_Private</code> interface.
107 *
108 * @param[in] decoder_config A <code>PP_VideoDecoderConfig</code> that
109 * contains video decoder settings and a request ID. The request ID is passed
110 * to the <code>DecoderInitialized()</code> method on the
111 * <code>PPB_ContentDecryptor_Private</code> interface to allow clients to
112 * associate the result with a video decoder initialization request.
113 *
114 * @param[in] codec_extra_data A <code>PP_Resource</code> corresponding to a
115 * <code>PPB_Buffer_Dev</code> resource containing codec setup data required
116 * by some codecs. It should be set to 0 when the codec being initialized
117 * does not require it.
118 */
119 void InitializeVideoDecoder(
120 [in] PP_Instance instance,
121 [in] PP_VideoDecoderConfig decoder_config,
122 [in] PP_Resource codec_extra_data);
123
102 /** 124 /**
103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted 125 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted
104 * uncompressed (decoded) video frame to the browser via the 126 * uncompressed (decoded) video frame to the browser via the
105 * <code>DeliverFrame()</code> method on the 127 * <code>DeliverFrame()</code> method on the
106 * <code>PPB_ContentDecryptor_Private</code> interface. 128 * <code>PPB_ContentDecryptor_Private</code> interface.
107 * 129 *
108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding 130 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding
109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video 131 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video
110 * frame. 132 * frame.
111 * 133 *
112 * @param[in] encrypted_video_frame_info A 134 * @param[in] encrypted_video_frame_info A
113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information 135 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information
114 * needed to decrypt and decode <code>encrypted_video_frame</code>. 136 * needed to decrypt and decode <code>encrypted_video_frame</code>.
115 */ 137 */
116 void DecryptAndDecodeFrame( 138 void DecryptAndDecodeFrame(
117 [in] PP_Instance instance, 139 [in] PP_Instance instance,
118 [in] PP_Resource encrypted_video_frame, 140 [in] PP_Resource encrypted_video_frame,
119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); 141 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info);
120 }; 142 };
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_content_decryptor_private.idl ('k') | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698