grabber-windows.cxx

来自「radius协议源码÷The Radius Stack will connect」· CXX 代码 · 共 55 行

CXX
55
字号
/*grabber-windows.cxx      Derek J Smithies (derek@indranet.co.nz) *                         Indranet Technologies ltd (lara@indranet.co.nz) * *  Derek wrote the initial skeleton code of a windows grabber. */#include "grabber-windows.h"VideoGrabber::VideoGrabber(int, BOOL){	 mem= new char[0x151000];         frame= (u_char *)mem;}VideoGrabber::~VideoGrabber(){  delete mem;  if(operational)     cerr<< "Close operational video grabber"<<endl;  else    cerr<< "Close non operational video grabber"<<endl;}void VideoGrabber::Start(){}void VideoGrabber::Stop(){}void VideoGrabber::Grab(VideoFrame *vf){   //Should call Grabber::Grab only if the grab of data   //fails. However, in the skeleton code, it is all we have.      Grabber::Grab(vf);    vf->frameptr= frame;    vf->crvec   = 0;}void VideoGrabber::SetSize(int _width,int _height){  if((width!=_width)||(height!=_height)) {      Grabber::SetSize(_width,_height);  }}void VideoGrabber::Format(){}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?