| 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 15 matching lines...) Expand all Loading... |
| 26 class MEDIA_EXPORT VideoDecodeAccelerator { | 26 class MEDIA_EXPORT VideoDecodeAccelerator { |
| 27 public: | 27 public: |
| 28 // Specification of a decoding profile supported by an decoder. | 28 // Specification of a decoding profile supported by an decoder. |
| 29 // |max_resolution| and |min_resolution| are inclusive. | 29 // |max_resolution| and |min_resolution| are inclusive. |
| 30 struct MEDIA_EXPORT SupportedProfile { | 30 struct MEDIA_EXPORT SupportedProfile { |
| 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 bool encrypted_only; |
| 36 }; | 37 }; |
| 37 using SupportedProfiles = std::vector<SupportedProfile>; | 38 using SupportedProfiles = std::vector<SupportedProfile>; |
| 38 | 39 |
| 39 struct MEDIA_EXPORT Capabilities { | 40 struct MEDIA_EXPORT Capabilities { |
| 40 Capabilities(); | 41 Capabilities(); |
| 41 Capabilities(const Capabilities& other); | 42 Capabilities(const Capabilities& other); |
| 42 ~Capabilities(); | 43 ~Capabilities(); |
| 43 | 44 |
| 44 std::string AsHumanReadableString() const; | 45 std::string AsHumanReadableString() const; |
| 45 | 46 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 252 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
| 252 // uses "Destroy()" instead of trying to use the destructor. | 253 // uses "Destroy()" instead of trying to use the destructor. |
| 253 template <> | 254 template <> |
| 254 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 255 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 255 void operator()(media::VideoDecodeAccelerator* vda) const; | 256 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace std | 259 } // namespace std |
| 259 | 260 |
| 260 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 261 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |