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 /* From dev/pp_video_dev.idl modified Tue Apr 30 14:58:38 2013. */ | 6 /* From dev/pp_video_dev.idl modified Mon Feb 29 19:32:05 2016. */ |
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 media/! | 18 * NOTE: these must be kept in sync with the versions in media/! |
19 */ | 19 */ |
20 | 20 |
21 | 21 |
22 /** | 22 /** |
23 * @addtogroup Enums | 23 * @addtogroup Enums |
24 * @{ | 24 * @{ |
25 */ | 25 */ |
26 /** | 26 /** |
27 * Video format. | 27 * Video format. |
28 * | 28 * |
29 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, | 29 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, |
30 * for example), and keep the values for a particular format grouped together | 30 * for example), and keep the values for a particular format grouped together |
31 * for clarity. | 31 * for clarity. |
32 * Note: Keep these in sync with media::VideoCodecProfile. | 32 * Note: These are translated into media::VideoCodecProfile in |
| 33 * content/renderer/pepper/ppb_video_decoder_impl.cc, keep them in sync. |
33 */ | 34 */ |
34 typedef enum { | 35 typedef enum { |
35 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, | 36 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, |
36 PP_VIDEODECODER_H264PROFILE_NONE = 0, | 37 PP_VIDEODECODER_H264PROFILE_NONE = 0, |
37 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, | 38 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, |
38 PP_VIDEODECODER_H264PROFILE_MAIN = 2, | 39 PP_VIDEODECODER_H264PROFILE_MAIN = 2, |
39 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, | 40 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, |
40 PP_VIDEODECODER_H264PROFILE_HIGH = 4, | 41 PP_VIDEODECODER_H264PROFILE_HIGH = 4, |
41 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, | 42 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, |
42 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, | 43 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, |
43 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, | 44 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, |
44 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, | 45 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, |
45 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, | 46 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, |
46 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, | 47 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, |
47 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, | 48 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, |
48 PP_VIDEODECODER_VP8PROFILE_ANY = 12 | 49 PP_VIDEODECODER_VP8PROFILE_ANY = 12, |
| 50 PP_VIDEODECODER_VP9PROFILE_ANY = 13, |
| 51 /* 4 profile values are reserved for VP9 profiles. |
| 52 * PP_VIDEODECODER_HEVCPROFILE_MAIN = VP9PROFILE_ANY + 4 */ |
| 53 PP_VIDEODECODER_HEVCPROFILE_MAIN = 17, |
| 54 PP_VIDEODECODER_HEVCPROFILE_MAIN10 = 18, |
| 55 PP_VIDEODECODER_HEVCPROFILE_MAIN_STILL_PICTURE = 19 |
49 } PP_VideoDecoder_Profile; | 56 } PP_VideoDecoder_Profile; |
50 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecoder_Profile, 4); | 57 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecoder_Profile, 4); |
51 /** | 58 /** |
52 * @} | 59 * @} |
53 */ | 60 */ |
54 | 61 |
55 /** | 62 /** |
56 * @addtogroup Structs | 63 * @addtogroup Structs |
57 * @{ | 64 * @{ |
58 */ | 65 */ |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 */ | 151 */ |
145 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 | 152 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 |
146 } PP_VideoDecodeError_Dev; | 153 } PP_VideoDecodeError_Dev; |
147 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); | 154 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); |
148 /** | 155 /** |
149 * @} | 156 * @} |
150 */ | 157 */ |
151 | 158 |
152 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ | 159 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ |
153 | 160 |
OLD | NEW |