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

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

Issue 2987143003: Remove RTCAVFoundationVideoSource
Patch Set: Created 3 years, 4 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 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 <WebRTC/RTCMacros.h>
12 #import <WebRTC/RTCVideoSource.h>
13
14 @class AVCaptureSession;
15 @class RTCMediaConstraints;
16 @class RTCPeerConnectionFactory;
17
18 NS_ASSUME_NONNULL_BEGIN
19
20 /**
21 * DEPRECATED Use RTCCameraVideoCapturer instead.
22 *
23 * RTCAVFoundationVideoSource is a video source that uses
24 * webrtc::AVFoundationVideoCapturer. We do not currently provide a wrapper for
25 * that capturer because cricket::VideoCapturer is not ref counted and we cannot
26 * guarantee its lifetime. Instead, we expose its properties through the ref
27 * counted video source interface.
28 */
29 RTC_EXPORT
30 @interface RTCAVFoundationVideoSource : RTCVideoSource
31
32 - (instancetype)init NS_UNAVAILABLE;
33
34 /**
35 * Calling this function will cause frames to be scaled down to the
36 * requested resolution. Also, frames will be cropped to match the
37 * requested aspect ratio, and frames will be dropped to match the
38 * requested fps. The requested aspect ratio is orientation agnostic and
39 * will be adjusted to maintain the input orientation, so it doesn't
40 * matter if e.g. 1280x720 or 720x1280 is requested.
41 */
42 - (void)adaptOutputFormatToWidth:(int)width height:(int)height fps:(int)fps;
43
44 /** Returns whether rear-facing camera is available for use. */
45 @property(nonatomic, readonly) BOOL canUseBackCamera;
46
47 /** Switches the camera being used (either front or back). */
48 @property(nonatomic, assign) BOOL useBackCamera;
49
50 /** Returns the active capture session. */
51 @property(nonatomic, readonly) AVCaptureSession *captureSession;
52
53 @end
54
55 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698