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

◆ rgbww_convert_pixel()

void fl::detail::anonymous_namespace{rgbww.cpp.hpp}::rgbww_convert_pixel ( const Rgbww & rgbww,
const fl::u8(&) raw[3],
const fl::u8(&) premix[3],
const fl::u8(&) order[3],
fl::u8 * b0,
fl::u8 * b1,
fl::u8 * b2,
fl::u8 * b3,
fl::u8 * b4 )

Definition at line 403 of file rgbww.cpp.hpp.

406 {
407 // Same steps as PixelController::loadAndScaleRGBWW.
408 fl::u8 c[3];
409 fl::u8 ww = 0;
410 fl::u8 wc = 0;
411 rgb_2_rgbww(rgbww, raw[0], raw[1], raw[2], premix[0], premix[1], premix[2],
412 &c[0], &c[1], &c[2], &ww, &wc);
413 rgbww_partial_reorder(rgbww.w_placement, c[order[0]], c[order[1]],
414 c[order[2]], ww, wc, b0, b1, b2, b3, b4);
415}
unsigned char u8
Definition stdint.h:131
void rgbww_partial_reorder(EOrderWW ww_placement, u8 b0, u8 b1, u8 b2, u8 ww, u8 wc, u8 *out_b0, u8 *out_b1, u8 *out_b2, u8 *out_b3, u8 *out_b4) FL_NO_EXCEPT
Dispatch RGB->RGBWW for a given mode.
FASTLED_FORCE_INLINE void rgb_2_rgbww(const Rgbww &cfg, fl::u8 r, fl::u8 g, fl::u8 b, fl::u8 r_scale, fl::u8 g_scale, fl::u8 b_scale, fl::u8 *out_r, fl::u8 *out_g, fl::u8 *out_b, fl::u8 *out_ww, fl::u8 *out_wc) FL_NO_EXCEPT
Definition rgbww.h:194
EOrderWW w_placement
Definition rgbww.h:93

References fl::FL_NO_EXCEPT, fl::rgb_2_rgbww(), rgbww_convert_pixel(), fl::rgbww_partial_reorder(), and fl::Rgbww::w_placement.

Referenced by rgbww_convert_pixel().

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