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 MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // |max_resolution| and |min_resolution| are inclusive. | 27 // |max_resolution| and |min_resolution| are inclusive. |
28 struct MEDIA_EXPORT SupportedProfile { | 28 struct MEDIA_EXPORT SupportedProfile { |
29 SupportedProfile(); | 29 SupportedProfile(); |
30 ~SupportedProfile(); | 30 ~SupportedProfile(); |
31 VideoCodecProfile profile; | 31 VideoCodecProfile profile; |
32 gfx::Size max_resolution; | 32 gfx::Size max_resolution; |
33 gfx::Size min_resolution; | 33 gfx::Size min_resolution; |
34 }; | 34 }; |
35 using SupportedProfiles = std::vector<SupportedProfile>; | 35 using SupportedProfiles = std::vector<SupportedProfile>; |
36 | 36 |
37 struct MEDIA_EXPORT Capabilities { | |
38 Capabilities(); | |
39 ~Capabilities(); | |
40 // Flags that can be associated with a VDA. | |
41 enum Flags { | |
42 NO_FLAGS = 0, | |
43 | |
44 // If set, then the VDA makes no guarantees that it won't stall before | |
45 // sending all the picture buffers to the client via PictureReady. | |
46 CAN_STALL_ANY_TIME = 1 << 0, | |
Pawel Osciak
2015/12/05 00:18:55
My feeling is that "stall" is a very specific term
liberato (no reviews please)
2015/12/07 19:04:40
i agree that it is rather specific. i chose the n
| |
47 }; | |
48 | |
49 SupportedProfiles supported_profiles; | |
50 Flags flags; | |
51 }; | |
52 | |
37 // Enumeration of potential errors generated by the API. | 53 // Enumeration of potential errors generated by the API. |
38 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not | 54 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not |
39 // rearrange, reuse or remove values as they are used for gathering UMA | 55 // rearrange, reuse or remove values as they are used for gathering UMA |
40 // statistics. | 56 // statistics. |
41 enum Error { | 57 enum Error { |
42 // An operation was attempted during an incompatible decoder state. | 58 // An operation was attempted during an incompatible decoder state. |
43 ILLEGAL_STATE = 1, | 59 ILLEGAL_STATE = 1, |
44 // Invalid argument was passed to an API method. | 60 // Invalid argument was passed to an API method. |
45 INVALID_ARGUMENT, | 61 INVALID_ARGUMENT, |
46 // Encoded input is unreadable. | 62 // Encoded input is unreadable. |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 212 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
197 // uses "Destroy()" instead of trying to use the destructor. | 213 // uses "Destroy()" instead of trying to use the destructor. |
198 template <> | 214 template <> |
199 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 215 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
200 void operator()(media::VideoDecodeAccelerator* vda) const; | 216 void operator()(media::VideoDecodeAccelerator* vda) const; |
201 }; | 217 }; |
202 | 218 |
203 } // namespace std | 219 } // namespace std |
204 | 220 |
205 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 221 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |