capture.h
00001
00002
00003
00004
00005
00006 #ifndef __CAPTURE_H__
00007 #define __CAPTURE_H__
00008
00009 typedef long long stamp_t;
00010
00011 class capture
00012 {
00013 protected:
00014 unsigned char *current;
00015 stamp_t timestamp;
00016 int width,height;
00017 bool captured_frame;
00018
00019 public:
00020 capture() {current=0; captured_frame = false;}
00021 virtual ~capture() {};
00022
00023
00024 virtual bool initialize(int nwidth,int nheight) = 0;
00025 virtual void close() = 0;
00026 virtual unsigned char *captureFrame() = 0;
00027 };
00028
00029 #endif // __CAPTURE_H__