Last change
on this file since 19904 was 18626, checked in by tbretz, 8 years ago |
Removed base class PixGetter, use unsigned char as base type for image and a depth of 4 byte, disentengle from root were possible, some minor cleanup
|
File size:
797 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 | */
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.