void OsxWrapper::action() { // Grab frame into the allocated image _frameGrabber->grabFrame(_image); emit emitImage(_priority, _image, _timeout_ms); _processor->process(_image, _ledColors); _hyperion->setColors(_priority, _ledColors, _timeout_ms); }
void DispmanxWrapper::action() { // Grab frame into the allocated image _grabber->grabFrame(_image); Image<ColorRgb> image_rgb; _image.toRgb(image_rgb); emit emitImage(_priority, image_rgb, _timeout_ms); _processor->process(_image, _ledColors); setColors(_ledColors, _timeout_ms); }
void AmlogicWrapper::action() { // Grab frame into the allocated image if (_frameGrabber->grabFrame(_image) < 0) { // Frame grab failed, maybe nothing playing or .... return; } if ( _forward ) { Image<ColorRgb> image_rgb; _image.toRgb(image_rgb); emit emitImage(_priority, image_rgb, _timeout_ms); } _processor->process(_image, _ledColors); _hyperion->setColors(_priority, _ledColors, _timeout_ms); }
void X11Wrapper::action() { int result = _grabber->updateScreenDimensions(); if (result < 0 ) { return; } if ( result > 0 ) { _processor->setSize(_grabber->getImageWidth(), _grabber->getImageHeight()); _image.resize(_grabber->getImageWidth(), _grabber->getImageHeight()); } // Grab frame into the allocated image _grabber->grabFrame(_image); emit emitImage(_priority, _image, _timeout_ms); _processor->process(_image, _ledColors); setColors(_ledColors, _timeout_ms); }