diff 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
line wrap: on
line diff
--- a/tools/lib64gfx.h	Fri May 11 04:23:47 2018 +0300
+++ b/tools/lib64gfx.h	Fri May 11 04:52:43 2018 +0300
@@ -151,6 +151,7 @@
 
 #define D64_MAX_ENCDEC_OPS 64
 
+typedef struct _DMC64ImageFormat DMC64ImageFormat;
 
 typedef struct _DMC64EncDecOp
 {
@@ -158,8 +159,8 @@
     size_t offs;
     int    bank;
     size_t size;
-    BOOL   (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const Uint8 *buf, const size_t len);
-    BOOL   (*encFunction)(const struct _DMC64EncDecOp *op, Uint8 **buf, size_t *len, const DMC64Image *img);
+    BOOL   (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);
+    BOOL   (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt);
 } DMC64EncDecOp;