FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Camera.h
Go to the documentation of this file.
1
#ifndef COSY_Camera
2
#define COSY_Camera
3
4
#ifndef MARS_MThread
5
#include "
MThread.h
"
6
#endif
7
/*
8
#ifndef COSY_PixGetter
9
#include "PixGetter.h"
10
#endif
11
*/
12
class
MVideo
;
13
class
PixClient
;
14
15
class
Camera
:
/*public PixGetter,*/
public
MThread
16
{
17
private
:
18
//
19
// Geometry
20
//
21
static
const
int
cols
= 768;
22
static
const
int
rows
= 576;
23
static
const
int
depth
= 4;
24
25
unsigned
char
fImg
[cols*
rows
];
26
struct
timeval
fTime
;
27
28
PixClient
&
fClient
;
29
30
MVideo
*
fVideo
;
31
32
UInt_t
fNumFrame
;
33
UInt_t
fNumSkipped
;
34
35
UInt_t
fChannel
;
36
37
Int_t
Thread
();
38
void
ProcessFrame
(
unsigned
char
*img);
39
40
public
:
41
Camera
(
PixClient
&client, Int_t ch=0);
42
virtual
~Camera
();
43
44
void
SetChannel
(
int
);
45
46
void
ExitLoop
() {
CancelThread
(); }
47
48
//ClassDef(Camera, 0)
49
};
50
51
#endif
Camera::fNumSkipped
UInt_t fNumSkipped
Definition:
Camera.h:33
MThread
Definition:
MThread.h:8
Camera::~Camera
virtual ~Camera()
Definition:
Camera.cc:41
Camera::cols
static const int cols
Definition:
Camera.h:21
MThread::CancelThread
Int_t CancelThread(void **ret=0)
Definition:
MThread.h:48
Camera::ExitLoop
void ExitLoop()
Definition:
Camera.h:46
Camera::fTime
struct timeval fTime
Definition:
Camera.h:26
Camera::rows
static const int rows
Definition:
Camera.h:22
Camera::Thread
Int_t Thread()
Definition:
Camera.cc:72
Camera::fNumFrame
UInt_t fNumFrame
Definition:
Camera.h:32
Camera::fClient
PixClient & fClient
Definition:
Camera.h:28
Camera::fChannel
UInt_t fChannel
Definition:
Camera.h:35
MThread.h
Camera::ProcessFrame
void ProcessFrame(unsigned char *img)
Definition:
Camera.cc:50
Camera::fVideo
MVideo * fVideo
Definition:
Camera.h:30
PixClient
Definition:
PixClient.h:14
Camera::fImg
unsigned char fImg[cols *rows]
Definition:
Camera.h:25
Camera::Camera
Camera(PixClient &client, Int_t ch=0)
Definition:
Camera.cc:33
MVideo
Definition:
MVideo.h:49
Camera
Definition:
Camera.h:15
Camera::depth
static const int depth
Definition:
Camera.h:23
Camera::SetChannel
void SetChannel(int)
Definition:
Camera.cc:173
drive
Camera.h
Generated on Sun Sep 18 2016 20:50:18 for FACT++ by
1.8.11