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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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/base/mac/video_frame_mac.cc » ('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/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/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h"
12 13
13 namespace { 14 namespace {
14 15
15 // 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
16 // 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
17 // 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.
18 class CoreMediaLibraryInternal { 19 class CoreMediaLibraryInternal {
19 public: 20 public:
20 typedef CoreMediaGlue::CMTime (*CMTimeMakeMethod)(int64_t, int32_t); 21 typedef CoreMediaGlue::CMTime (*CMTimeMakeMethod)(int64_t, int32_t);
21 22
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 int* NALUnitHeaderLengthOut) { 350 int* NALUnitHeaderLengthOut) {
350 return g_coremedia_handle.Get() 351 return g_coremedia_handle.Get()
351 .cm_video_format_description_get_h264_parameter_set_at_index_method()( 352 .cm_video_format_description_get_h264_parameter_set_at_index_method()(
352 videoDesc, 353 videoDesc,
353 parameterSetIndex, 354 parameterSetIndex,
354 parameterSetPointerOut, 355 parameterSetPointerOut,
355 parameterSetSizeOut, 356 parameterSetSizeOut,
356 parameterSetCountOut, 357 parameterSetCountOut,
357 NALUnitHeaderLengthOut); 358 NALUnitHeaderLengthOut);
358 } 359 }
OLDNEW
« no previous file with comments | « media/base/mac/coremedia_glue.h ('k') | media/base/mac/video_frame_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698