FastLED 3.10.8
Loading...
Searching...
No Matches

◆ encodeUCS7604_8bit_RGB()

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

Encode RGB pixels in UCS7604 8-bit format.

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

Definition at line 108 of file ucs7604.h.

108 {
109 while (first != last) {
110 const auto& pixel = *first;
111 *out++ = pixel[0]; // R
112 *out++ = pixel[1]; // G
113 *out++ = pixel[2]; // B
114 ++first;
115 }
116}

References FL_NO_EXCEPT.

Referenced by encodeUCS7604().

+ Here is the caller graph for this function: