00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLDIGITIZERDX_H__
00018 #define __TLDIGITIZERDX_H__
00019
00020
00021
00022 #include "tlVision.h"
00023 #include "tlDigitizer.h"
00024
00025
00026
00027
00028 class SampleGrabberCallback;
00029 class DXGrabObjects;
00030
00031
00032
00033
00034 class tlDigitizerDX : public tlDigitizer
00035 {
00036 private:
00037 bool imageReady;
00038 SampleGrabberCallback *cb;
00039
00040 protected:
00041 DXGrabObjects *grabber;
00042 BYTE *buffer;
00043 int index;
00044 int fps;
00045
00046 public:
00047 tlDigitizerDX ();
00048 tlDigitizerDX (int width, int height);
00049 virtual ~tlDigitizerDX ();
00050
00051 virtual int open (int index = 0);
00052 virtual int open (int width, int height, int index = 0);
00053 virtual int close ();
00054
00055 virtual int setSize (int width, int height);
00056
00057 virtual int grab (tlImage *image);
00058 virtual int grab (tlImage *image, tlRect *rect);
00059 virtual int grabQueued (tlImage *image);
00060 virtual int grabQueued (tlImage *image, tlRect *rect);
00061
00062 int setFrameRate (int fps);
00063 };
00064
00065
00066 #endif
00067