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

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

Issue 11013052: Add PPAPI CDM video decoder initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Decoder init, first pass. 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0, 121 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0,
122 PP_DECRYPTEDFRAMEFORMAT_EMPTY = 1, 122 PP_DECRYPTEDFRAMEFORMAT_EMPTY = 1,
123 PP_DECRYPTEDFRAMEFORMAT_YV12 = 2, 123 PP_DECRYPTEDFRAMEFORMAT_YV12 = 2,
124 PP_DECRYPTEDFRAMEFORMAT_I420 = 3 124 PP_DECRYPTEDFRAMEFORMAT_I420 = 3
125 }; 125 };
126 126
127 /** 127 /**
128 * <code>PP_VideoCodec</code> contains video codec type constants. 128 * <code>PP_VideoCodec</code> contains video codec type constants.
129 */ 129 */
130 [assert_size(4)] 130 [assert_size(4)]
131 enum PP_VideoCodec { 131 enum PP_VideoCodec {
Ami GONE FROM CHROMIUM 2012/10/08 18:35:16 can probably drop this (see comment below).
Tom Finegan 2012/10/08 23:23:27 We'll need both when we support H.264-- I think we
132 PP_VIDEOCODEC_UNKNOWN = 0, 132 PP_VIDEOCODEC_UNKNOWN = 0,
133 PP_VIDEOCODEC_VP8 = 1 133 PP_VIDEOCODEC_VP8 = 1
134 }; 134 };
135 135
136 /** 136 /**
137 * <code>PP_EncryptedVideoFrameInfo</code> contains the information required 137 * <code>PP_EncryptedVideoFrameInfo</code> contains the information required
138 * to decrypt and decode a video frame. 138 * to decrypt and decode a video frame.
139 * TODO(tomfinegan): Revisit necessity of including format information in this 139 * TODO(tomfinegan): Revisit necessity of including format information in this
140 * struct once we decide how to implement video decoder initialization. 140 * struct once we decide how to implement video decoder initialization.
141 */ 141 */
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 /** 253 /**
254 * Height of the video frame, in pixels. 254 * Height of the video frame, in pixels.
255 */ 255 */
256 int32_t height; 256 int32_t height;
257 257
258 /** 258 /**
259 * Information needed by the client to track the decrypted frame. 259 * Information needed by the client to track the decrypted frame.
260 */ 260 */
261 PP_DecryptTrackingInfo tracking_info; 261 PP_DecryptTrackingInfo tracking_info;
262 }; 262 };
263
264 /**
265 * <code>PP_VideoCodecProfile</code> contains video codec profile type
266 * constants required for video decoder configuration.
267 *.
268 */
269 [assert_size(4)]
270 enum PP_VideoCodecProfile {
271 PP_VIDEOCODECPROFILE_UNKNOWN = 0,
Ami GONE FROM CHROMIUM 2012/10/08 18:35:16 Any reason not to use PP_VideoDecoder_Profile?
Tom Finegan 2012/10/08 23:23:27 These types are based on those defined in media/vi
Ami GONE FROM CHROMIUM 2012/10/09 07:21:12 So is the enum I pointed at (well, they grew toget
272 PP_VIDEOCODECPROFILE_VP8_MAIN = 1
273 };
274
275 /**
276 * <code>PP_VideoDecoderConfig</code> contains video decoder configuration
277 * information required to initialize video decoders, and a request ID
278 * that allows clients to associate a decoder intialization request with a
Ami GONE FROM CHROMIUM 2012/10/08 18:35:16 typo: intialization (here and a surprising number
Tom Finegan 2012/10/08 23:23:27 Thanks, fixed.
279 * status response.
xhwang 2012/10/08 17:16:13 Add a comment here that the extra data is sent sep
Tom Finegan 2012/10/08 23:23:27 Done.
280 */
281 [assert_size(24)]
282 struct PP_VideoDecoderConfig {
283 /**
284 * The video codec to initialize.
285 */
286 PP_VideoCodec codec;
287
288 /**
289 * Profile to use when intializing the video codec.
290 */
291 PP_VideoCodecProfile profile;
292
293 /**
294 * Output video format.
295 */
296 PP_DecryptedFrameFormat format;
297
298 /**
299 * Width of decoded video frames, in pixels.
300 */
301 int32_t width;
302
303 /**
304 * Height of decoded video frames, in pixels.
305 */
306 int32_t height;
307
308 /**
309 * Client-specified identifier for the associated video decoder intialization
Ami GONE FROM CHROMIUM 2012/10/08 18:35:16 I don't follow why this needs an extra id, over re
xhwang 2012/10/08 19:00:35 Originally request ID was added in Decrypt()/Deliv
310 * request. By using this value, the client can associate a decoder
311 * initialization status response with an intialization request.
312 */
313 uint32_t request_id;
314 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698