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

📄 userinput.cpp

📁 VideoMan is a very easy image acquisition library. It is able to manage many video inputs at the sam
💻 CPP
字号:
//#include "StdAfx.h"
#include "userinput.h"

UserInput::UserInput( void )
{
	pixelBuffer = NULL;
	type = IMAGE;
}


UserInput::~UserInput(void)
{
}

bool UserInput::init( const VideoManInputFormat &aFormat )
{
	identification.fileName = "";
	identification.friendlyName = "";
	identification.devicePath = "";
	identification.identifier = "USER_INPUT";
		
	format = aFormat;
	return format.validFormat();
}

inline char *UserInput::getFrame( bool wait )
{
	return pixelBuffer;
}


void UserInput::setImage( char *image )
{
	pixelBuffer = image;
}

⌨️ 快捷键说明

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