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

📄 videosource_linux_dv.cc

📁 this is software for visual SLAM
💻 CC
字号:
// Copyright 2008 Isis Innovation Limited#include "VideoSource.h"#include <cvd/Linux/dvbuffer3.h>#include <cvd/colourspace_convert.h>#include <cvd/colourspaces.h>using namespace CVD;using namespace std;VideoSource::VideoSource(){  cout << "  VideoSource_Linux: Opening video source..." << endl;  DVBuffer3<yuv411>* pvb= new DVBuffer3<yuv411>();  mptr = pvb;  mirSize = pvb->size();  cout << "  ... got video source." << endl;};ImageRef VideoSource::Size(){   return mirSize;};void VideoSource::GetAndFillFrameBWandRGB(Image<byte> &imBW, Image<Rgb<byte> > &imRGB){  DVBuffer3<yuv411>* pvb = (DVBuffer3<yuv411>*) mptr;  VideoFrame<yuv411> *pVidFrame = pvb->get_frame();  convert_image(*pVidFrame, imBW);  convert_image(*pVidFrame, imRGB);  pvb->put_frame(pVidFrame);}

⌨️ 快捷键说明

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