⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grabber-generic.cxx

📁 mgcp协议源代码。支持多种编码:g711
💻 CXX
字号:
/*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-generic.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -