Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/tools/libgfx.h Thu Feb 28 12:30:21 2019 +0200 +++ b/tools/libgfx.h Thu Feb 28 12:32:07 2019 +0200 @@ -121,6 +121,7 @@ DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp); void dmImageFree(DMImage *img); int dmImageGetBytesPerPixel(const int format); +int dmImageGetBitsPerPixel(const int format); int dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index); BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha);