MCPcopy Create free account
hub / github.com/FastLED/FastLED / writeHD108

Method writeHD108

src/fl/chipsets/encoders/pixel_iterator.h:351–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 /// @note Protocol: 16-bit RGB with gamma correction and brightness control
350 template <typename CONTAINER_UIN8_T>
351 void writeHD108(CONTAINER_UIN8_T* out) FL_NOEXCEPT {
352 auto back_ins = fl::back_inserter(*out);
353
354 #if FASTLED_HD_COLOR_MIXING
355 // HD mode: per-LED brightness
356 auto pixel_range = makeScaledPixelRangeRGB(this);
357 auto brightness_range = makeScaledBrightnessRange(this);
358 encodeHD108_HD(pixel_range.first, pixel_range.second,
359 brightness_range.first, back_ins);
360 #else
361 // Standard mode: global brightness (255 = full)
362 auto pixel_range = makeScaledPixelRangeRGB(this);
363 encodeHD108(pixel_range.first, pixel_range.second,
364 back_ins, 255);
365 #endif
366 }
367
368 private:
369 // vtable emulation

Callers 1

showPixelsMethod · 0.80

Calls 5

back_inserterFunction · 0.85
makeScaledPixelRangeRGBFunction · 0.85
encodeHD108_HDFunction · 0.85
encodeHD108Function · 0.85

Tested by

no test coverage detected