| 120 | } |
| 121 | |
| 122 | void 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 | |
| 134 | void ImageToLedManager::setLedString(const LedString& ledString) |
| 135 | { |
no test coverage detected