source: trunk/Cosy/videodev/PngReader.h@ 10077

Last change on this file since 10077 was 8859, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 838 bytes
Line 
1#ifndef COSY_PngReader
2#define COSY_PngReader
3
4#ifndef MARS_MThread
5#include "MThread.h"
6#endif
7
8#ifndef COSY_PixGetter
9#include "PixGetter.h"
10#endif
11
12class PixClient;
13
14class PngReader : public PixGetter, public MThread
15{
16private:
17 //
18 // Geometry
19 //
20 static const int gfCols = 768;
21 static const int gfRows = 576;
22 static const int gfDepth = 3;
23
24 //
25 // Thread interface
26 //
27 unsigned long fNum;
28
29 char fImg[gfCols*gfRows];
30 struct timeval fTime;
31
32 PixClient &fClient;
33
34 //
35 // Hardware dependant functions
36 //
37 char *GetImg(unsigned int frame);
38
39 //
40 // Execution thread which processes the pictures
41 //
42 Int_t Thread();
43
44public:
45 PngReader(PixClient &client);
46 virtual ~PngReader();
47
48 void ExitLoop() { CancelThread(); }
49
50 ClassDef(PngReader, 0)
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.