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

◆ writeSM16716()

template<typename CONTAINER_UIN8_T>
void fl::PixelIterator::writeSM16716 ( CONTAINER_UIN8_T * out)
inline

Encode pixels in SM16716 format (zero allocation)

Parameters
outOutput buffer to write encoded bytes
Note
Protocol: RGB with start bit for each triplet

Definition at line 341 of file pixel_iterator.h.

341 {
342 auto back_ins = fl::back_inserter(*out);
343 auto pixel_range = makeScaledPixelRangeRGB(this);
344 encodeSM16716(pixel_range.first, pixel_range.second, back_ins);
345 }
pair< detail::ScaledPixelIteratorRGB, detail::ScaledPixelIteratorRGB > makeScaledPixelRangeRGB(PixelIterator *pixels) FL_NOEXCEPT
Create RGB input iterator range from PixelIterator.
back_insert_iterator< Container > back_inserter(Container &c) FL_NOEXCEPT
Helper function to create a back_insert_iterator.
Definition iterator.h:139
void encodeSM16716(InputIterator first, InputIterator last, OutputIterator out) FL_NOEXCEPT
Encode pixel data in SM16716 format.
Definition sm16716.h:32

References fl::back_inserter(), fl::encodeSM16716(), FL_NOEXCEPT, and fl::makeScaledPixelRangeRGB().

Referenced by fl::Channel::showPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: