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

Side by Side Diff: ppapi/api/pp_media_codec.idl

Issue 210373003: Pepper VideoDecoder API definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eliminate GetBitstreamBuffer function. Add 'picture_id' parameter. Created 6 years, 8 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
(Empty)
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /**
7 * Video decoder profiles.
8 */
9 enum PP_MediaCodec_Profile {
10 PP_MEDIACODEC_H264PROFILE_BASELINE = 0,
11 PP_MEDIACODEC_H264PROFILE_MAIN = 1,
12 PP_MEDIACODEC_H264PROFILE_EXTENDED = 2,
13 PP_MEDIACODEC_H264PROFILE_HIGH = 3,
14 PP_MEDIACODEC_H264PROFILE_HIGH10PROFILE = 4,
15 PP_MEDIACODEC_H264PROFILE_HIGH422PROFILE = 5,
16 PP_MEDIACODEC_H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
17 PP_MEDIACODEC_H264PROFILE_SCALABLEBASELINE = 7,
18 PP_MEDIACODEC_H264PROFILE_SCALABLEHIGH = 8,
19 PP_MEDIACODEC_H264PROFILE_STEREOHIGH = 9,
20 PP_MEDIACODEC_H264PROFILE_MULTIVIEWHIGH = 10,
21 PP_MEDIACODEC_VP8PROFILE_MAIN = 11,
22 PP_MEDIACODEC_VP9PROFILE_MAIN = 12,
23 PP_MEDIACODEC_PROFILE_MAX = PP_MEDIACODEC_VP9PROFILE_MAIN
24 };
25
26 /**
27 * Struct describing a decoded video picture. The decoded picture data from the
28 * bitstream buffer corresponding to |picture_id| is stored in the GL texture
29 * corresponding to |texture_id|.
30 */
31 struct PP_MediaCodec_PictureBuffer {
32 /**
33 * Identifier of the last bitstream buffer which decoded into this picture.
34 * See the PPB_MediaCodecVideoDecoder function Decode() for more details.
35 */
36 int32_t picture_id;
37
38 /**
39 * Texture ID in the plugin's GL context. The plugin can use this to render
igorc 2014/04/11 22:13:18 Could you elaborate on what plugin's GL context is
bbudge 2014/04/16 00:51:05 Done.
40 * the decoded picture.
41 */
42 uint32_t texture_id;
43
44 /**
45 * The type of GL texture used to hold the decoded picture. The possible
46 * values are:
47 * GL_TEXTURE_2D
48 * GL_TEXTURE_RECTANGLE_ARB
49 */
50 uint32_t texture_target;
igorc 2014/04/11 22:13:18 Could you also document or expose pixel format? Si
bbudge 2014/04/16 00:51:05 Done.
51
52 /**
53 * Dimensions of the texture holding the decoded picture.
54 */
55 PP_Size texture_size;
56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698