capture.h
来自「机器人仿真软件」· C头文件 代码 · 共 30 行
H
30 行
/* $Id: capture.h,v 1.5 2005/09/25 23:35:06 thjc Exp $ * * The base class for capture classes that feed data to CMVision */#ifndef __CAPTURE_H__#define __CAPTURE_H__typedef long long stamp_t;class capture { protected: unsigned char *current; // most recently captured frame stamp_t timestamp; // frame time stamp int width,height; // dimensions of video frame bool captured_frame; public: capture() {current=0; captured_frame = false;} virtual ~capture() {}; // you must define these in the subclass virtual bool initialize(int nwidth,int nheight) = 0; virtual void close() = 0; virtual unsigned char *captureFrame() = 0;};#endif // __CAPTURE_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?