hyperion.ng/libsrc/hyperion/ImageProcessorFactory.cpp

22 lines
560 B
C++
Raw Normal View History

// 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);
}