diff options
| author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
| commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
| tree | 1437d0906218fae8827aed384026f2b7e656f4ac /libs/freeimage/src/FreeImage/tmoFattal02.cpp | |
| parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) | |
BYTE -> uint8_t
Diffstat (limited to 'libs/freeimage/src/FreeImage/tmoFattal02.cpp')
| -rw-r--r-- | libs/freeimage/src/FreeImage/tmoFattal02.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/freeimage/src/FreeImage/tmoFattal02.cpp b/libs/freeimage/src/FreeImage/tmoFattal02.cpp index e543fa5f3d..59cbe074ad 100644 --- a/libs/freeimage/src/FreeImage/tmoFattal02.cpp +++ b/libs/freeimage/src/FreeImage/tmoFattal02.cpp @@ -428,7 +428,7 @@ static FIBITMAP* LogLuminance(FIBITMAP *Y) { // find max & min luminance values float maxLum = -1e20F, minLum = 1e20F; - BYTE *bits = (BYTE*)FreeImage_GetBits(H); + uint8_t *bits = (uint8_t*)FreeImage_GetBits(H); for(unsigned y = 0; y < height; y++) { const float *pixel = (float*)bits; for(unsigned x = 0; x < width; x++) { @@ -443,7 +443,7 @@ static FIBITMAP* LogLuminance(FIBITMAP *Y) { // normalize to range 0..100 and take the logarithm const float scale = 100.F / (maxLum - minLum); - bits = (BYTE*)FreeImage_GetBits(H); + bits = (uint8_t*)FreeImage_GetBits(H); for(unsigned y = 0; y < height; y++) { float *pixel = (float*)bits; for(unsigned x = 0; x < width; x++) { @@ -471,7 +471,7 @@ static void ExpLuminance(FIBITMAP *Y) { const unsigned height = FreeImage_GetHeight(Y); const unsigned pitch = FreeImage_GetPitch(Y); - BYTE *bits = (BYTE*)FreeImage_GetBits(Y); + uint8_t *bits = (uint8_t*)FreeImage_GetBits(Y); for(unsigned y = 0; y < height; y++) { float *pixel = (float*)bits; for(unsigned x = 0; x < width; x++) { @@ -644,9 +644,9 @@ FreeImage_TmoFattal02(FIBITMAP *dib, double color_saturation, double attenuation const unsigned rgb_pitch = FreeImage_GetPitch(src); const unsigned y_pitch = FreeImage_GetPitch(Yin); - BYTE *bits = (BYTE*)FreeImage_GetBits(src); - BYTE *bits_yin = (BYTE*)FreeImage_GetBits(Yin); - BYTE *bits_yout = (BYTE*)FreeImage_GetBits(Yout); + uint8_t *bits = (uint8_t*)FreeImage_GetBits(src); + uint8_t *bits_yin = (uint8_t*)FreeImage_GetBits(Yin); + uint8_t *bits_yout = (uint8_t*)FreeImage_GetBits(Yout); for(unsigned y = 0; y < height; y++) { float *Lin = (float*)bits_yin; |
