| 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 <stdint.h> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "media/base/mac/coremedia_glue.h" | 11 #include "media/base/mac/coremedia_glue.h" |
| 10 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 11 | 13 |
| 12 // VideoToolbox API is available in OS X 10.9 and iOS 8 (10.8 has support for | 14 // 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 | 15 // 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 | 16 // 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 | 17 // 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. | 18 // library. If it succeeds, clients can use VideoToolbox via this class. |
| 17 class MEDIA_EXPORT VideoToolboxGlue { | 19 class MEDIA_EXPORT VideoToolboxGlue { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 CFTypeRef propertyValue) const; | 102 CFTypeRef propertyValue) const; |
| 101 | 103 |
| 102 private: | 104 private: |
| 103 struct Library; | 105 struct Library; |
| 104 VideoToolboxGlue(); | 106 VideoToolboxGlue(); |
| 105 Library* library_; | 107 Library* library_; |
| 106 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); | 108 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 111 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
| OLD | NEW |