comparison tools/lib64gfx.h @ 1486:bc13af8954d7

Add DMC64ImageFormat to C64 bitmap format encoding/decoding ops function parameters.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 04:52:43 +0300
parents df6dacb48970
children c71b6c5204af
comparison
equal deleted inserted replaced
1485:06a9c16601d6 1486:bc13af8954d7
149 DT_LAST, 149 DT_LAST,
150 }; 150 };
151 151
152 #define D64_MAX_ENCDEC_OPS 64 152 #define D64_MAX_ENCDEC_OPS 64
153 153
154 typedef struct _DMC64ImageFormat DMC64ImageFormat;
154 155
155 typedef struct _DMC64EncDecOp 156 typedef struct _DMC64EncDecOp
156 { 157 {
157 int type; 158 int type;
158 size_t offs; 159 size_t offs;
159 int bank; 160 int bank;
160 size_t size; 161 size_t size;
161 BOOL (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const Uint8 *buf, const size_t len); 162 BOOL (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);
162 BOOL (*encFunction)(const struct _DMC64EncDecOp *op, Uint8 **buf, size_t *len, const DMC64Image *img); 163 BOOL (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt);
163 } DMC64EncDecOp; 164 } DMC64EncDecOp;
164 165
165 166
166 typedef struct _DMC64ImageFormat 167 typedef struct _DMC64ImageFormat
167 { 168 {