OLD | NEW |
---|---|
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 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 | 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 * Video profiles. | 7 * Video profiles. |
8 */ | 8 */ |
9 enum PP_VideoProfile { | 9 enum PP_VideoProfile { |
10 PP_VIDEOPROFILE_H264BASELINE = 0, | 10 PP_VIDEOPROFILE_H264BASELINE = 0, |
11 PP_VIDEOPROFILE_H264MAIN = 1, | 11 PP_VIDEOPROFILE_H264MAIN = 1, |
12 PP_VIDEOPROFILE_H264EXTENDED = 2, | 12 PP_VIDEOPROFILE_H264EXTENDED = 2, |
13 PP_VIDEOPROFILE_H264HIGH = 3, | 13 PP_VIDEOPROFILE_H264HIGH = 3, |
14 PP_VIDEOPROFILE_H264HIGH10PROFILE = 4, | 14 PP_VIDEOPROFILE_H264HIGH10PROFILE = 4, |
15 PP_VIDEOPROFILE_H264HIGH422PROFILE = 5, | 15 PP_VIDEOPROFILE_H264HIGH422PROFILE = 5, |
16 PP_VIDEOPROFILE_H264HIGH444PREDICTIVEPROFILE = 6, | 16 PP_VIDEOPROFILE_H264HIGH444PREDICTIVEPROFILE = 6, |
17 PP_VIDEOPROFILE_H264SCALABLEBASELINE = 7, | 17 PP_VIDEOPROFILE_H264SCALABLEBASELINE = 7, |
18 PP_VIDEOPROFILE_H264SCALABLEHIGH = 8, | 18 PP_VIDEOPROFILE_H264SCALABLEHIGH = 8, |
19 PP_VIDEOPROFILE_H264STEREOHIGH = 9, | 19 PP_VIDEOPROFILE_H264STEREOHIGH = 9, |
20 PP_VIDEOPROFILE_H264MULTIVIEWHIGH = 10, | 20 PP_VIDEOPROFILE_H264MULTIVIEWHIGH = 10, |
21 PP_VIDEOPROFILE_VP8_ANY = 11, | 21 PP_VIDEOPROFILE_VP8_ANY = 11, |
22 PP_VIDEOPROFILE_VP9_ANY = 12, | 22 PP_VIDEOPROFILE_VP9_ANY = 12, |
23 PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY | 23 PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY |
24 }; | 24 }; |
25 | 25 |
26 /** | 26 /** |
27 * Hardware acceleration options. | |
28 */ | |
29 enum PP_HardwareAcceleration { | |
30 /** Create a hardware accelerated resource only. */ | |
31 PP_HARDWAREACCELERATION_ONLY = 0, | |
32 | |
33 /** | |
34 * Create a hardware accelerated resource if possible. Otherwise, fall back | |
35 * to the software implementation. | |
36 */ | |
37 PP_HARDWAREACCELERATION_WITHFALLBACK = 1, | |
38 | |
39 /** Create the software implementation only. */ | |
40 PP_HARDWAREACCELERATION_NONE = 2 | |
41 }; | |
Tom Sepez
2014/08/22 17:13:01
nit: generally, the patter is to add here:
PP_HA
bbudge
2014/08/22 21:24:52
Done.
| |
42 | |
43 /** | |
27 * Struct describing a decoded video picture. The decoded picture data is stored | 44 * Struct describing a decoded video picture. The decoded picture data is stored |
28 * in the GL texture corresponding to |texture_id|. The plugin can determine | 45 * in the GL texture corresponding to |texture_id|. The plugin can determine |
29 * which Decode call generated the picture using |decode_id|. | 46 * which Decode call generated the picture using |decode_id|. |
30 */ | 47 */ |
31 struct PP_VideoPicture { | 48 struct PP_VideoPicture { |
32 /** | 49 /** |
33 * |decode_id| parameter of the Decode call which generated this picture. | 50 * |decode_id| parameter of the Decode call which generated this picture. |
34 * See the PPB_VideoDecoder function Decode() for more details. | 51 * See the PPB_VideoDecoder function Decode() for more details. |
35 */ | 52 */ |
36 uint32_t decode_id; | 53 uint32_t decode_id; |
(...skipping 12 matching lines...) Expand all Loading... | |
49 * | 66 * |
50 * The pixel format of the texture is GL_RGBA. | 67 * The pixel format of the texture is GL_RGBA. |
51 */ | 68 */ |
52 uint32_t texture_target; | 69 uint32_t texture_target; |
53 | 70 |
54 /** | 71 /** |
55 * Dimensions of the texture holding the decoded picture. | 72 * Dimensions of the texture holding the decoded picture. |
56 */ | 73 */ |
57 PP_Size texture_size; | 74 PP_Size texture_size; |
58 }; | 75 }; |
OLD | NEW |