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

Side by Side Diff: media/capture/video/mac/platform_video_capturing_mac.h

Issue 1853743003: Remove platform_video_capturing_mac and the callback thread checker in VideoCaptureDeviceAVFoundati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_
6 #define MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_
7
8 #import <Foundation/Foundation.h>
9
10 namespace media {
11 class VideoCaptureDeviceMac;
12 }
13
14 // Protocol representing platform-dependent video capture on Mac.
15 @protocol PlatformVideoCapturingMac<NSObject>
16
17 // This method initializes the instance by calling NSObject |init| and registers
18 // internally a frame receiver at the same time. The frame receiver is supposed
19 // to be initialised before and outlive the VideoCapturingDeviceMac
20 // implementation.
21 - (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
22
23 // Sets the frame receiver. This method executes the registration in mutual
24 // exclusion.
25 // TODO(mcasas): This method and stopCapture() are always called in sequence and
26 // this one is only used to clear the frameReceiver, investigate if both can be
27 // merged.
28 - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
29
30 // Sets which capture device to use by name passed as deviceId argument. The
31 // device names are usually obtained via VideoCaptureDevice::GetDeviceNames()
32 // method. This method will also configure all device properties except those in
33 // setCaptureHeight:width:frameRate. If |deviceId| is nil, capture is stopped
34 // and all potential configuration is torn down. Returns YES on success, NO
35 // otherwise.
36 - (BOOL)setCaptureDevice:(NSString*)deviceId;
37
38 // Configures the capture properties.
39 - (BOOL)setCaptureHeight:(int)height
40 width:(int)width
41 frameRate:(float)frameRate;
42
43 // Starts video capturing, registers observers. Returns YES on success, NO
44 // otherwise.
45 - (BOOL)startCapture;
46
47 // Stops video capturing, unregisters observers.
48 - (void)stopCapture;
49
50 @end
51
52 #endif // MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698