2013-08-13 11:10:45 +02:00
|
|
|
|
2014-02-25 20:49:43 +01:00
|
|
|
// STL includes
|
|
|
|
#include <cmath>
|
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
// Hyperion includes
|
|
|
|
#include <hyperion/ImageProcessorFactory.h>
|
|
|
|
#include <hyperion/ImageProcessor.h>
|
|
|
|
|
|
|
|
ImageProcessorFactory& ImageProcessorFactory::getInstance()
|
|
|
|
{
|
|
|
|
static ImageProcessorFactory instance;
|
|
|
|
// Return the singleton instance
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
2016-02-07 13:26:40 +01:00
|
|
|
void ImageProcessorFactory::init(const LedString& ledString, const Json::Value & blackborderConfig)
|
2013-08-13 11:10:45 +02:00
|
|
|
{
|
|
|
|
_ledString = ledString;
|
2016-02-07 13:26:40 +01:00
|
|
|
_blackborderConfig = blackborderConfig;
|
2013-08-13 11:10:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
|
|
{
|
2016-02-07 13:26:40 +01:00
|
|
|
return new ImageProcessor(_ledString, _blackborderConfig);
|
2013-08-13 11:10:45 +02:00
|
|
|
}
|