// // TestController.h // SequenceGrabberTest // // Created by Tim Omernick on 3/18/05. // Copyright 2005 Tim Omernick. All rights reserved. // #import #import #import "MPT_VideoServerProtocol.h" #import @class MPT_RimageAdaptor; @class MPT_RimageCamera; @class CSGImage; @class MPT_PluginBase; typedef enum { pull_rate, avg_rate, instant_rate } frameRateTypeType; @interface TestController : NSObject { MPT_RimageCamera *camera; CSGImage *lastImage; MPT_RimageAdaptor *lastRimage; NSError *lastError; // Will be nil if we last received an image without any error NSTimeInterval rates[60]; NSTimeInterval lastPulledTime; unsigned int index; float videoWidth; float videoHeight; BOOL cameraStarted; BOOL threaded; NSLock *imageLock; NSLock *rimageLock; NSLock *errorLock; frameRateTypeType frameRateType; id vsPlugin; } + (NSString *)videoServerID; - (void)start; - (void)stop; - (BOOL)threaded; - (void)setThreaded:(BOOL)value; - (CSGImage *)lastImage; - (MPT_RimageAdaptor *)lastRimage; - (NSTimeInterval)frameRate; - (NSError *)lastError; - (void)addImagesToInputs:(NSMutableDictionary *)inputs; ///< Add lastImage, lastRimage and lastError to a CERT inputs/results dictionary - (float)videoWidth; - (void)setVideoWidth:(float)value; - (float)videoHeight; - (void)setVideoHeight:(float)value; - (BOOL)cameraStarted; - (frameRateTypeType)frameRateType; - (void)setFrameRateType:(frameRateTypeType)value; @end