Mercurial > hg > dmlib
diff lib64gfx.h @ 511:4cdcaeb68b54
Collapse most of the probing functions into one generic probe, as they only
check loading address and file size.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Nov 2012 15:52:44 +0200 |
parents | 43ea59887c69 |
children | 95a6b6af53f1 |
line wrap: on
line diff
--- a/lib64gfx.h Mon Nov 19 15:06:01 2012 +0200 +++ b/lib64gfx.h Mon Nov 19 15:52:44 2012 +0200 @@ -128,7 +128,9 @@ int type; char *extension; char *name; - int (*probe)(const Uint8 *buf, const size_t len); + size_t addr; // Loading address (0 if no loading address) + size_t size; // Size, including loading address. Only used in encoding, if even there (0 if no static size) + int (*probe)(const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt); int (*convertFrom)(DMImage *, DMC64Image *);