source: trunk/Cosy/videodev/Camera.h@ 13657

Last change on this file since 13657 was 8860, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 780 bytes
Line 
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
12class MVideo;
13class PixClient;
14
15class Camera : public PixGetter, public MThread
16{
17private:
18 //
19 // Geometry
20 //
21 static const int cols = 768;
22 static const int rows = 576;
23 static const int depth = 3;
24
25 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
40public:
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
Note: See TracBrowser for help on using the repository browser.