FastLED 3.9.15
Loading...
Searching...
No Matches
fl::detail::ScaledPixelIteratorBrightness Class Reference

Detailed Description

Input iterator adapter for PixelIterator yielding brightness values.

Extracts per-LED brightness values from PixelIterator for HD encoders.

Definition at line 240 of file pixel_iterator_adapters.h.

#include <pixel_iterator_adapters.h>

+ Collaboration diagram for fl::detail::ScaledPixelIteratorBrightness:

Public Types

using difference_type = ptrdiff_t
 
using iterator_category = input_iterator_tag
 
using pointer = const u8*
 
using reference = u8
 
using value_type = u8
 

Public Member Functions

 ScaledPixelIteratorBrightness () FL_NOEXCEPT
 Sentinel constructor (end iterator)
 
 ScaledPixelIteratorBrightness (PixelIterator *pixels) FL_NOEXCEPT
 Construct from PixelIterator.
 
bool operator!= (const ScaledPixelIteratorBrightness &other) const FL_NOEXCEPT
 Inequality comparison.
 
u8 operator* () const FL_NOEXCEPT
 Dereference operator.
 
ScaledPixelIteratorBrightness & operator++ () FL_NOEXCEPT
 Pre-increment operator.
 
ScaledPixelIteratorBrightness operator++ (int) FL_NOEXCEPT
 Post-increment operator.
 
bool operator== (const ScaledPixelIteratorBrightness &other) const FL_NOEXCEPT
 Equality comparison.
 

Private Member Functions

void advance () FL_NOEXCEPT
 Advance to next brightness value (or mark as end)
 

Private Attributes

u8 mCurrent
 Current brightness value (cached)
 
bool mHasValue
 true if current value is valid
 
PixelIterator * mPixels
 Underlying PixelIterator.
 

The documentation for this class was generated from the following files: