mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
32 lines
719 B
C++
32 lines
719 B
C++
#include <grabber/qt/QtWrapper.h>
|
|
|
|
QtWrapper::QtWrapper( int updateRate_Hz,
|
|
int display,
|
|
int pixelDecimation,
|
|
int cropLeft, int cropRight, int cropTop, int cropBottom
|
|
)
|
|
: GrabberWrapper(GRABBERTYPE, &_grabber, updateRate_Hz)
|
|
, _grabber(display, cropLeft, cropRight, cropTop, cropBottom)
|
|
{
|
|
_grabber.setPixelDecimation(pixelDecimation);
|
|
}
|
|
|
|
QtWrapper::QtWrapper(const QJsonDocument& grabberConfig)
|
|
: QtWrapper(GrabberWrapper::DEFAULT_RATE_HZ,
|
|
0,
|
|
GrabberWrapper::DEFAULT_PIXELDECIMATION,
|
|
0,0,0,0)
|
|
{
|
|
this->handleSettingsUpdate(settings::SYSTEMCAPTURE, grabberConfig);
|
|
}
|
|
|
|
bool QtWrapper::open()
|
|
{
|
|
return _grabber.open();
|
|
}
|
|
|
|
void QtWrapper::action()
|
|
{
|
|
transferFrame(_grabber);
|
|
}
|