OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
6 #define MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 6 #define MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 18 matching lines...) Expand all Loading... |
29 - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; | 29 - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; |
30 | 30 |
31 // Sets which capture device to use by name passed as deviceId argument. The | 31 // Sets which capture device to use by name passed as deviceId argument. The |
32 // device names are usually obtained via VideoCaptureDevice::GetDeviceNames() | 32 // device names are usually obtained via VideoCaptureDevice::GetDeviceNames() |
33 // method. This method will also configure all device properties except those in | 33 // method. This method will also configure all device properties except those in |
34 // setCaptureHeight:widht:frameRate. If |deviceId| is nil, all potential | 34 // setCaptureHeight:widht:frameRate. If |deviceId| is nil, all potential |
35 // configuration is torn down. Returns YES on sucess, NO otherwise. | 35 // configuration is torn down. Returns YES on sucess, NO otherwise. |
36 - (BOOL)setCaptureDevice:(NSString*)deviceId; | 36 - (BOOL)setCaptureDevice:(NSString*)deviceId; |
37 | 37 |
38 // Configures the capture properties. | 38 // Configures the capture properties. |
39 - (BOOL)setCaptureHeight:(int)height width:(int)width frameRate:(int)frameRate; | 39 - (BOOL)setCaptureHeight:(int)height |
| 40 width:(int)width |
| 41 frameRate:(float)frameRate; |
40 | 42 |
41 // Start video capturing, register observers. Returns YES on sucess, NO | 43 // Start video capturing, register observers. Returns YES on sucess, NO |
42 // otherwise. | 44 // otherwise. |
43 - (BOOL)startCapture; | 45 - (BOOL)startCapture; |
44 | 46 |
45 // Stops video capturing, unregisters observers. | 47 // Stops video capturing, unregisters observers. |
46 - (void)stopCapture; | 48 - (void)stopCapture; |
47 | 49 |
48 @end | 50 @end |
49 | 51 |
50 #endif // MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 52 #endif // MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
OLD | NEW |