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

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: 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 {
Ami GONE FROM CHROMIUM 2014/04/09 22:12:41 "MediaCodec" implies to me these values would matc
bbudge 2014/04/11 17:15:16 I'm open to naming suggestions :) I'm using MediaC
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 video bitstream buffer. This struct is read-only and
28 * should not be modified by the plugin.
dmichael (off chromium) 2014/04/09 21:54:07 So this comment only refers to the struct, but the
bbudge 2014/04/11 17:15:16 Eliminated this struct.
29 */
30 struct PP_MediaCodec_BitstreamBuffer {
31 /**
32 * Buffer id. This can be used by the plugin to match bitstream buffers sent
33 * to the decoder with picture buffers received from the decoder.
34 */
35 int32_t buffer_id;
36
37 /**
38 * Size of buffer in bytes.
39 */
40 uint32_t size;
41
42 /**
43 * Pointer to buffer data. The plugin can safely write to the address range
44 * [addr, addr + size - 1].
45 */
46 mem_t addr;
47 };
48
49 /**
50 * Struct describing a decoded video picture. The decoded picture data from the
51 * bitstream buffer corresponding to |buffer_id| is stored in the GL texture
52 * corresponding to |texture_id|. This struct is read-only and should not be
53 * modified by the plugin.
54 */
55 struct PP_MediaCodec_PictureBuffer {
56 /**
57 * Identifier of the last bitstream buffer which decoded into this picture.
58 */
59 int32_t buffer_id;
60
61 /**
62 * Texture ID in the plugin's GL context. The plugin can use this to render
63 * the decoded picture.
64 */
65 uint32_t texture_id;
66
67 /**
68 * The type of GL texture used to hold the decoded picture. The possible
69 * values are:
70 * GL_TEXTURE_2D
71 * GL_TEXTURE_RECTANGLE_ARB
72 */
73 uint32_t texture_target;
74
75 /**
76 * Dimensions of the texture holding the decoded picture.
Ami GONE FROM CHROMIUM 2014/04/09 22:12:41 Elsewhere (cf. media::VideoFrame) it's been import
bbudge 2014/04/11 17:15:16 I'm not sure where that information would come fro
77 */
78 PP_Size texture_size;
79 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698