FastLED 3.10.8
Loading...
Searching...
No Matches

◆ syncLegacySettings()

void fl::Channel::syncLegacySettings ( )
private

Definition at line 391 of file channel.cpp.hpp.

391 {
396 // Active white config assigned straight into ChannelOptions.mWhiteCfg
397 // never passed through setRgbw()/setRgbww(): install its conversion here
398 // (#4795).
399 if (const Rgbw* rgbw = mLegacySettings.mWhiteCfg.ptr<Rgbw>()) {
400 if (rgbw->active()) {
402 }
403 } else if (const Rgbww* rgbww = mLegacySettings.mWhiteCfg.ptr<Rgbww>()) {
404 if (rgbww->active()) {
406 }
407 }
408 if (const auto* rgbw = mSettings.mWhiteCfg.ptr<Rgbw>()) {
411 }
412}
Rgbw rgbw
LegacySettings mLegacySettings
ChannelOptions mSettings
Definition channel.h:459
void enable_rgbww_conversion() FL_NO_EXCEPT
Installs the RGBWW pixel conversion (see enable_rgbw_conversion, #4795).
void enable_rgbw_conversion() FL_NO_EXCEPT
Installs the RGBW pixel conversion used by PixelIterator.
Definition rgbw.cpp.hpp:732
void enable_rgbw_power_estimate() FL_NO_EXCEPT
Lets the power limiter charge a controller's RGBW conversion.
void prepare_rgbw_colorimetric(const Rgbw &) FL_NO_EXCEPT
Definition rgbw.cpp.hpp:626
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:99
fl::u8 mDitherMode
Definition options.h:95
variant< Empty, Rgbw, Rgbww > mWhiteCfg
FASTLED_FORCE_INLINE bool active() const FL_NO_EXCEPT
Definition rgbw.h:258

References fl::detail::enable_rgbw_conversion(), fl::detail::enable_rgbw_power_estimate(), fl::detail::enable_rgbww_conversion(), fl::FL_NO_EXCEPT, fl::CLEDController::mLegacySettings, mSettings, fl::prepare_rgbw_colorimetric(), and rgbw.

Referenced by Channel(), Channel(), and applyConfig().

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