FastLED 3.9.15
Loading...
Searching...
No Matches

◆ encodeUCS7604_8bit_RGBW()

template<typename InputIterator, typename OutputIterator>
void fl::encodeUCS7604_8bit_RGBW ( InputIterator first,
InputIterator last,
OutputIterator out )

Encode RGBW pixels in UCS7604 8-bit format.

Template Parameters
InputIteratorIterator yielding fl::array<uint8_t, 4> (RGBW bytes)
OutputIteratorOutput iterator accepting uint8_t
Parameters
firstBeginning of pixel range
lastEnd of pixel range
outOutput iterator for encoded bytes
Note
Writes 4 bytes per pixel (RGBW order)

Definition at line 124 of file ucs7604.h.

124 {
125 while (first != last) {
126 const auto& pixel = *first;
127 *out++ = pixel[0]; // R
128 *out++ = pixel[1]; // G
129 *out++ = pixel[2]; // B
130 *out++ = pixel[3]; // W
131 ++first;
132 }
133}

Referenced by encodeUCS7604().

+ Here is the caller graph for this function: