mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
30 lines
640 B
C++
30 lines
640 B
C++
#include <grabber/dispmanx/DispmanxWrapper.h>
|
|
|
|
DispmanxWrapper::DispmanxWrapper( int updateRate_Hz,
|
|
int pixelDecimation
|
|
)
|
|
: GrabberWrapper(GRABBERTYPE, &_grabber, updateRate_Hz)
|
|
{
|
|
if (_isAvailable)
|
|
{
|
|
_grabber.setPixelDecimation(pixelDecimation);
|
|
}
|
|
}
|
|
|
|
DispmanxWrapper::DispmanxWrapper(const QJsonDocument& grabberConfig)
|
|
: DispmanxWrapper(GrabberWrapper::DEFAULT_RATE_HZ,
|
|
GrabberWrapper::DEFAULT_PIXELDECIMATION)
|
|
{
|
|
this->handleSettingsUpdate(settings::SYSTEMCAPTURE, grabberConfig);
|
|
}
|
|
|
|
bool DispmanxWrapper::open()
|
|
{
|
|
return _grabber.open();
|
|
}
|
|
|
|
void DispmanxWrapper::action()
|
|
{
|
|
transferFrame(_grabber);
|
|
}
|