Open Source Tomb Raider Engine
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526
  1. /*!
  2. * \file include/utils/pixel.h
  3. * \brief Pixel buffer utilities
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _UTILS_PIXEL_H_
  8. #define _UTILS_PIXEL_H_
  9. unsigned char* generateColorTexture(const unsigned char* rgba, unsigned int width,
  10. unsigned int height, unsigned int bpp);
  11. void bgr2rgb24(unsigned char* image, unsigned int w, unsigned int h);
  12. void bgra2rgba32(unsigned char* image, unsigned int w, unsigned int h);
  13. void argb2rgba32(unsigned char* image, unsigned int w, unsigned int h);
  14. // Returns newly allocated buffer
  15. unsigned char* argb16to32(unsigned char* image, unsigned int w, unsigned int h);
  16. unsigned char* grayscale2rgba(unsigned char* image, unsigned int w, unsigned int h);
  17. unsigned char* scaleBuffer(unsigned char* image, unsigned int* w, unsigned int* h,
  18. unsigned int bpp);
  19. #endif