FastLED 3.10.6
Loading...
Searching...
No Matches

◆ tryEncodeManagedSpi()

FL_NO_INLINE bool fl::anonymous_namespace{channel.cpp.hpp}::tryEncodeManagedSpi ( Channel & channel,
PixelIterator & pixels,
bool managed,
fl::vector_psram< u8 > & output,
SpiChipset chipset )

Shared color-managed SPI override check.

Keeping it out of the per-chipset leaves avoids duplicating the optional pipeline hook in every writer.

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

633 {
634#if FL_COLOR_PROFILE_RUNTIME
635 if (!managed) {
636 return false;
637 }
638 const ColorPipelineHooks& hooks = colorPipelineHooks();
639 return hooks.encodeManagedSpi != nullptr &&
640 hooks.encodeManagedSpi(pixels, &output, chipset, channel);
641#else
642 FL_UNUSED(channel);
643 FL_UNUSED(pixels);
644 FL_UNUSED(managed);
645 FL_UNUSED(output);
646 FL_UNUSED(chipset);
647 return false;
648#endif
649}
#define FL_UNUSED(x)
ColorPipelineHooks & colorPipelineHooks() FL_NO_EXCEPT
The installed hooks.
bool(* encodeManagedSpi)(PixelIterator &pixels, vector_psram< u8 > *out, SpiChipset chip, const CLEDController &controller)
Unscaled (full-brightness) power demand of leds as the pipeline will drive them, in mW,...

References fl::colorPipelineHooks(), fl::ColorPipelineHooks::encodeManagedSpi, fl::FL_NO_EXCEPT, FL_UNUSED, and tryEncodeManagedSpi().

Referenced by tryEncodeManagedSpi().

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