123456789101112131415161718192021222324 |
- /*!
- * \file include/utils/pixel.h
- * \brief Pixel buffer utilities
- *
- * \author xythobuz
- */
-
- #ifndef _UTILS_PIXEL_H_
- #define _UTILS_PIXEL_H_
-
- 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);
-
- // Returns newly allocated buffer
- 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);
-
- #endif
|