OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 5 #ifndef MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
6 #define MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 6 #define MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "media/base/mac/coremedia_glue.h" | 9 #include "media/base/mac/coremedia_glue.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
11 | 11 |
12 // VideoToolbox API is available in OS X 10.9 and iOS 8 (10.8 has support for | 12 // VideoToolbox API is available in OS X 10.9 and iOS 8 (10.8 has support for |
13 // software encoding, but this class exposes the 10.9 API level). Chromium | 13 // software encoding, but this class exposes the 10.9 API level). Chromium |
14 // requires OS X 10.6 or iOS 6. Linking with VideoToolbox therefore has to | 14 // requires OS X 10.6 or iOS 6. Linking with VideoToolbox therefore has to |
15 // happen at runtime. This class is defined to try and load the VideoToolbox | 15 // happen at runtime. This class is defined to try and load the VideoToolbox |
16 // library. If it succeeds, clients can use VideoToolbox via this class. | 16 // library. If it succeeds, clients can use VideoToolbox via this class. |
17 class MEDIA_EXPORT VideoToolboxGlue { | 17 class MEDIA_EXPORT VideoToolboxGlue { |
18 public: | 18 public: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 CFTypeRef propertyValue) const; | 100 CFTypeRef propertyValue) const; |
101 | 101 |
102 private: | 102 private: |
103 struct Library; | 103 struct Library; |
104 VideoToolboxGlue(); | 104 VideoToolboxGlue(); |
105 Library* library_; | 105 Library* library_; |
106 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); | 106 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); |
107 }; | 107 }; |
108 | 108 |
109 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 109 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
OLD | NEW |