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

Method setSize

sources/base/ImageToLedManager.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void ImageToLedManager::setSize(unsigned width, unsigned height)
123{
124 // Check if the existing buffer-image is already the correct dimensions
125 if (_colorAveraging != nullptr && _colorAveraging->width() == width && _colorAveraging->height() == height)
126 {
127 return;
128 }
129
130 // Construct a new buffer and mapping
131 registerProcessingUnit(width, height, 0, 0);
132}
133
134void ImageToLedManager::setLedString(const LedString& ledString)
135{

Callers 1

dialog.min.jsFile · 0.80

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected