FastLED 3.9.7
Loading...
Searching...
No Matches
five_bit_hd_gamma.h File Reference

Detailed Description

Declares functions for five-bit gamma correction.

Definition in file five_bit_hd_gamma.h.

#include <stdint.h>
#include "fl/namespace.h"
#include "fl/force_inline.h"
#include "crgb.h"

Go to the source code of this file.

Enumerations

enum  FiveBitGammaCorrectionMode { kFiveBitGammaCorrectionMode_Null = 0 , kFiveBitGammaCorrectionMode_BitShift = 1 }
 

Functions

void __builtin_five_bit_hd_gamma_bitshift (CRGB colors, CRGB colors_scale, uint8_t global_brightness, CRGB *out_colors, uint8_t *out_power_5bit)
 
uint8_t five_bit_bitshift (uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness, CRGB *out, uint8_t *out_power_5bit)
 
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)
 
void five_bit_hd_gamma_function (CRGB color, uint16_t *r16, uint16_t *g16, uint16_t *b16)
 

Enumeration Type Documentation

◆ FiveBitGammaCorrectionMode

enum FiveBitGammaCorrectionMode

Definition at line 14 of file five_bit_hd_gamma.h.

Function Documentation

◆ __builtin_five_bit_hd_gamma_bitshift()

void __builtin_five_bit_hd_gamma_bitshift ( CRGB colors,
CRGB colors_scale,
uint8_t global_brightness,
CRGB * out_colors,
uint8_t * out_power_5bit )

Definition at line 126 of file five_bit_hd_gamma.cpp.

◆ five_bit_bitshift()

uint8_t five_bit_bitshift ( uint16_t r16,
uint16_t g16,
uint16_t b16,
uint8_t brightness,
CRGB * out,
uint8_t * out_power_5bit )

Definition at line 74 of file five_bit_hd_gamma.cpp.

◆ five_bit_hd_gamma_bitshift()

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 )

Definition at line 57 of file five_bit_hd_gamma.h.

◆ five_bit_hd_gamma_function()

void five_bit_hd_gamma_function ( CRGB color,
uint16_t * r16,
uint16_t * g16,
uint16_t * b16 )

Definition at line 29 of file five_bit_hd_gamma.cpp.