FastLED 3.10.10
Loading...
Searching...
No Matches

◆ clearColorProfile()

void fl::ChannelOptions::clearColorProfile ( )
inline

Definition at line 231 of file options.h.

231 {
232#if FL_COLOR_PROFILE_RUNTIME
233 mColorProfile.mStorage.reset();
234 mColorProfile.mStaticProfile = nullptr;
235 mColorProfile.mRequested = false;
236 // Also drop the global-source opt-in. Without this, a profile bound
237 // by setColorProfile() leaves the flag set, and a following
238 // requestColorManagement(explicitSource) has its source silently
239 // replaced by defaultSourceProfile() in Channel::create().
240 // setColorProfile() re-establishes the flag itself when it succeeds.
241 mColorProfile.mUseGlobalSourceDefault = false;
242#endif
243 }

References fl::FL_NO_EXCEPT, fl::ColorProfileBinding::mRequested, fl::ColorProfileBinding::mStaticProfile, fl::ColorProfileBinding::mStorage, and fl::ColorProfileBinding::mUseGlobalSourceDefault.

Referenced by fl::Channel::create(), requestColorManagement(), setColorProfile(), setLegacyCorrection(), and setLegacyTemperature().

+ Here is the caller graph for this function: