Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 924:732787cccca8
Add dimension (w/h) information fields to C64 image format struct.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Feb 2015 15:23:09 +0200 |
parents | 0f477446448d |
children | 23b14d62bf67 |
comparison
equal
deleted
inserted
replaced
923:0f477446448d | 924:732787cccca8 |
---|---|
184 char *fext; // Filename extension | 184 char *fext; // Filename extension |
185 char *name; // Format description/name | 185 char *name; // Format description/name |
186 | 186 |
187 size_t addr; // Loading address (0 if no loading address) | 187 size_t addr; // Loading address (0 if no loading address) |
188 size_t size; // Size, including loading address. Only used in encoding, if even there (0 if no static size) | 188 size_t size; // Size, including loading address. Only used in encoding, if even there (0 if no static size) |
189 | |
190 int width, height; // Width and height in pixels | |
191 int ch_width, ch_height; // Width and height in charblocks | |
192 | |
189 int (*probe)(const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); | 193 int (*probe)(const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); |
190 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); | 194 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); |
191 int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt); | 195 int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt); |
192 int (*convertFrom)(DMImage *, const DMC64Image *, const BOOL doubleMC); | 196 int (*convertFrom)(DMImage *, const DMC64Image *, const BOOL doubleMC); |
193 int (*convertTo)(DMImage *, DMC64Image *); | 197 int (*convertTo)(DMImage *, DMC64Image *); |