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

◆ clearColorProfile()

void fl::ChannelOptions::clearColorProfile ( )
inline

Definition at line 229 of file options.h.

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

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: