mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Update Hyperion.cpp
Former-commit-id: 4c3f0a561d7def20dd713add0d437bdf12431e0b
This commit is contained in:
parent
bcb0802542
commit
90b9acf68e
@ -495,6 +495,7 @@ Hyperion::Hyperion(const Json::Value &jsonConfig) :
|
|||||||
_raw2ledTransform(createLedColorsTransform(_ledString.leds().size(), jsonConfig["color"])),
|
_raw2ledTransform(createLedColorsTransform(_ledString.leds().size(), jsonConfig["color"])),
|
||||||
_device(LedDeviceFactory::construct(jsonConfig["device"])),
|
_device(LedDeviceFactory::construct(jsonConfig["device"])),
|
||||||
_effectEngine(nullptr),
|
_effectEngine(nullptr),
|
||||||
|
_messageForwarder(createMessageForwarder(jsonConfig["forwarder"])),
|
||||||
_timer()
|
_timer()
|
||||||
{
|
{
|
||||||
if (!_raw2ledCorrection->verifyCorrections())
|
if (!_raw2ledCorrection->verifyCorrections())
|
||||||
@ -512,8 +513,8 @@ Hyperion::Hyperion(const Json::Value &jsonConfig) :
|
|||||||
// initialize the image processor factory
|
// initialize the image processor factory
|
||||||
ImageProcessorFactory::getInstance().init(
|
ImageProcessorFactory::getInstance().init(
|
||||||
_ledString,
|
_ledString,
|
||||||
jsonConfig["blackborderdetector"].get("enable", true).asBool(),
|
jsonConfig["blackborderdetector"]
|
||||||
jsonConfig["blackborderdetector"].get("threshold", 0.01).asDouble());
|
);
|
||||||
|
|
||||||
// initialize the color smoothing filter
|
// initialize the color smoothing filter
|
||||||
_device = createColorSmoothing(jsonConfig["color"]["smoothing"], _device);
|
_device = createColorSmoothing(jsonConfig["color"]["smoothing"], _device);
|
||||||
|
Loading…
Reference in New Issue
Block a user