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