mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
24 lines
626 B
C++
24 lines
626 B
C++
#include <grabber/framebuffer/FramebufferWrapper.h>
|
|
|
|
FramebufferWrapper::FramebufferWrapper( int updateRate_Hz,
|
|
int deviceIdx,
|
|
int pixelDecimation)
|
|
: GrabberWrapper(GRABBERTYPE, &_grabber, updateRate_Hz)
|
|
, _grabber(deviceIdx)
|
|
{
|
|
_grabber.setPixelDecimation(pixelDecimation);
|
|
}
|
|
|
|
FramebufferWrapper::FramebufferWrapper(const QJsonDocument& grabberConfig)
|
|
: FramebufferWrapper(GrabberWrapper::DEFAULT_RATE_HZ,
|
|
0,
|
|
GrabberWrapper::DEFAULT_PIXELDECIMATION)
|
|
{
|
|
this->handleSettingsUpdate(settings::SYSTEMCAPTURE, grabberConfig);
|
|
}
|
|
|
|
void FramebufferWrapper::action()
|
|
{
|
|
transferFrame(_grabber);
|
|
}
|