comparison tools/libgfx.h @ 2093:d17512dbb4ef

Some work on reading >8bpp images.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 28 Feb 2019 12:32:07 +0200
parents 614b161c0aa5
children 4276b8c0fef0
comparison
equal deleted inserted replaced
2092:614b161c0aa5 2093:d17512dbb4ef
119 119
120 120
121 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp); 121 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp);
122 void dmImageFree(DMImage *img); 122 void dmImageFree(DMImage *img);
123 int dmImageGetBytesPerPixel(const int format); 123 int dmImageGetBytesPerPixel(const int format);
124 int dmImageGetBitsPerPixel(const int format);
124 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index); 125 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index);
125 126
126 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha); 127 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha);
127 BOOL dmPaletteAlloc(DMColor **ppal, int ncolors, int ctransp); 128 BOOL dmPaletteAlloc(DMColor **ppal, int ncolors, int ctransp);
128 BOOL dmImagePaletteAlloc(DMImage *img, int ncolors, int ctransp); 129 BOOL dmImagePaletteAlloc(DMImage *img, int ncolors, int ctransp);