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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 20 matching lines...) Expand all Loading... |
31 SupportedProfile(); | 31 SupportedProfile(); |
32 ~SupportedProfile(); | 32 ~SupportedProfile(); |
33 VideoCodecProfile profile; | 33 VideoCodecProfile profile; |
34 gfx::Size max_resolution; | 34 gfx::Size max_resolution; |
35 gfx::Size min_resolution; | 35 gfx::Size min_resolution; |
36 }; | 36 }; |
37 using SupportedProfiles = std::vector<SupportedProfile>; | 37 using SupportedProfiles = std::vector<SupportedProfile>; |
38 | 38 |
39 struct MEDIA_EXPORT Capabilities { | 39 struct MEDIA_EXPORT Capabilities { |
40 Capabilities(); | 40 Capabilities(); |
| 41 Capabilities(const Capabilities& other); |
41 ~Capabilities(); | 42 ~Capabilities(); |
42 | 43 |
43 std::string AsHumanReadableString() const; | 44 std::string AsHumanReadableString() const; |
44 | 45 |
45 // Flags that can be associated with a VDA. | 46 // Flags that can be associated with a VDA. |
46 enum Flags { | 47 enum Flags { |
47 NO_FLAGS = 0, | 48 NO_FLAGS = 0, |
48 | 49 |
49 // Normally, the VDA is required to be able to provide all PictureBuffers | 50 // Normally, the VDA is required to be able to provide all PictureBuffers |
50 // to the client via PictureReady(), even if the client does not return | 51 // to the client via PictureReady(), even if the client does not return |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 251 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
251 // uses "Destroy()" instead of trying to use the destructor. | 252 // uses "Destroy()" instead of trying to use the destructor. |
252 template <> | 253 template <> |
253 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 254 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
254 void operator()(media::VideoDecodeAccelerator* vda) const; | 255 void operator()(media::VideoDecodeAccelerator* vda) const; |
255 }; | 256 }; |
256 | 257 |
257 } // namespace std | 258 } // namespace std |
258 | 259 |
259 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 260 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |