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