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 483 of file pixel_controller.h.

485 {
486 CRGB rgb = CRGB(mData[0], mData[1], mData[2]);
488 if (rgb) {
489 #if FASTLED_HD_COLOR_MIXING
490 brightness = mColorAdjustment.brightness;
492 #else
493 brightness = 255;
494 CRGB scale = mColorAdjustment.premixed;
495 #endif
497 rgb,
498 scale,
500 &rgb,
501 &brightness);
502 }
506 *b0_out = rgb.raw[b0_index];
507 *b1_out = rgb.raw[b1_index];
508 *b2_out = rgb.raw[b2_index];
510 }
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: