CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/osx/isight/CSGCamera.h
Views: 11778
1
//
2
// CSGCamera.h
3
// MotionTracker
4
//
5
// Created by Tim Omernick on 3/7/05.
6
// Copyright 2005 Tim Omernick. All rights reserved.
7
//
8
9
#import <Cocoa/Cocoa.h>
10
#import <QuickTime/QuickTime.h>
11
12
@class CSGImage;
13
14
/*
15
CSGCamera provides a simple way to access the default sequence grabber component (say, an iSight or other DV camera). To use:
16
17
- Instantiate an CSGCamera instance (using the plain old -init method)
18
- Set the CSGCamera's delegate using -setDelegate:. The delegate is the object which will receive -camera:didReceiveFrame: messages.
19
- Call -startWithSize: on the CSGCamera instance with a decent size (like 512x384).
20
- Call -stop to stop recording.
21
*/
22
23
@interface CSGCamera : NSObject
24
{
25
id delegate;
26
SeqGrabComponent component;
27
SGChannel channel;
28
GWorldPtr gWorld;
29
Rect boundsRect;
30
ImageSequence decompressionSequence;
31
TimeScale timeScale;
32
TimeValue lastTime;
33
NSTimeInterval startTime;
34
NSTimer *frameTimer;
35
}
36
37
- (void)setDelegate:(id)newDelegate;
38
- (BOOL)startWithSize:(NSSize)frameSize;
39
- (BOOL)stop;
40
41
@end
42
43
@interface NSObject (Private)
44
- (void)camera:(CSGCamera *)aCamera didReceiveFrame:(CSGImage *)aFrame;
45
@end
46
47