OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/capture/mac/coremedia_glue.h" | 5 #include "media/base/mac/coremedia_glue.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #import <Foundation/NSBundle.h> | |
Robert Sesek
2014/09/02 18:52:33
Foundation.h, never the leaf headers.
jfroy
2014/09/02 20:58:52
Done.
| |
9 #import <Foundation/NSPathUtilities.h> | |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
11 | 13 |
12 namespace { | 14 namespace { |
13 | 15 |
14 // This class is used to retrieve some CoreMedia library functions. It must be | 16 // This class is used to retrieve some CoreMedia library functions. It must be |
15 // used as a LazyInstance so that it is initialised once and in a thread-safe | 17 // used as a LazyInstance so that it is initialised once and in a thread-safe |
16 // way. Normally no work is done in constructors: LazyInstance is an exception. | 18 // way. Normally no work is done in constructors: LazyInstance is an exception. |
17 class CoreMediaLibraryInternal { | 19 class CoreMediaLibraryInternal { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 .cm_format_description_get_media_sub_type_method()(desc); | 107 .cm_format_description_get_media_sub_type_method()(desc); |
106 } | 108 } |
107 | 109 |
108 // static | 110 // static |
109 CoreMediaGlue::CMVideoDimensions | 111 CoreMediaGlue::CMVideoDimensions |
110 CoreMediaGlue::CMVideoFormatDescriptionGetDimensions( | 112 CoreMediaGlue::CMVideoFormatDescriptionGetDimensions( |
111 CMVideoFormatDescriptionRef videoDesc) { | 113 CMVideoFormatDescriptionRef videoDesc) { |
112 return g_coremedia_handle.Get() | 114 return g_coremedia_handle.Get() |
113 .cm_video_format_description_get_dimensions_method()(videoDesc); | 115 .cm_video_format_description_get_dimensions_method()(videoDesc); |
114 } | 116 } |
OLD | NEW |