userinput.cpp

来自「VideoMan (Video Manager) is an open-sour」· C++ 代码 · 共 35 行

CPP
35
字号
//#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 + =
减小字号Ctrl + -
显示快捷键?