mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
22 lines
461 B
C++
22 lines
461 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)
|
||
|
{
|
||
|
_ledString = ledString;
|
||
|
}
|
||
|
|
||
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
||
|
{
|
||
|
return new ImageProcessor(_ledString);
|
||
|
}
|