Main Page
Namespaces
Namespace List
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
c
d
e
g
i
l
m
n
o
p
s
t
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerator
Files
File List
File Members
All
b
c
d
i
l
m
n
r
s
t
u
y
z
Functions
b
c
m
r
s
t
u
y
Variables
Typedefs
Enumerations
Enumerator
Macros
c
d
n
r
u
y
z
include
cmvision
capture.h
Go to the documentation of this file.
1
/* $Id: capture.h 3142 2005-09-25 23:35:06Z thjc $
2
*
3
* The base class for capture classes that feed data to CMVision
4
*/
5
6
#ifndef __CAPTURE_H__
7
#define __CAPTURE_H__
8
9
typedef
long
long
stamp_t
;
10
11
class
capture
12
{
13
protected
:
14
unsigned
char
*
current
;
// most recently captured frame
15
stamp_t
timestamp
;
// frame time stamp
16
int
width
,
height
;
// dimensions of video frame
17
bool
captured_frame
;
18
19
public
:
20
capture
() {
current
=0;
captured_frame
=
false
;}
21
virtual
~capture
() {};
22
23
// you must define these in the subclass
24
virtual
bool
initialize
(
int
nwidth,
int
nheight) = 0;
25
virtual
void
close
() = 0;
26
virtual
unsigned
char
*
captureFrame
() = 0;
27
};
28
29
#endif // __CAPTURE_H__
capture::captured_frame
bool captured_frame
Definition:
capture.h:17
capture::initialize
virtual bool initialize(int nwidth, int nheight)=0
capture::capture
capture()
Definition:
capture.h:20
stamp_t
long long stamp_t
Definition:
capture.h:9
capture::~capture
virtual ~capture()
Definition:
capture.h:21
capture::width
int width
Definition:
capture.h:16
capture::close
virtual void close()=0
capture::captureFrame
virtual unsigned char * captureFrame()=0
capture::current
unsigned char * current
Definition:
capture.h:14
capture::timestamp
stamp_t timestamp
Definition:
capture.h:15
capture::height
int height
Definition:
capture.h:16
capture
Definition:
capture.h:11
cmvision
Author(s): Nate Koenig, Nate Koenig
autogenerated on Wed Mar 2 2022 00:03:25