hyperion.ng/libsrc/grabber/dispmanx/DispmanxWrapper.cpp
Markus addff6f7ef
Dynamic loading of the Dispmanx Grabber (#1440)
* BCM dynamic loading

* cleanup

* better handle start of dispmanx

* set GrabberWrapper pointer to null on exit

* Update DispmanxFrameGrabber.cpp
2022-03-20 14:42:21 +01:00

24 lines
425 B
C++

#include <grabber/DispmanxWrapper.h>
DispmanxWrapper::DispmanxWrapper( int updateRate_Hz,
int pixelDecimation
)
: GrabberWrapper("Dispmanx", &_grabber, updateRate_Hz)
, _grabber()
{
if (available = _grabber.isAvailable())
{
_grabber.setPixelDecimation(pixelDecimation);
}
}
bool DispmanxWrapper::open()
{
return _grabber.open();
}
void DispmanxWrapper::action()
{
transferFrame(_grabber);
}