| 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/base/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/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/lazy_instance.h" | |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // This class is used to retrieve some CoreMedia library functions. It must be | 15 // This class is used to retrieve some CoreMedia library functions. It must be |
| 16 // used as a LazyInstance so that it is initialised once and in a thread-safe | 16 // used as a LazyInstance so that it is initialised once and in a thread-safe |
| 17 // way. Normally no work is done in constructors: LazyInstance is an exception. | 17 // way. Normally no work is done in constructors: LazyInstance is an exception. |
| 18 class CoreMediaLibraryInternal { | 18 class CoreMediaLibraryInternal { |
| 19 public: | 19 public: |
| 20 typedef CoreMediaGlue::CMTime (*CMTimeMakeMethod)(int64_t, int32_t); | 20 typedef CoreMediaGlue::CMTime (*CMTimeMakeMethod)(int64_t, int32_t); |
| 21 | 21 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 int* NALUnitHeaderLengthOut) { | 330 int* NALUnitHeaderLengthOut) { |
| 331 return g_coremedia_handle.Get() | 331 return g_coremedia_handle.Get() |
| 332 .cm_video_format_description_get_h264_parameter_set_at_index_method()( | 332 .cm_video_format_description_get_h264_parameter_set_at_index_method()( |
| 333 videoDesc, | 333 videoDesc, |
| 334 parameterSetIndex, | 334 parameterSetIndex, |
| 335 parameterSetPointerOut, | 335 parameterSetPointerOut, |
| 336 parameterSetSizeOut, | 336 parameterSetSizeOut, |
| 337 parameterSetCountOut, | 337 parameterSetCountOut, |
| 338 NALUnitHeaderLengthOut); | 338 NALUnitHeaderLengthOut); |
| 339 } | 339 } |
| OLD | NEW |