|
FastLED 3.10.6
|
| void fl::encodeHD108 | ( | InputIterator | first, |
| InputIterator | last, | ||
| OutputIterator | out, | ||
| u8 | global_brightness = 255 ) |
Encode pixel data in HD108 format with global brightness.
| InputIterator | Iterator yielding fl::array<u8, 3> (3 bytes in wire order) |
| OutputIterator | Output iterator accepting uint8_t |
| first | Iterator to first pixel |
| last | Iterator past last pixel |
| out | Output iterator for encoded bytes |
| global_brightness | Accepted and ignored. HD108's per-channel 5-bit gains are pinned at maximum (31) for precision and brightness is expected to be applied to the 16-bit values before encoding, so this argument reaches neither the header nor the payload. Kept for source compatibility; the sole in-tree caller passes 255 and pre-scales. Passing anything else does not dim (FastLED#4042). |
Definition at line 43 of file hd108.h.
References FL_NO_EXCEPT, hd108BrightnessHeader(), and hd108GammaCorrect().
Here is the call graph for this function: