FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loadAndScale_APA102_HD()

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
FASTLED_FORCE_INLINE void PixelController< RGB_ORDER, LANES, MASK >::loadAndScale_APA102_HD ( uint8_t * b0_out,
uint8_t * b1_out,
uint8_t * b2_out,
uint8_t * brightness_out )
inline

Definition at line 488 of file pixel_controller.h.

490 {
491 CRGB rgb = CRGB(mData[0], mData[1], mData[2]);
493 if (rgb) {
494 #if FASTLED_HD_COLOR_MIXING
495 brightness = mColorAdjustment.brightness;
497 #else
498 brightness = 255;
499 CRGB scale = mColorAdjustment.premixed;
500 #endif
502 rgb,
503 scale,
505 &rgb,
506 &brightness);
507 }
511 *b0_out = rgb.raw[b0_index];
512 *b1_out = rgb.raw[b1_index];
513 *b2_out = rgb.raw[b2_index];
515 }
FASTLED_FORCE_INLINE void five_bit_hd_gamma_bitshift(CRGB colors, CRGB colors_scale, uint8_t global_brightness, CRGB *out_colors, uint8_t *out_power_5bit)
#define RGB_BYTE2(RO)
Gets the color channel for byte 2.
#define RGB_BYTE1(RO)
Gets the color channel for byte 1.
#define RGB_BYTE0(RO)
Gets the color channel for byte 0.
static FASTLED_FORCE_INLINE uint8_t scale(PixelController &pc, uint8_t b)
Scale a value using the per-channel scale data.
const uint8_t * mData
pointer to the underlying LED data
ColorAdjustment mColorAdjustment
Pixel controller class.

References brightness, FASTLED_FORCE_INLINE, fl::five_bit_hd_gamma_bitshift(), mColorAdjustment, mData, RGB_BYTE0, RGB_BYTE1, RGB_BYTE2, and scale().

Referenced by APA102Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED, GAMMA_CORRECTION_MODE, START_FRAME, END_FRAME >::showPixelsGammaBitShift().

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