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

497 {
498 CRGB rgb = CRGB(mData[0], mData[1], mData[2]);
500 if (rgb) {
501 #if FASTLED_HD_COLOR_MIXING
502 brightness = mColorAdjustment.brightness;
504 #else
505 brightness = 255;
506 CRGB scale = mColorAdjustment.premixed;
507 #endif
509 rgb,
510 scale,
512 &rgb,
513 &brightness);
514 }
518 *b0_out = rgb.raw[b0_index];
519 *b1_out = rgb.raw[b1_index];
520 *b2_out = rgb.raw[b2_index];
522 }
void five_bit_hd_gamma_bitshift(CRGB colors, CRGB colors_scale, fl::u8 global_brightness, CRGB *out_colors, fl::u8 *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: