Skip to content

Commit f779e65

Browse files
committed
function rename
1 parent e115563 commit f779e65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wled00/colors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ uint32_t IRAM_ATTR_YN NeoGammaWLEDMethod::Correct32(uint32_t color)
599599
return RGBW32(r, g, b, w);
600600
}
601601

602-
uint32_t IRAM_ATTR_YN NeoGammaWLEDMethod::invertGamma32(uint32_t color)
602+
uint32_t IRAM_ATTR_YN NeoGammaWLEDMethod::inverseGamma32(uint32_t color)
603603
{
604604
if (!gammaCorrectCol) return color;
605605
uint8_t w = W(color);

wled00/fcn_declare.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class NeoGammaWLEDMethod {
158158
public:
159159
[[gnu::hot]] static uint8_t Correct(uint8_t value); // apply Gamma to single channel
160160
[[gnu::hot]] static uint32_t Correct32(uint32_t color); // apply Gamma to RGBW32 color (WLED specific, not used by NPB)
161-
[[gnu::hot]] static uint32_t invertGamma32(uint32_t color); // apply inverse Gamma to RGBW32 color
161+
[[gnu::hot]] static uint32_t inverseGamma32(uint32_t color); // apply inverse Gamma to RGBW32 color
162162
static void calcGammaTable(float gamma); // re-calculates & fills gamma tables
163163
static inline uint8_t rawGamma8(uint8_t val) { return gammaT[val]; } // get value from Gamma table (WLED specific, not used by NPB)
164164
static inline uint8_t rawInverseGamma8(uint8_t val) { return gammaT_inv[val]; } // get value from inverse Gamma table (WLED specific, not used by NPB)
@@ -168,7 +168,7 @@ class NeoGammaWLEDMethod {
168168
};
169169
#define gamma32(c) NeoGammaWLEDMethod::Correct32(c)
170170
#define gamma8(c) NeoGammaWLEDMethod::rawGamma8(c)
171-
#define gamma32inv(c) NeoGammaWLEDMethod::invertGamma32(c)
171+
#define gamma32inv(c) NeoGammaWLEDMethod::inverseGamma32(c)
172172
#define gamma8inv(c) NeoGammaWLEDMethod::rawInverseGamma8(c)
173173
[[gnu::hot, gnu::pure]] uint32_t color_blend(uint32_t c1, uint32_t c2 , uint8_t blend);
174174
inline uint32_t color_blend16(uint32_t c1, uint32_t c2, uint16_t b) { return color_blend(c1, c2, b >> 8); };

0 commit comments

Comments
 (0)