mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2b703de669
Former-commit-id: edfc3e7ccf7b7d727e73a8563acb521045026d5b
26 lines
595 B
C++
26 lines
595 B
C++
|
|
// STL includes
|
|
#include <cmath>
|
|
|
|
// 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 Json::Value & blackborderConfig)
|
|
{
|
|
_ledString = ledString;
|
|
_blackborderConfig = blackborderConfig;
|
|
}
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
{
|
|
return new ImageProcessor(_ledString, _blackborderConfig);
|
|
}
|