FastLED 3.9.15
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 106 of file ucs7604.h.

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

Referenced by encodeUCS7604().

+ Here is the caller graph for this function: