FastLED 3.10.8
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 126 of file ucs7604.h.

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

References FL_NO_EXCEPT.

Referenced by encodeUCS7604().

+ Here is the caller graph for this function: