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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Originally AVCaptureDevice and coming from AVCaptureDevice.h | 56 // Originally AVCaptureDevice and coming from AVCaptureDevice.h |
57 MEDIA_EXPORT | 57 MEDIA_EXPORT |
58 @interface CrAVCaptureDevice : NSObject | 58 @interface CrAVCaptureDevice : NSObject |
59 | 59 |
60 - (BOOL)hasMediaType:(NSString*)mediaType; | 60 - (BOOL)hasMediaType:(NSString*)mediaType; |
61 - (NSString*)uniqueID; | 61 - (NSString*)uniqueID; |
62 - (NSString*)localizedName; | 62 - (NSString*)localizedName; |
63 - (BOOL)isSuspended; | 63 - (BOOL)isSuspended; |
64 - (NSArray*)formats; | 64 - (NSArray*)formats; |
| 65 - (int32_t)transportType; |
65 | 66 |
66 @end | 67 @end |
67 | 68 |
68 // Originally AVCaptureDeviceFormat and coming from AVCaptureDevice.h. | 69 // Originally AVCaptureDeviceFormat and coming from AVCaptureDevice.h. |
69 MEDIA_EXPORT | 70 MEDIA_EXPORT |
70 @interface CrAVCaptureDeviceFormat : NSObject | 71 @interface CrAVCaptureDeviceFormat : NSObject |
71 | 72 |
72 - (CoreMediaGlue::CMFormatDescriptionRef)formatDescription; | 73 - (CoreMediaGlue::CMFormatDescriptionRef)formatDescription; |
73 - (NSArray*)videoSupportedFrameRateRanges; | 74 - (NSArray*)videoSupportedFrameRateRanges; |
74 | 75 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Class to provide access to class methods of AVCaptureDeviceInput. | 162 // Class to provide access to class methods of AVCaptureDeviceInput. |
162 MEDIA_EXPORT | 163 MEDIA_EXPORT |
163 @interface AVCaptureDeviceInputGlue : NSObject | 164 @interface AVCaptureDeviceInputGlue : NSObject |
164 | 165 |
165 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device | 166 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device |
166 error:(NSError**)outError; | 167 error:(NSError**)outError; |
167 | 168 |
168 @end | 169 @end |
169 | 170 |
170 #endif // MEDIA_VIDEO_CAPTURE_MAC_AVFOUNDATION_GLUE_H_ | 171 #endif // MEDIA_VIDEO_CAPTURE_MAC_AVFOUNDATION_GLUE_H_ |
OLD | NEW |