MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setLedString

Method setLedString

sources/base/ImageToLedManager.cpp:134–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void ImageToLedManager::setLedString(const LedString& ledString)
135{
136 if (_colorAveraging != nullptr)
137 {
138 _ledString = ledString;
139
140 // get current width/height
141 unsigned width = _colorAveraging->width();
142 unsigned height = _colorAveraging->height();
143
144 // Construct a new buffer and mapping
145 registerProcessingUnit(width, height, 0, 0);
146 }
147}
148
149void ImageToLedManager::setBlackbarDetectDisable(bool enable)
150{

Callers 1

handleSettingsUpdateMethod · 0.80

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected