| 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 // AVFoundation API is only introduced in Mac OS X > 10.6, and there is only one | 5 // AVFoundation API is only introduced in Mac OS X > 10.6, and there is only one |
| 6 // build of Chromium, so the (potential) linking with AVFoundation has to happen | 6 // build of Chromium, so the (potential) linking with AVFoundation has to happen |
| 7 // in runtime. For this to be clean, an AVFoundationGlue class is defined to try | 7 // in runtime. For this to be clean, an AVFoundationGlue class is defined to try |
| 8 // and load these AVFoundation system libraries. If it succeeds, subsequent | 8 // and load these AVFoundation system libraries. If it succeeds, subsequent |
| 9 // clients can use AVFoundation via the rest of the classes declared in this | 9 // clients can use AVFoundation via the rest of the classes declared in this |
| 10 // file. | 10 // file. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Originally from AVCaptureSession.h but in global namespace. | 40 // Originally from AVCaptureSession.h but in global namespace. |
| 41 static NSString* AVCaptureSessionRuntimeErrorNotification(); | 41 static NSString* AVCaptureSessionRuntimeErrorNotification(); |
| 42 static NSString* AVCaptureSessionDidStopRunningNotification(); | 42 static NSString* AVCaptureSessionDidStopRunningNotification(); |
| 43 static NSString* AVCaptureSessionErrorKey(); | 43 static NSString* AVCaptureSessionErrorKey(); |
| 44 static NSString* AVCaptureSessionPreset320x240(); | 44 static NSString* AVCaptureSessionPreset320x240(); |
| 45 static NSString* AVCaptureSessionPreset640x480(); | 45 static NSString* AVCaptureSessionPreset640x480(); |
| 46 static NSString* AVCaptureSessionPreset1280x720(); | 46 static NSString* AVCaptureSessionPreset1280x720(); |
| 47 | 47 |
| 48 // Originally from AVVideoSettings.h but in global namespace. | 48 // Originally from AVVideoSettings.h but in global namespace. |
| 49 static NSString* AVVideoScalingModeKey(); | 49 static NSString* AVVideoScalingModeKey(); |
| 50 static NSString* AVVideoScalingModeResizeAspect(); | 50 static NSString* AVVideoScalingModeResizeAspectFill(); |
| 51 | 51 |
| 52 static Class AVCaptureSessionClass(); | 52 static Class AVCaptureSessionClass(); |
| 53 static Class AVCaptureVideoDataOutputClass(); | 53 static Class AVCaptureVideoDataOutputClass(); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 DISALLOW_IMPLICIT_CONSTRUCTORS(AVFoundationGlue); | 56 DISALLOW_IMPLICIT_CONSTRUCTORS(AVFoundationGlue); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 // Originally AVCaptureDevice and coming from AVCaptureDevice.h | 59 // Originally AVCaptureDevice and coming from AVCaptureDevice.h |
| 60 MEDIA_EXPORT | 60 MEDIA_EXPORT |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Class to provide access to class methods of AVCaptureDeviceInput. | 168 // Class to provide access to class methods of AVCaptureDeviceInput. |
| 169 MEDIA_EXPORT | 169 MEDIA_EXPORT |
| 170 @interface AVCaptureDeviceInputGlue : NSObject | 170 @interface AVCaptureDeviceInputGlue : NSObject |
| 171 | 171 |
| 172 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device | 172 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device |
| 173 error:(NSError**)outError; | 173 error:(NSError**)outError; |
| 174 | 174 |
| 175 @end | 175 @end |
| 176 | 176 |
| 177 #endif // MEDIA_VIDEO_CAPTURE_MAC_AVFOUNDATION_GLUE_H_ | 177 #endif // MEDIA_VIDEO_CAPTURE_MAC_AVFOUNDATION_GLUE_H_ |
| OLD | NEW |