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

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: 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 | « no previous file | ppapi/api/private/ppp_content_decryptor_private.idl » ('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 * 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 * TODO(tomfinegan): Revisit necessity of including format information in this
140 * struct once we decide how to implement video decoder initialization.
141 */
142 [assert_size(256)]
143 struct PP_EncryptedVideoFrameInfo {
144 /**
145 * The decoded video frame format.
146 */
147 PP_DecryptedFrameFormat format;
148
149 /**
150 * The video frame codec type.
151 */
152 PP_VideoCodec codec;
153
154 /**
155 * Video frame width in pixels.
156 */
157 int32_t width;
158
159 /**
160 * Video frame height in pixels.
161 */
162 int32_t height;
163
164 /**
165 * Information required to decrypt the frame.
166 */
167 PP_EncryptedBlockInfo encryption_info;
168 };
169
170 /**
117 * The <code>PP_DecryptResult</code> enum contains decryption and decoding 171 * The <code>PP_DecryptResult</code> enum contains decryption and decoding
118 * result constants. 172 * result constants.
119 */ 173 */
120 [assert_size(4)] 174 [assert_size(4)]
121 enum PP_DecryptResult { 175 enum PP_DecryptResult {
122 /** The decryption (and/or decoding) operation finished successfully. */ 176 /** The decryption (and/or decoding) operation finished successfully. */
123 PP_DECRYPTRESULT_SUCCESS = 0, 177 PP_DECRYPTRESULT_SUCCESS = 0,
124 /** The decryptor did not have the necessary decryption key. */ 178 /** The decryptor did not have the necessary decryption key. */
125 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, 179 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1,
126 /** An unexpected error happened during decryption. */ 180 /** An unexpected error happened during decryption. */
(...skipping 20 matching lines...) Expand all
147 */ 201 */
148 uint32_t padding; 202 uint32_t padding;
149 203
150 /** 204 /**
151 * Information needed by the client to track the block to be decrypted. 205 * Information needed by the client to track the block to be decrypted.
152 */ 206 */
153 PP_DecryptTrackingInfo tracking_info; 207 PP_DecryptTrackingInfo tracking_info;
154 }; 208 };
155 209
156 /** 210 /**
157 * <code>PP_DecryptedFrameFormat</code> contains video frame formats.
158 */
159 [assert_size(4)]
160 enum PP_DecryptedFrameFormat {
161 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0,
162 PP_DECRYPTEDFRAMEFORMAT_EMPTY = 1,
163 PP_DECRYPTEDFRAMEFORMAT_YV12 = 2,
164 PP_DECRYPTEDFRAMEFORMAT_I420 = 3
165 };
166
167 /**
168 * <code>PP_DecryptedFramePlanes</code> provides YUV plane index values for 211 * <code>PP_DecryptedFramePlanes</code> provides YUV plane index values for
169 * accessing plane offsets stored in <code>PP_DecryptedFrameInfo</code>. 212 * accessing plane offsets stored in <code>PP_DecryptedFrameInfo</code>.
170 */ 213 */
171 [assert_size(4)] 214 [assert_size(4)]
172 enum PP_DecryptedFramePlanes { 215 enum PP_DecryptedFramePlanes {
173 PP_DECRYPTEDFRAMEPLANES_Y = 0, 216 PP_DECRYPTEDFRAMEPLANES_Y = 0,
174 PP_DECRYPTEDFRAMEPLANES_U = 1, 217 PP_DECRYPTEDFRAMEPLANES_U = 1,
175 PP_DECRYPTEDFRAMEPLANES_V = 2 218 PP_DECRYPTEDFRAMEPLANES_V = 2
176 }; 219 };
177 220
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 /** 253 /**
211 * Height of the video frame, in pixels. 254 * Height of the video frame, in pixels.
212 */ 255 */
213 int32_t height; 256 int32_t height;
214 257
215 /** 258 /**
216 * Information needed by the client to track the decrypted frame. 259 * Information needed by the client to track the decrypted frame.
217 */ 260 */
218 PP_DecryptTrackingInfo tracking_info; 261 PP_DecryptTrackingInfo tracking_info;
219 }; 262 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/private/ppp_content_decryptor_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698