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

◆ isColorManaged()

bool fl::Channel::isColorManaged ( ) const
inline

True when the streaming transform is actually installed in the output path, which is not the same question as hasColorProfile(): a binding can be accepted and still fail to build a usable pipeline, and that channel stays on the legacy path.

That difference is why both exist.

This was a hardcoded false with a note saying P6 would change it. P6 landed, mPipeline is built in reconcileColorProfile and read in showPixels, and the accessor was not updated – so it answered "no" on channels that were demonstrably transforming colour (#4328).

Definition at line 226 of file channel.h.

226 {
227#if FL_COLOR_PROFILE_RUNTIME
228 return mPipeline != nullptr;
229#else
230 return false;
231#endif
232 }

References fl::FL_NO_EXCEPT.