mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
addff6f7ef
* BCM dynamic loading * cleanup * better handle start of dispmanx * set GrabberWrapper pointer to null on exit * Update DispmanxFrameGrabber.cpp
24 lines
425 B
C++
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);
|
|
}
|