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

◆ dither() [2/2]

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
template<int SLOT>
static FASTLED_FORCE_INLINE uint8_t PixelController< RGB_ORDER, LANES, MASK >::dither ( PixelController< RGB_ORDER, LANES, MASK > & pc,
uint8_t b )
inlinestatic

Calculate a dither value using the per-channel dither data.

Template Parameters
SLOTThe data slot in the output stream. This is used to select which byte of the output stream is being processed.
Parameters
pcreference to the pixel controller
bthe color byte to dither
See also
PixelController::d

Definition at line 348 of file pixel_controller.h.

348{ return b ? qadd8(b, pc.d[RO(SLOT)]) : 0; }
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
Definition math8.h:31
uint8_t d[3]
values for the scaled dither signal
Pixel controller class.

References PixelController(), d, FASTLED_FORCE_INLINE, qadd8(), and RO.

Referenced by PixelController(), PixelController(), PixelController(), enable_dithering(), loadAndScale(), loadAndScale(), and loadAndScale().

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