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

◆ loadRawPremixed()

template<typename PixelControllerT>
static void fl::PixelControllerVtable< PixelControllerT >::loadRawPremixed ( void * pixel_controller,
u8 * raw,
u8 * premix )
inlinestatic

Raw source-order pixel plus premixed scale: everything the RGBW/RGBWW conversion reads, so one small thunk replaces the per-type RGBW/RGBWW thunks and the conversion itself stays type-erased and link-on-use (#4795).

Definition at line 82 of file pixel_iterator.h.

82 {
84 raw[0] = pc->mData[0];
85 raw[1] = pc->mData[1];
86 raw[2] = pc->mData[2];
87 premix[0] = pc->mColorAdjustment.premixed.r;
88 premix[1] = pc->mColorAdjustment.premixed.g;
89 premix[2] = pc->mColorAdjustment.premixed.b;
90 }

References fl::FL_NO_EXCEPT.

Referenced by fl::RawPremixBinder< T, typename detail::OnlyIf<(T::kColorOrder==T::kColorOrder)>::type >::get().

+ Here is the caller graph for this function: