OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "media/video/video_decode_accelerator.h" | 5 #include "media/video/video_decode_accelerator.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return GL_RGBA; | 44 return GL_RGBA; |
45 } | 45 } |
46 | 46 |
47 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() | 47 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() |
48 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) {} | 48 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) {} |
49 | 49 |
50 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} | 50 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {} |
51 | 51 |
52 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} | 52 VideoDecodeAccelerator::Capabilities::Capabilities() : flags(NO_FLAGS) {} |
53 | 53 |
| 54 VideoDecodeAccelerator::Capabilities::Capabilities(const Capabilities& other) = |
| 55 default; |
| 56 |
54 VideoDecodeAccelerator::Capabilities::~Capabilities() {} | 57 VideoDecodeAccelerator::Capabilities::~Capabilities() {} |
55 | 58 |
56 std::string VideoDecodeAccelerator::Capabilities::AsHumanReadableString() | 59 std::string VideoDecodeAccelerator::Capabilities::AsHumanReadableString() |
57 const { | 60 const { |
58 std::ostringstream s; | 61 std::ostringstream s; |
59 s << "["; | 62 s << "["; |
60 for (const SupportedProfile& sp : supported_profiles) { | 63 for (const SupportedProfile& sp : supported_profiles) { |
61 s << " " << GetProfileName(sp.profile) << ": " << sp.min_resolution.width() | 64 s << " " << GetProfileName(sp.profile) << ": " << sp.min_resolution.width() |
62 << "x" << sp.min_resolution.height() << "->" << sp.max_resolution.width() | 65 << "x" << sp.min_resolution.height() << "->" << sp.max_resolution.width() |
63 << "x" << sp.max_resolution.height(); | 66 << "x" << sp.max_resolution.height(); |
64 } | 67 } |
65 s << "]"; | 68 s << "]"; |
66 return s.str(); | 69 return s.str(); |
67 } | 70 } |
68 | 71 |
69 } // namespace media | 72 } // namespace media |
70 | 73 |
71 namespace std { | 74 namespace std { |
72 | 75 |
73 void default_delete<media::VideoDecodeAccelerator>::operator()( | 76 void default_delete<media::VideoDecodeAccelerator>::operator()( |
74 media::VideoDecodeAccelerator* vda) const { | 77 media::VideoDecodeAccelerator* vda) const { |
75 vda->Destroy(); | 78 vda->Destroy(); |
76 } | 79 } |
77 | 80 |
78 } // namespace std | 81 } // namespace std |
OLD | NEW |