Pixel buffer utilities.
More...
#include "global.h"
#include "utils/pixel.h"
Go to the source code of this file.
|
unsigned char * | generateColorTexture (glm::vec4 rgba, unsigned int width, unsigned int height, unsigned int bpp) |
|
void | argb2rgba32 (unsigned char *image, unsigned int w, unsigned int h) |
|
unsigned char * | argb16to32 (unsigned char *image, unsigned int w, unsigned int h) |
|
unsigned char * | grayscale2rgba (unsigned char *image, unsigned int w, unsigned int h) |
|
unsigned char * | scaleBuffer (unsigned char *image, unsigned int *w, unsigned int *h, unsigned int bpp) |
|
Pixel buffer utilities.
- Author
- xythobuz
Definition in file pixel.cpp.
Value:do { \
unsigned int i; \
for (i = 1; i < (x); i *= 2); \
(x) = i; \
} while (false);
Definition at line 80 of file pixel.cpp.
unsigned char* generateColorTexture |
( |
glm::vec4 |
rgba, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
bpp |
|
) |
| |
void argb2rgba32 |
( |
unsigned char * |
image, |
|
|
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
unsigned char* argb16to32 |
( |
unsigned char * |
image, |
|
|
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
unsigned char* grayscale2rgba |
( |
unsigned char * |
image, |
|
|
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
unsigned char* scaleBuffer |
( |
unsigned char * |
image, |
|
|
unsigned int * |
w, |
|
|
unsigned int * |
h, |
|
|
unsigned int |
bpp |
|
) |
| |