summaryrefslogtreecommitdiff
path: root/libs/freeimage/src/FreeImage/ConversionRGBF.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /libs/freeimage/src/FreeImage/ConversionRGBF.cpp
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'libs/freeimage/src/FreeImage/ConversionRGBF.cpp')
-rw-r--r--libs/freeimage/src/FreeImage/ConversionRGBF.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libs/freeimage/src/FreeImage/ConversionRGBF.cpp b/libs/freeimage/src/FreeImage/ConversionRGBF.cpp
index cd0e875ddc..d1f7611caa 100644
--- a/libs/freeimage/src/FreeImage/ConversionRGBF.cpp
+++ b/libs/freeimage/src/FreeImage/ConversionRGBF.cpp
@@ -103,11 +103,11 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
// calculate the number of bytes per pixel (3 for 24-bit or 4 for 32-bit)
const unsigned bytespp = FreeImage_GetLine(src) / FreeImage_GetWidth(src);
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
- const BYTE *src_pixel = (BYTE*)src_bits;
+ const uint8_t *src_pixel = (uint8_t*)src_bits;
FIRGBF *dst_pixel = (FIRGBF*)dst_bits;
for(unsigned x = 0; x < width; x++) {
// convert and scale to the range [0..1]
@@ -126,8 +126,8 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
case FIT_UINT16:
{
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
const WORD *src_pixel = (WORD*)src_bits;
@@ -148,8 +148,8 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
case FIT_RGB16:
{
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
const FIRGB16 *src_pixel = (FIRGB16*) src_bits;
@@ -169,8 +169,8 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
case FIT_RGBA16:
{
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
const FIRGBA16 *src_pixel = (FIRGBA16*) src_bits;
@@ -190,8 +190,8 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
case FIT_FLOAT:
{
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
const float *src_pixel = (float*) src_bits;
@@ -213,8 +213,8 @@ FreeImage_ConvertToRGBF(FIBITMAP *dib) {
case FIT_RGBAF:
{
- const BYTE *src_bits = (BYTE*)FreeImage_GetBits(src);
- BYTE *dst_bits = (BYTE*)FreeImage_GetBits(dst);
+ const uint8_t *src_bits = (uint8_t*)FreeImage_GetBits(src);
+ uint8_t *dst_bits = (uint8_t*)FreeImage_GetBits(dst);
for(unsigned y = 0; y < height; y++) {
const FIRGBAF *src_pixel = (FIRGBAF*) src_bits;