This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofIcon.h File Reference
Go to the source code of this file.
Macros | |
#define | GIMP_IMAGE_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) |
Macro Definition Documentation
◆ GIMP_IMAGE_RUN_LENGTH_DECODE
#define GIMP_IMAGE_RUN_LENGTH_DECODE | ( | image_buf, | |
rle_data, | |||
size, | |||
bpp | |||
) |
Value:
do \
{ unsigned int __bpp; unsigned char *__ip; const unsigned char *__il, *__rd; \
__bpp = (bpp); __ip = (image_buf); __il = __ip + (size) * __bpp; \
__rd = (rle_data); if (__bpp > 3) { /* RGBA */ \
while (__ip < __il) { unsigned int __l = *(__rd++); \
if (__l & 128) { __l = __l - 128; \
do { memcpy (__ip, __rd, 4); __ip += 4; } while (--__l); __rd += 4; \
} else { __l *= 4; memcpy (__ip, __rd, __l); \
__ip += __l; __rd += __l; } } \
} else { /* RGB */ \
while (__ip < __il) { unsigned int __l = *(__rd++); \
if (__l & 128) { __l = __l - 128; \
do { memcpy (__ip, __rd, 3); __ip += 3; } while (--__l); __rd += 3; \
} else { __l *= 3; memcpy (__ip, __rd, __l); \
__ip += __l; __rd += __l; } } \
} } while (0)
Variable Documentation
◆ bytes_per_pixel
unsigned int bytes_per_pixel |
◆ height
unsigned int height |
◆ rle_pixel_data
unsigned char rle_pixel_data[64070+1] |
◆ width
unsigned int width |