OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 * NOTE: these must be kept in sync with the versions in media/! | 7 * NOTE: these must be kept in sync with the versions in |
| 8 * media/video/video_decode_accelerator.h! |
8 */ | 9 */ |
9 | 10 |
10 | 11 |
11 /** | 12 /** |
12 * Video format. | 13 * Video format. |
13 * | 14 * |
14 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, | 15 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, |
15 * for example), and keep the values for a particular format grouped together | 16 * for example), and keep the values for a particular format grouped together |
16 * for clarity. | 17 * for clarity. |
17 * Note: Keep these in sync with media::VideoCodecProfile. | |
18 */ | 18 */ |
19 [assert_size(4)] | 19 [assert_size(4)] |
20 enum PP_VideoDecoder_Profile { | 20 enum PP_VideoDecoder_Profile { |
21 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, | |
22 PP_VIDEODECODER_H264PROFILE_NONE = 0, | 21 PP_VIDEODECODER_H264PROFILE_NONE = 0, |
23 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, | 22 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, |
24 PP_VIDEODECODER_H264PROFILE_MAIN = 2, | 23 PP_VIDEODECODER_H264PROFILE_MAIN = 2, |
25 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, | 24 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, |
26 PP_VIDEODECODER_H264PROFILE_HIGH = 4, | 25 PP_VIDEODECODER_H264PROFILE_HIGH = 4, |
27 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, | 26 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, |
28 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, | 27 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, |
29 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, | 28 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, |
30 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, | 29 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, |
31 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, | 30 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, |
32 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, | 31 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, |
33 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, | 32 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11 |
34 PP_VIDEODECODER_PROFILE_MAX = PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH | |
35 }; | 33 }; |
36 | 34 |
37 /** | 35 /** |
38 * The data structure for video bitstream buffer. | 36 * The data structure for video bitstream buffer. |
39 */ | 37 */ |
40 [assert_size(12)] | 38 [assert_size(12)] |
41 struct PP_VideoBitstreamBuffer_Dev { | 39 struct PP_VideoBitstreamBuffer_Dev { |
42 /** | 40 /** |
43 * Client-specified identifier for the bitstream buffer. | 41 * Client-specified identifier for the bitstream buffer. |
44 */ | 42 */ |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 */ | 115 */ |
118 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, | 116 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, |
119 | 117 |
120 /** | 118 /** |
121 * A failure occurred at the browser layer or lower. Examples of such | 119 * A failure occurred at the browser layer or lower. Examples of such |
122 * failures include GPU hardware failures, GPU driver failures, GPU library | 120 * failures include GPU hardware failures, GPU driver failures, GPU library |
123 * failures, browser programming errors, and so on. | 121 * failures, browser programming errors, and so on. |
124 */ | 122 */ |
125 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 | 123 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 |
126 }; | 124 }; |
OLD | NEW |