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

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

Issue 2488973002: Split avfoundationcapturer classes in separate files. (Closed)
Patch Set: Fix comments. 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 <AVFoundation/AVFoundation.h>
12 #import <Foundation/Foundation.h>
13
14 #include "webrtc/media/base/videocapturer.h"
15
16 /**
17 * Helper class that encapsulates the mapping between cricket::VideoFormat and
18 * AVCaptureDeviceFormat.
19 */
20 @interface RTCAVFoundationFormatMapper : NSObject
21
22 /**
23 * Return the list of eligible cricket::VideoFormat instances for the given devi ce.
24 *
25 * The list of eligible formats for the provided device is filtered list based o n
26 * submedia type (pixel color format) and framerate. This filetring is for perfo rmance reasons.
27 * @param device the capture device to be used
28 * @return set of cricket::VideoFormat instances that map to the eligible format s for the device
29 */
30 + (std::set<cricket::VideoFormat>)supportedVideoFormatsForDevice:(AVCaptureDevic e *)device;
31
32 /**
33 * Sets new capture format for the provided device and session.
34 *
35 * The new device format must be one of the formats returned from
36 * supportedVideoFormatsForDevice:.
magjed_webrtc 2016/11/21 13:57:52 nit: remove colon.
daniela-webrtc 2016/11/21 16:29:50 Done.
37 * The configuration of the session might not be successful if
38 * the device fails to lock for configuration or
39 * the new device format cannot be set as active format for the device.
40 * @param format The cricket::VideoFormat to be used for retrieving the new AVCa ptureDeviceFormat
41 * @param device The device that will have new device format
42 * @param session The capture session to be configured
43 * @return YES if the session configuration was successful. No otherwise
44 */
45 + (BOOL)setFormat:(const cricket::VideoFormat)format
46 forCaptureDevice:(AVCaptureDevice *)device
47 captureSession:(AVCaptureSession *)session;
48 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698