Mercurial > hg > dmlib
diff lib64gfx.h @ 419:936bc27a79d6
Modularize some functions to lib64gfx, fix bitmap -> image conversion,
and implement various cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 07:53:38 +0200 |
parents | b6a1dc3bd2c3 |
children | e4a3f183e463 |
line wrap: on
line diff
--- a/lib64gfx.h Sat Nov 03 07:52:26 2012 +0200 +++ b/lib64gfx.h Sat Nov 03 07:53:38 2012 +0200 @@ -180,6 +180,8 @@ int dmC64ProbeGeneric(const Uint8 *buf, const size_t len, DMC64ImageFormat **fmt); int dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt); int dmC64ConvertGenericBMP2Image(DMImage *screen, const DMC64Image *img); -int dmReadDataFile(const char *filename, Uint8 **buf, size_t *size); +int dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, DMC64ImageFormat **fmt, DMC64ImageFormat *forced); + +int dmReadDataFile(FILE *inFile, const char *filename, Uint8 **buf, size_t *size); #endif // LIB64GFX_H