MCPcopy Create free account
hub / github.com/AlexGyver/GyverLamp2 / dither

Method dither

libraries/FastLED-3.4.0/src/controller.h:346–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 template<int SLOT> __attribute__((always_inline)) inline static uint8_t loadByte(PixelController & pc, int lane) { return pc.mData[pc.mOffsets[lane] + RO(SLOT)]; }
345
346 template<int SLOT> __attribute__((always_inline)) inline static uint8_t dither(PixelController & pc, uint8_t b) { return b ? qadd8(b, pc.d[RO(SLOT)]) : 0; }
347 template<int SLOT> __attribute__((always_inline)) inline static uint8_t dither(PixelController & , uint8_t b, uint8_t d) { return b ? qadd8(b,d) : 0; }
348
349 template<int SLOT> __attribute__((always_inline)) inline static uint8_t scale(PixelController & pc, uint8_t b) { return scale8(b, pc.mScale.raw[RO(SLOT)]); }

Callers

nothing calls this directly

Calls 1

qadd8Function · 0.85

Tested by

no test coverage detected