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 #include "media/base/mac/videotoolbox_glue.h" | 5 #include "media/base/mac/videotoolbox_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/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 | 13 |
13 // This class stores VideoToolbox library symbol pointers. | 14 // This class stores VideoToolbox library symbol pointers. |
14 struct VideoToolboxGlue::Library { | 15 struct VideoToolboxGlue::Library { |
15 typedef OSStatus (*VTCompressionSessionCreateMethod)( | 16 typedef OSStatus (*VTCompressionSessionCreateMethod)( |
16 CFAllocatorRef, | 17 CFAllocatorRef, |
17 int32_t, | 18 int32_t, |
18 int32_t, | 19 int32_t, |
19 CoreMediaGlue::CMVideoCodecType, | 20 CoreMediaGlue::CMVideoCodecType, |
20 CFDictionaryRef, | 21 CFDictionaryRef, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 KEY_ACCESSOR(kVTCompressionPropertyKey_TransferFunction) | 225 KEY_ACCESSOR(kVTCompressionPropertyKey_TransferFunction) |
225 KEY_ACCESSOR(kVTCompressionPropertyKey_YCbCrMatrix) | 226 KEY_ACCESSOR(kVTCompressionPropertyKey_YCbCrMatrix) |
226 KEY_ACCESSOR(kVTEncodeFrameOptionKey_ForceKeyFrame) | 227 KEY_ACCESSOR(kVTEncodeFrameOptionKey_ForceKeyFrame) |
227 KEY_ACCESSOR(kVTProfileLevel_H264_Baseline_AutoLevel) | 228 KEY_ACCESSOR(kVTProfileLevel_H264_Baseline_AutoLevel) |
228 KEY_ACCESSOR(kVTProfileLevel_H264_Main_AutoLevel) | 229 KEY_ACCESSOR(kVTProfileLevel_H264_Main_AutoLevel) |
229 KEY_ACCESSOR(kVTProfileLevel_H264_Extended_AutoLevel) | 230 KEY_ACCESSOR(kVTProfileLevel_H264_Extended_AutoLevel) |
230 KEY_ACCESSOR(kVTProfileLevel_H264_High_AutoLevel) | 231 KEY_ACCESSOR(kVTProfileLevel_H264_High_AutoLevel) |
231 KEY_ACCESSOR(kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder) | 232 KEY_ACCESSOR(kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder) |
232 | 233 |
233 #undef KEY_ACCESSOR | 234 #undef KEY_ACCESSOR |
OLD | NEW |