Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 * NOTE: these must be kept in sync with the versions in media/! | 7 * NOTE: these must be kept in sync with the versions in media/! |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Video format. | 12 * Video format. |
| 13 * | 13 * |
| 14 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, | 14 * 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 | 15 * for example), and keep the values for a particular format grouped together |
| 16 * for clarity. | 16 * for clarity. |
| 17 * Note: Keep these in sync with media::VideoCodecProfile. | 17 * Note: These are translated into media::VideoCodecProfile in |
| 18 * content/renderer/pepper/ppb_video_decoder_impl.cc, keep them in sync. | |
| 18 */ | 19 */ |
| 19 [assert_size(4)] | 20 [assert_size(4)] |
| 20 enum PP_VideoDecoder_Profile { | 21 enum PP_VideoDecoder_Profile { |
| 21 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, | 22 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, |
| 22 PP_VIDEODECODER_H264PROFILE_NONE = 0, | 23 PP_VIDEODECODER_H264PROFILE_NONE = 0, |
| 23 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, | 24 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, |
| 24 PP_VIDEODECODER_H264PROFILE_MAIN = 2, | 25 PP_VIDEODECODER_H264PROFILE_MAIN = 2, |
| 25 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, | 26 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, |
| 26 PP_VIDEODECODER_H264PROFILE_HIGH = 4, | 27 PP_VIDEODECODER_H264PROFILE_HIGH = 4, |
| 27 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, | 28 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, |
| 28 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, | 29 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, |
| 29 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, | 30 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, |
| 30 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, | 31 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, |
| 31 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, | 32 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, |
| 32 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, | 33 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, |
| 33 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, | 34 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, |
| 34 PP_VIDEODECODER_VP8PROFILE_ANY = 12 | 35 PP_VIDEODECODER_VP8PROFILE_ANY = 12, |
| 36 PP_VIDEODECODER_VP9PROFILE_ANY = 13, | |
| 37 PP_VIDEODECODER_HEVCPROFILE_MAIN = 14, | |
|
ddorwin
2016/02/26 18:54:17
Does it matter that we have no plans to support ce
servolk
2016/02/26 19:50:19
I think that doesn't matter, as that can easily ch
| |
| 38 PP_VIDEODECODER_HEVCPROFILE_MAIN10 = 15, | |
| 39 PP_VIDEODECODER_HEVCPROFILE_MAIN_STILL_PICTURE = 16 | |
| 35 }; | 40 }; |
| 36 | 41 |
| 37 /** | 42 /** |
| 38 * The data structure for video bitstream buffer. | 43 * The data structure for video bitstream buffer. |
| 39 */ | 44 */ |
| 40 [assert_size(12)] | 45 [assert_size(12)] |
| 41 struct PP_VideoBitstreamBuffer_Dev { | 46 struct PP_VideoBitstreamBuffer_Dev { |
| 42 /** | 47 /** |
| 43 * Client-specified identifier for the bitstream buffer. Valid values are | 48 * Client-specified identifier for the bitstream buffer. Valid values are |
| 44 * non-negative. | 49 * non-negative. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 */ | 122 */ |
| 118 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, | 123 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, |
| 119 | 124 |
| 120 /** | 125 /** |
| 121 * A failure occurred at the browser layer or lower. Examples of such | 126 * A failure occurred at the browser layer or lower. Examples of such |
| 122 * failures include GPU hardware failures, GPU driver failures, GPU library | 127 * failures include GPU hardware failures, GPU driver failures, GPU library |
| 123 * failures, browser programming errors, and so on. | 128 * failures, browser programming errors, and so on. |
| 124 */ | 129 */ |
| 125 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 | 130 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 |
| 126 }; | 131 }; |
| OLD | NEW |