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

◆ rgbw_convert_pixel()

void fl::detail::anonymous_namespace{rgbw.cpp.hpp}::rgbw_convert_pixel ( const Rgbw & rgbw,
const u8(&) raw[3],
const u8(&) premix[3],
const u8(&) order[3],
u8 * b0,
u8 * b1,
u8 * b2,
u8 * b3 )

Definition at line 718 of file rgbw.cpp.hpp.

720 {
721 // Same steps as PixelController::loadAndScaleRGBW: source-order RGB plus
722 // W from the raw pixel and premixed scale, then the wire reorder.
723 u8 c[3];
724 u8 w = 0;
725 rgb_2_rgbw(rgbw, raw[0], raw[1], raw[2], premix[0], premix[1], premix[2],
726 &c[0], &c[1], &c[2], &w);
727 rgbw_partial_reorder(rgbw.w_placement, c[order[0]], c[order[1]],
728 c[order[2]], w, b0, b1, b2, b3);
729}
Rgbw rgbw
unsigned char u8
Definition stdint.h:131
void rgbw_partial_reorder(EOrderW w_placement, u8 b0, u8 b1, u8 b2, u8 w, u8 *out_b0, u8 *out_b1, u8 *out_b2, u8 *out_b3) FL_NO_EXCEPT
Definition rgbw.cpp.hpp:679
FASTLED_FORCE_INLINE void rgb_2_rgbw(const Rgbw &cfg, u8 r, u8 g, u8 b, u8 r_scale, u8 g_scale, u8 b_scale, u8 *out_r, u8 *out_g, u8 *out_b, u8 *out_w) FL_NO_EXCEPT
Converts RGB to RGBW using one of the functions.
Definition rgbw.h:406

References fl::FL_NO_EXCEPT, fl::rgb_2_rgbw(), rgbw, rgbw_convert_pixel(), and fl::rgbw_partial_reorder().

Referenced by rgbw_convert_pixel().

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