mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
f146894799
* Update BlackBorderProcessor.h * Update Hyperion.h * Update ImageProcessor.h * Update ImageProcessorFactory.h * Update LedString.h * Update BlackBorderProcessor.cpp * Update ImageProcessor.cpp * Update ImageProcessorFactory.cpp * Update Hyperion.cpp * Update hyperiond.cpp * Update TestImage2LedsMap.cpp * Update TestBlackBorderProcessor.cpp * Update Hyperion.cpp * Update Hyperion.cpp
22 lines
560 B
C++
22 lines
560 B
C++
// Hyperion includes
|
|
#include <hyperion/ImageProcessorFactory.h>
|
|
#include <hyperion/ImageProcessor.h>
|
|
|
|
ImageProcessorFactory& ImageProcessorFactory::getInstance()
|
|
{
|
|
static ImageProcessorFactory instance;
|
|
// Return the singleton instance
|
|
return instance;
|
|
}
|
|
|
|
void ImageProcessorFactory::init(const LedString& ledString, const QJsonObject & blackborderConfig)
|
|
{
|
|
_ledString = ledString;
|
|
_blackborderConfig = blackborderConfig;
|
|
}
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
{
|
|
return new ImageProcessor(_ledString, _blackborderConfig);
|
|
}
|