Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 2521:b19535da15e9
Add new field 'size_t extra' to DMC64ImageFormat for certain image format data
for which size field was previously abused for.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 15 May 2020 03:06:48 +0300 |
parents | 4e7d9fd9b7e4 |
children | c6ee41fd98dd |
comparison
equal
deleted
inserted
replaced
2520:4e7d9fd9b7e4 | 2521:b19535da15e9 |
---|---|
297 char *fext; // Filename extension | 297 char *fext; // Filename extension |
298 char *name; // Format description/name | 298 char *name; // Format description/name |
299 | 299 |
300 ssize_t addr; // Loading address ( -2 if no loading address, -1 if loading address not known) | 300 ssize_t addr; // Loading address ( -2 if no loading address, -1 if loading address not known) |
301 size_t size; // Size, including loading address. Only used in probing and encoding. | 301 size_t size; // Size, including loading address. Only used in probing and encoding. |
302 size_t extra; // Extra data used for some formats | |
302 | 303 |
303 int flags; // DM_FMT_* flags (read/write/broken/etc.), see libgfx.h | 304 int flags; // DM_FMT_* flags (read/write/broken/etc.), see libgfx.h |
304 | 305 |
305 int (*probe)(const DMGrowBuf *buf, const DMC64ImageFormat *fmt); | 306 int (*probe)(const DMGrowBuf *buf, const DMC64ImageFormat *fmt); |
306 | 307 |