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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoCapturerInternal.h

Issue 2488973002: Split avfoundationcapturer classes in separate files. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import <Foundation/Foundation.h>
12 #import <AVFoundation/AVFoundation.h>
13
14 #include "avfoundationvideocapturer.h"
15
16 NS_ASSUME_NONNULL_BEGIN
17 // This class used to capture frames using AVFoundation APIs on iOS. It is meant
18 // to be owned by an instance of AVFoundationVideoCapturer. The reason for this
19 // because other webrtc objects own cricket::VideoCapturer, which is not
20 // ref counted. To prevent bad behavior we do not expose this class directly.
21 @interface RTCAVFoundationVideoCapturerInternal
kthelgason 2016/11/10 09:28:10 Don't we prefer classname+private.h over classname
daniela-webrtc 2016/11/11 13:08:58 I think they are different concepts. Class+Private
22 : NSObject<AVCaptureVideoDataOutputSampleBufferDelegate>
23
24 @property(nonatomic, readonly) AVCaptureSession *captureSession;
25 @property(nonatomic, readonly) dispatch_queue_t frameQueue;
26 @property(nonatomic, readonly) BOOL canUseBackCamera;
27 @property(nonatomic, assign) BOOL useBackCamera; // Defaults to NO.
28 @property(atomic, assign) BOOL isRunning; // Whether the capture session is run ning.
29 @property(atomic, assign) BOOL hasStarted; // Whether we have an unmatched star t.
30
31 // We keep a pointer back to AVFoundationVideoCapturer to make callbacks on it
32 // when we receive frames. This is safe because this object should be owned by
33 // it.
34 - (instancetype)initWithCapturer:(webrtc::AVFoundationVideoCapturer *)capturer;
35 - (AVCaptureDevice *)getActiveCaptureDevice;
36
37 - (nullable AVCaptureDevice *)frontCaptureDevice;
38 - (nullable AVCaptureDevice *)backCaptureDevice;
39
40 // Starts and stops the capture session asynchronously. We cannot do this
41 // synchronously without blocking a WebRTC thread.
42 - (void)start;
43 - (void)stop;
44
45 @end
46 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698