6#include "force_inline.h"
11enum FiveBitGammaCorrectionMode {
12 kFiveBitGammaCorrectionMode_Null = 0,
13 kFiveBitGammaCorrectionMode_BitShift = 1
34void __builtin_five_bit_hd_gamma_bitshift(
CRGB colors,
36 uint8_t global_brightness,
38 uint8_t *out_power_5bit);
42uint8_t five_bit_bitshift(uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness,
CRGB* out, uint8_t* out_power_5bit);
44#ifdef FASTLED_FIVE_BIT_HD_BITSHIFT_FUNCTION_OVERRIDE
47extern void five_bit_hd_gamma_bitshift(
CRGB colors,
49 uint8_t global_brightness,
51 uint8_t *out_power_5bit);
53FASTLED_FORCE_INLINE
void
54five_bit_hd_gamma_bitshift(
CRGB colors,
56 uint8_t global_brightness,
58 uint8_t *out_power_5bit) {
59 __builtin_five_bit_hd_gamma_bitshift(colors,
80#ifdef FASTLED_FIVE_BIT_HD_GAMMA_FUNCTION_OVERRIDE
83extern void five_bit_hd_gamma_function(
CRGB color,
84 uint16_t *r16, uint16_t *g16, uint16_t *b16);
86void five_bit_hd_gamma_function(
CRGB color,
87 uint16_t *r16, uint16_t *g16, uint16_t *b16);
Representation of an RGB pixel (Red, Green, Blue)