Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 1365:60d7240e1a63
Remove hardcoded encoding/decoding operator counts from the structures, use
a sentinel instead.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 23 Sep 2017 01:20:07 +0300 |
parents | ff18d2511843 |
children | fc5ee5b4b0e9 |
comparison
equal
deleted
inserted
replaced
1364:0d61895e1763 | 1365:60d7240e1a63 |
---|---|
178 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); | 178 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); |
179 int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt); | 179 int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt); |
180 int (*convertFrom)(DMImage *, const DMC64Image *); | 180 int (*convertFrom)(DMImage *, const DMC64Image *); |
181 int (*convertTo)(DMImage *, DMC64Image *); | 181 int (*convertTo)(DMImage *, DMC64Image *); |
182 | 182 |
183 int nencdecOps; | |
184 DMC64EncDecOp encdecOps[D64_MAX_ENCDEC_OPS]; | 183 DMC64EncDecOp encdecOps[D64_MAX_ENCDEC_OPS]; |
185 } DMC64ImageFormat; | 184 } DMC64ImageFormat; |
186 | 185 |
187 | 186 |
188 extern DMColor dmC64Palette[C64_NCOLORS]; | 187 extern DMColor dmC64Palette[C64_NCOLORS]; |