Path: blob/master/external/source/osx/isight/CSGCamera.h
19758 views
//1// CSGCamera.h2// MotionTracker3//4// Created by Tim Omernick on 3/7/05.5// Copyright 2005 Tim Omernick. All rights reserved.6//78#import <Cocoa/Cocoa.h>9#import <QuickTime/QuickTime.h>1011@class CSGImage;1213/*14CSGCamera provides a simple way to access the default sequence grabber component (say, an iSight or other DV camera). To use:1516- Instantiate an CSGCamera instance (using the plain old -init method)17- Set the CSGCamera's delegate using -setDelegate:. The delegate is the object which will receive -camera:didReceiveFrame: messages.18- Call -startWithSize: on the CSGCamera instance with a decent size (like 512x384).19- Call -stop to stop recording.20*/2122@interface CSGCamera : NSObject23{24id delegate;25SeqGrabComponent component;26SGChannel channel;27GWorldPtr gWorld;28Rect boundsRect;29ImageSequence decompressionSequence;30TimeScale timeScale;31TimeValue lastTime;32NSTimeInterval startTime;33NSTimer *frameTimer;34}3536- (void)setDelegate:(id)newDelegate;37- (BOOL)startWithSize:(NSSize)frameSize;38- (BOOL)stop;3940@end4142@interface NSObject (Private)43- (void)camera:(CSGCamera *)aCamera didReceiveFrame:(CSGImage *)aFrame;44@end454647