comparison tools/libgfx.h @ 2100:81fb21dd3265

Add dmGetNPlanesFromNColors() and use it.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Mar 2019 15:09:18 +0200
parents 80786a28caf0
children 26f21e487fe2
comparison
equal deleted inserted replaced
2099:dac89484f143 2100:81fb21dd3265
130 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp); 130 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp);
131 void dmImageFree(DMImage *img); 131 void dmImageFree(DMImage *img);
132 int dmImageGetBytesPerPixel(const int format); 132 int dmImageGetBytesPerPixel(const int format);
133 int dmImageGetBitsPerPixel(const int format); 133 int dmImageGetBitsPerPixel(const int format);
134 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index); 134 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index);
135 int dmGetNPlanesFromNColors(const int ncolors);
135 136
136 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, const BOOL alpha); 137 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, const BOOL alpha);
137 int dmPaletteAlloc(DMPalette **ppal, const int ncolors, const int ctransp); 138 int dmPaletteAlloc(DMPalette **ppal, const int ncolors, const int ctransp);
138 int dmPaletteResize(DMPalette **ppal, const int ncolors); 139 int dmPaletteResize(DMPalette **ppal, const int ncolors);
139 void dmPaletteFree(DMPalette *pal); 140 void dmPaletteFree(DMPalette *pal);