mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
293a2e7c19
Former-commit-id: d2cf4df9a7684107b30f9bc01d5aa90b321ce1b5
23 lines
578 B
C++
23 lines
578 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, bool enableBlackBorderDetector)
|
|
{
|
|
_ledString = ledString;
|
|
_enableBlackBorderDetector = enableBlackBorderDetector;
|
|
}
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
{
|
|
return new ImageProcessor(_ledString, _enableBlackBorderDetector);
|
|
}
|