9#include "fl/force_inline.h"
14enum FiveBitGammaCorrectionMode {
15 kFiveBitGammaCorrectionMode_Null = 0,
16 kFiveBitGammaCorrectionMode_BitShift = 1
37void __builtin_five_bit_hd_gamma_bitshift(
CRGB colors,
39 uint8_t global_brightness,
41 uint8_t *out_power_5bit);
45uint8_t five_bit_bitshift(uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness,
CRGB* out, uint8_t* out_power_5bit);
47#ifdef FASTLED_FIVE_BIT_HD_BITSHIFT_FUNCTION_OVERRIDE
50extern void five_bit_hd_gamma_bitshift(
CRGB colors,
52 uint8_t global_brightness,
54 uint8_t *out_power_5bit);
56FASTLED_FORCE_INLINE
void
57five_bit_hd_gamma_bitshift(
CRGB colors,
59 uint8_t global_brightness,
61 uint8_t *out_power_5bit) {
62 __builtin_five_bit_hd_gamma_bitshift(colors,
83#ifdef FASTLED_FIVE_BIT_HD_GAMMA_FUNCTION_OVERRIDE
86extern void five_bit_hd_gamma_function(
CRGB color,
87 uint16_t *r16, uint16_t *g16, uint16_t *b16);
89void five_bit_hd_gamma_function(
CRGB color,
90 uint16_t *r16, uint16_t *g16, uint16_t *b16);
Defines the red, green, and blue (RGB) pixel struct.
Implements the FastLED namespace macros.
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Representation of an RGB pixel (Red, Green, Blue)