📄 userinput.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 + -