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

Side by Side Diff: ppapi/api/private/pp_content_decryptor.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: Set PPP interface version to 0.2 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 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information 7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information
8 * that can be used to associate the decrypted block with a decrypt request 8 * that can be used to associate the decrypted block with a decrypt request
9 * and/or an input block. 9 * and/or an input block.
10 */ 10 */
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 uint32_t iv_size; 107 uint32_t iv_size;
108 108
109 /** 109 /**
110 * Subsample information of the block to be decrypted. 110 * Subsample information of the block to be decrypted.
111 */ 111 */
112 PP_DecryptSubsampleDescription[16] subsamples; 112 PP_DecryptSubsampleDescription[16] subsamples;
113 uint32_t num_subsamples; 113 uint32_t num_subsamples;
114 }; 114 };
115 115
116 /** 116 /**
117 * <code>PP_DecryptedFrameFormat</code> contains video frame formats.
118 */
119 [assert_size(4)]
120 enum PP_DecryptedFrameFormat {
121 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0,
122 PP_DECRYPTEDFRAMEFORMAT_EMPTY = 1,
123 PP_DECRYPTEDFRAMEFORMAT_YV12 = 2,
124 PP_DECRYPTEDFRAMEFORMAT_I420 = 3
125 };
126
127 /**
128 * <code>PP_VideoCodec</code> contains video codec type constants.
129 */
130 [assert_size(4)]
131 enum PP_VideoCodec {
132 PP_VIDEOCODEC_UNKNOWN = 0,
133 PP_VIDEOCODEC_VP8 = 1
134 };
135
136 /**
137 * <code>PP_EncryptedVideoFrameInfo</code> contains the information required
138 * to decrypt and decode a video frame.
139 */
140 [assert_size(256)]
141 struct PP_EncryptedVideoFrameInfo {
142 /**
143 * The decoded video frame format.
144 */
145 PP_DecryptedFrameFormat format;
146
147 /**
148 * The video frame codec type.
149 */
150 PP_VideoCodec codec;
151
152 /**
153 * Video frame width in pixels.
154 */
155 int32_t width;
156
157 /**
158 * Video frame height in pixels.
159 */
160 int32_t height;
161
162 /**
163 * Information required to decrypt the frame.
164 */
165 PP_EncryptedBlockInfo encryption_info;
166 };
167
168 /**
117 * The <code>PP_DecryptResult</code> enum contains decryption and decoding 169 * The <code>PP_DecryptResult</code> enum contains decryption and decoding
118 * result constants. 170 * result constants.
119 */ 171 */
120 [assert_size(4)] 172 [assert_size(4)]
121 enum PP_DecryptResult { 173 enum PP_DecryptResult {
122 /** The decryption (and/or decoding) operation finished successfully. */ 174 /** The decryption (and/or decoding) operation finished successfully. */
123 PP_DECRYPTRESULT_SUCCESS = 0, 175 PP_DECRYPTRESULT_SUCCESS = 0,
124 /** The decryptor did not have the necessary decryption key. */ 176 /** The decryptor did not have the necessary decryption key. */
125 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, 177 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1,
126 /** An unexpected error happened during decryption. */ 178 /** An unexpected error happened during decryption. */
(...skipping 17 matching lines...) Expand all
144 * Result of the decryption (and/or decoding) operation. 196 * Result of the decryption (and/or decoding) operation.
145 */ 197 */
146 PP_DecryptResult result; 198 PP_DecryptResult result;
147 199
148 /** 200 /**
149 * 4-byte padding to make the size of <code>PP_DecryptedBlockInfo</code> 201 * 4-byte padding to make the size of <code>PP_DecryptedBlockInfo</code>
150 * a multiple of 8 bytes. The value of this field should not be used. 202 * a multiple of 8 bytes. The value of this field should not be used.
151 */ 203 */
152 uint32_t padding; 204 uint32_t padding;
153 }; 205 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/private/ppp_content_decryptor_private.idl » ('j') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698