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 #ifndef GPU_CONFIG_GPU_INFO_H_ | 5 #ifndef GPU_CONFIG_GPU_INFO_H_ |
6 #define GPU_CONFIG_GPU_INFO_H_ | 6 #define GPU_CONFIG_GPU_INFO_H_ |
7 | 7 |
8 // Provides access to the GPU information for the system | 8 // Provides access to the GPU information for the system |
9 // on which chrome is currently running. | 9 // on which chrome is currently running. |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... | |
33 kCollectInfoSuccess = 1, | 33 kCollectInfoSuccess = 1, |
34 kCollectInfoNonFatalFailure = 2, | 34 kCollectInfoNonFatalFailure = 2, |
35 kCollectInfoFatalFailure = 3 | 35 kCollectInfoFatalFailure = 3 |
36 }; | 36 }; |
37 | 37 |
38 // Video profile. This *must* match media::VideoCodecProfile. | 38 // Video profile. This *must* match media::VideoCodecProfile. |
39 enum VideoCodecProfile { | 39 enum VideoCodecProfile { |
40 VIDEO_CODEC_PROFILE_UNKNOWN = -1, | 40 VIDEO_CODEC_PROFILE_UNKNOWN = -1, |
41 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, | 41 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, |
42 H264PROFILE_BASELINE = 0, | 42 H264PROFILE_BASELINE = 0, |
43 H264PROFILE_MAIN = 1, | 43 H264PROFILE_MAIN, |
44 H264PROFILE_EXTENDED = 2, | 44 H264PROFILE_EXTENDED, |
45 H264PROFILE_HIGH = 3, | 45 H264PROFILE_HIGH, |
46 H264PROFILE_HIGH10PROFILE = 4, | 46 H264PROFILE_HIGH10PROFILE, |
47 H264PROFILE_HIGH422PROFILE = 5, | 47 H264PROFILE_HIGH422PROFILE, |
48 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, | 48 H264PROFILE_HIGH444PREDICTIVEPROFILE, |
49 H264PROFILE_SCALABLEBASELINE = 7, | 49 H264PROFILE_SCALABLEBASELINE, |
50 H264PROFILE_SCALABLEHIGH = 8, | 50 H264PROFILE_SCALABLEHIGH, |
51 H264PROFILE_STEREOHIGH = 9, | 51 H264PROFILE_STEREOHIGH, |
52 H264PROFILE_MULTIVIEWHIGH = 10, | 52 H264PROFILE_MULTIVIEWHIGH, |
53 VP8PROFILE_ANY = 11, | 53 VP8PROFILE_ANY, |
54 VP9PROFILE_ANY = 12, | 54 VP9PROFILE_ANY, |
55 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY, | 55 // 4 profile values are reserved for VP9 profiles. |
56 HEVCPROFILE_MAIN = VP9PROFILE_ANY + 4, //=16 | |
ddorwin
2016/03/02 01:36:38
Just remove the 16 entirely. It could rot (althoug
servolk
2016/03/02 01:47:45
I'm starting to think that maybe it would be best
ddorwin
2016/03/03 22:00:21
I'm hesitant to define things we don't use, though
DaleCurtis
2016/03/03 22:05:32
Sergey, you say "the 4 VP9 profiles" above. Do we
DaleCurtis
2016/03/03 22:17:20
Thanks for the link. Lets just include those here
ddorwin
2016/03/03 22:21:17
VP9PROFILE_ANY appears 23 times [1]. We should pro
| |
57 HEVCPROFILE_MAIN10, | |
58 HEVCPROFILE_MAIN_STILL_PICTURE, | |
59 VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE, | |
56 }; | 60 }; |
57 | 61 |
58 // Specification of a decoding profile supported by a hardware decoder. | 62 // Specification of a decoding profile supported by a hardware decoder. |
59 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { | 63 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { |
60 VideoCodecProfile profile; | 64 VideoCodecProfile profile; |
61 gfx::Size max_resolution; | 65 gfx::Size max_resolution; |
62 gfx::Size min_resolution; | 66 gfx::Size min_resolution; |
63 }; | 67 }; |
64 | 68 |
65 using VideoDecodeAcceleratorSupportedProfiles = | 69 using VideoDecodeAcceleratorSupportedProfiles = |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 virtual ~Enumerator() {} | 281 virtual ~Enumerator() {} |
278 }; | 282 }; |
279 | 283 |
280 // Outputs the fields in this structure to the provided enumerator. | 284 // Outputs the fields in this structure to the provided enumerator. |
281 void EnumerateFields(Enumerator* enumerator) const; | 285 void EnumerateFields(Enumerator* enumerator) const; |
282 }; | 286 }; |
283 | 287 |
284 } // namespace gpu | 288 } // namespace gpu |
285 | 289 |
286 #endif // GPU_CONFIG_GPU_INFO_H_ | 290 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |