FACT++  1.0
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 
29 
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
UInt_t fNumSkipped
Definition: Camera.h:33
Definition: MThread.h:8
virtual ~Camera()
Definition: Camera.cc:41
static const int cols
Definition: Camera.h:21
Int_t CancelThread(void **ret=0)
Definition: MThread.h:48
void ExitLoop()
Definition: Camera.h:46
struct timeval fTime
Definition: Camera.h:26
static const int rows
Definition: Camera.h:22
Int_t Thread()
Definition: Camera.cc:72
UInt_t fNumFrame
Definition: Camera.h:32
PixClient & fClient
Definition: Camera.h:28
UInt_t fChannel
Definition: Camera.h:35
void ProcessFrame(unsigned char *img)
Definition: Camera.cc:50
MVideo * fVideo
Definition: Camera.h:30
unsigned char fImg[cols *rows]
Definition: Camera.h:25
Camera(PixClient &client, Int_t ch=0)
Definition: Camera.cc:33
Definition: MVideo.h:49
Definition: Camera.h:15
static const int depth
Definition: Camera.h:23
void SetChannel(int)
Definition: Camera.cc:173