| 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 /* From dev/pp_video_dev.idl modified Wed Oct 5 08:49:09 2011. */ | 6 /* From dev/pp_video_dev.idl modified Fri Nov 11 20:20:20 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ |
| 9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ | 9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_size.h" | 13 #include "ppapi/c/pp_size.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * @file | 17 * @file |
| 18 * NOTE: these must be kept in sync with the versions in | 18 * NOTE: these must be kept in sync with the versions in |
| 19 * media/video/video_decode_accelerator.h! | 19 * media/video/video_decode_accelerator.h! |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * @addtogroup Enums | 24 * @addtogroup Enums |
| 25 * @{ | 25 * @{ |
| 26 */ | 26 */ |
| 27 /** | 27 /** |
| 28 * Video format. | 28 * Video format. |
| 29 * | 29 * |
| 30 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, | 30 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, |
| 31 * for example), and keep the values for a particular format grouped together | 31 * for example), and keep the values for a particular format grouped together |
| 32 * for clarity. | 32 * for clarity. |
| 33 */ | 33 */ |
| 34 typedef enum { | 34 typedef enum { |
| 35 PP_VIDEODECODER_H264PROFILE_NONE = 0, | 35 PP_VIDEODECODER_H264PROFILE_NONE = 0, |
| 36 PP_VIDEODECODER_H264PROFILE_BASELINE, | 36 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, |
| 37 PP_VIDEODECODER_H264PROFILE_MAIN, | 37 PP_VIDEODECODER_H264PROFILE_MAIN = 2, |
| 38 PP_VIDEODECODER_H264PROFILE_EXTENDED, | 38 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, |
| 39 PP_VIDEODECODER_H264PROFILE_HIGH, | 39 PP_VIDEODECODER_H264PROFILE_HIGH = 4, |
| 40 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE, | 40 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, |
| 41 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE, | 41 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, |
| 42 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE, | 42 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, |
| 43 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE, | 43 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, |
| 44 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH, | 44 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, |
| 45 PP_VIDEODECODER_H264PROFILE_STEREOHIGH, | 45 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, |
| 46 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH | 46 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11 |
| 47 } PP_VideoDecoder_Profile; | 47 } PP_VideoDecoder_Profile; |
| 48 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecoder_Profile, 4); | 48 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecoder_Profile, 4); |
| 49 /** | 49 /** |
| 50 * @} | 50 * @} |
| 51 */ | 51 */ |
| 52 | 52 |
| 53 /** | 53 /** |
| 54 * @addtogroup Structs | 54 * @addtogroup Structs |
| 55 * @{ | 55 * @{ |
| 56 */ | 56 */ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 * Note: Keep these in sync with media::VideoDecodeAccelerator::Error. | 123 * Note: Keep these in sync with media::VideoDecodeAccelerator::Error. |
| 124 */ | 124 */ |
| 125 typedef enum { | 125 typedef enum { |
| 126 /** | 126 /** |
| 127 * An operation was attempted during an incompatible decoder state. | 127 * An operation was attempted during an incompatible decoder state. |
| 128 */ | 128 */ |
| 129 PP_VIDEODECODERERROR_ILLEGAL_STATE = 1, | 129 PP_VIDEODECODERERROR_ILLEGAL_STATE = 1, |
| 130 /** | 130 /** |
| 131 * Invalid argument was passed to an API method. | 131 * Invalid argument was passed to an API method. |
| 132 */ | 132 */ |
| 133 PP_VIDEODECODERERROR_INVALID_ARGUMENT, | 133 PP_VIDEODECODERERROR_INVALID_ARGUMENT = 2, |
| 134 /** | 134 /** |
| 135 * Encoded input is unreadable. | 135 * Encoded input is unreadable. |
| 136 */ | 136 */ |
| 137 PP_VIDEODECODERERROR_UNREADABLE_INPUT, | 137 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, |
| 138 /** | 138 /** |
| 139 * A failure occurred at the browser layer or lower. Examples of such | 139 * A failure occurred at the browser layer or lower. Examples of such |
| 140 * failures include GPU hardware failures, GPU driver failures, GPU library | 140 * failures include GPU hardware failures, GPU driver failures, GPU library |
| 141 * failures, browser programming errors, and so on. | 141 * failures, browser programming errors, and so on. |
| 142 */ | 142 */ |
| 143 PP_VIDEODECODERERROR_PLATFORM_FAILURE | 143 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 |
| 144 } PP_VideoDecodeError_Dev; | 144 } PP_VideoDecodeError_Dev; |
| 145 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); | 145 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); |
| 146 /** | 146 /** |
| 147 * @} | 147 * @} |
| 148 */ | 148 */ |
| 149 | 149 |
| 150 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ | 150 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ |
| 151 | 151 |
| OLD | NEW |