Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: media/base/mac/coremedia_glue.mm

Issue 518313003: Move Mac media glue code from media/video/capture/mac to media/base/mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/mac/coremedia_glue.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « media/base/mac/coremedia_glue.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698