|
FastLED 3.10.8
|
The most BINARY_DITHER can add to one latched frame of leds, in mW (#4342, contract R4: "quantization reserve").
Dither is applied before scaling and only ever raises a lit channel – dither() is b ? qadd8(b, d) : 0 – by up to two output codes at any non-zero brightness (the offset d <= 256/s is scaled back by s, and the FASTLED_SCALE8_FIXED rounding can carry once more). So the reserve is two codes on every lit channel, at the power model's steepest single-code step, rounded up. It does not scale with brightness, which is why the limiter adds it to the fixed part of the demand rather than the scaled part.
Definition at line 548 of file power_mgt.cpp.hpp.
References PowerModelRGB::blue_mW, FL_NO_EXCEPT, gPowerModel(), PowerModelRGB::green_mW, kDitherReserveCodes, leds, max_power_step(), and PowerModelRGB::red_mW.
Referenced by controller_dither_reserve_mW().
Here is the call graph for this function:
Here is the caller graph for this function: