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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h

Issue 2944753002: Fix AVFoundation framework import (Closed)
Patch Set: Created 3 years, 6 months 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 #import <AVFoundation/AVFoundation.h>
12 13
13 #import <WebRTC/RTCMacros.h> 14 #import <WebRTC/RTCMacros.h>
14 #import <WebRTC/RTCVideoCapturer.h> 15 #import <WebRTC/RTCVideoCapturer.h>
15 16
16 NS_ASSUME_NONNULL_BEGIN 17 NS_ASSUME_NONNULL_BEGIN
17 18
18 RTC_EXPORT 19 RTC_EXPORT
19 // Camera capture that implements RTCVideoCapturer. Delivers frames to a RTCVide oCapturerDelegate 20 // Camera capture that implements RTCVideoCapturer. Delivers frames to a RTCVide oCapturerDelegate
20 // (usually RTCVideoSource). 21 // (usually RTCVideoSource).
21 @interface RTCCameraVideoCapturer : RTCVideoCapturer 22 @interface RTCCameraVideoCapturer : RTCVideoCapturer
22 23
23 // Capture session that is used for capturing. Valid from initialization to deal loc. 24 // Capture session that is used for capturing. Valid from initialization to deal loc.
24 @property(readonly, nonatomic) AVCaptureSession *captureSession; 25 @property(readonly, nonatomic) AVCaptureSession *captureSession;
25 26
26 // Returns list of available capture devices that support video capture. 27 // Returns list of available capture devices that support video capture.
27 + (NSArray<AVCaptureDevice *> *)captureDevices; 28 + (NSArray<AVCaptureDevice *> *)captureDevices;
28 // Returns list of formats that are supported by this class for this device. 29 // Returns list of formats that are supported by this class for this device.
29 + (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device; 30 + (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device;
30 31
31 // Starts and stops the capture session asynchronously. 32 // Starts and stops the capture session asynchronously.
32 - (void)startCaptureWithDevice:(AVCaptureDevice *)device 33 - (void)startCaptureWithDevice:(AVCaptureDevice *)device
33 format:(AVCaptureDeviceFormat *)format 34 format:(AVCaptureDeviceFormat *)format
34 fps:(NSInteger)fps; 35 fps:(NSInteger)fps;
35 // Stops the capture session asynchronously. 36 // Stops the capture session asynchronously.
36 - (void)stopCapture; 37 - (void)stopCapture;
37 38
38 @end 39 @end
39 40
40 NS_ASSUME_NONNULL_END 41 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698