Chromium Code Reviews| Index: media/video/capture/mac/video_capture_device_mac_qtkit.h |
| diff --git a/media/video/capture/mac/video_capture_device_mac_qtkit.h b/media/video/capture/mac/video_capture_device_mac_qtkit.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6772b75559eaec333b64de5d874c6312218cf45e |
| --- /dev/null |
| +++ b/media/video/capture/mac/video_capture_device_mac_qtkit.h |
| @@ -0,0 +1,55 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// VideoCaptureDeviceMacQTKit implements all QTKit related code for |
| +// communicating with a QTKit capture device. |
| + |
| +#ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_QTKIT_H_ |
| +#define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_QTKIT_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +namespace media { |
| + class VideoCaptureDeviceMac; |
| +} |
| + |
| +@class QTCaptureDeviceInput; |
| +@class QTCaptureSession; |
| + |
| +@interface VideoCaptureDeviceMacQTKit : NSObject { |
| + @private |
| + // Settings. |
| + int frameRate_; |
| + int frameWidth_; |
| + int frameHeight_; |
| + |
| + media::VideoCaptureDeviceMac *frameReceiver_; |
| + |
| + // QTKit variables. |
| + QTCaptureSession *captureSession_; |
| + QTCaptureDeviceInput *captureDeviceInput_; |
| +} |
| + |
| +// Returns an array of QTCaptureDevices. |
| +// TODO(mflodman) Return arrays of friendly name and unique id instead. |
| ++ (NSArray *)deviceNames; |
| + |
| +// Registers a receiver for the captured frames. |
| +- (void)setFrameReceiver:(media::VideoCaptureDeviceMac *)frameReceiver; |
| + |
| +// Sets which capture device to use. Returns YES on sucess, NO otherwise. |
| +- (BOOL)setCaptureDevice:(NSString *)deviceId; |
| + |
| +// Configures the capture properties. |
|
mflodman_chromium_OOO
2011/10/10 17:23:28
I'll correct this in the next upload, I missed to
mflodman_chromium_OOO
2011/10/12 19:21:32
Done.
|
| +- (BOOL)setCaptureHeight:(int)height:(int)width:(int)frameRate; |
| + |
| +// Start video capturing. Returns YES on sucess, NO otherwise. |
| +- (BOOL)startCapture; |
| + |
| +// Stops video capturing. |
| +- (void)stopCapture; |
| + |
| +@end |
| + |
| +#endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_QTKIT_H_ |