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

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

Issue 464853002: Mac Video Capture: correct to float the erroneous handling of frame rate as int. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/video/capture/mac/video_capture_device_avfoundation_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/video/capture/mac/video_capture_device_avfoundation_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698