mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
3996ff789c
Former-commit-id: 004c76c724b9739d977a93d3574821db2c4de2e8
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 Json::Value & blackborderConfig)
|
|
{
|
|
_ledString = ledString;
|
|
_blackborderConfig = blackborderConfig;
|
|
}
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
{
|
|
return new ImageProcessor(_ledString, _blackborderConfig);
|
|
}
|