00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLDIGITIZERPXC200_H__
00018 #define __TLDIGITIZERPXC200_H__
00019
00020
00021 #include "..\..\external\pxc\include\pxc.h"
00022 #include "..\..\external\pxc\include\frame.h"
00023
00024 #include "tlVision.h"
00025 #include "tlDigitizer.h"
00026
00027
00028
00029 class tlDigitizerPXC200 : public tlDigitizer
00030 {
00031 private:
00032 PXC pxc;
00033 FRAMELIB frame;
00034 long fgHandle;
00035 FRAME __PX_FAR *buffer;
00036
00037 public:
00038 tlDigitizerPXC200 ();
00039 tlDigitizerPXC200 (int width, int height);
00040 tlDigitizerPXC200 (int width, int height, int channel, unsigned short input = TL_SOURCE_AUTO);
00041 virtual ~tlDigitizerPXC200 ();
00042
00043 virtual int open (int index = 0);
00044 virtual int open (int width, int height, int index = 0);
00045 int open (int width, int height, int index, int channel, unsigned short input = TL_SOURCE_AUTO);
00046 virtual int close ();
00047
00048 virtual int setChannel (int channel, unsigned short input);
00049 virtual int setInput (unsigned short input);
00050 virtual int setFrameRate (int fps);
00051 virtual int setSize (int width, int height);
00052
00053 virtual int grab (tlImage *image);
00054 virtual int grab (tlImage *image, tlRect *rect);
00055 virtual int grabQueued (tlImage *image);
00056 virtual int grabQueued (tlImage *image, tlRect *rect);
00057 };
00058
00059 #endif
00060