diff lib64gfx.h @ 507:272e64259fde

Add function pointers for encoding and convertTo/convertFrom to the DMC64ImageFormat structure.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 13:49:44 +0200
parents e4a3f183e463
children 43ea59887c69
line wrap: on
line diff
--- a/lib64gfx.h	Mon Nov 19 13:48:35 2012 +0200
+++ b/lib64gfx.h	Mon Nov 19 13:49:44 2012 +0200
@@ -128,7 +128,9 @@
     char *name;
     int  (*probe)(const Uint8 *buf, const size_t len);
     int  (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
-    int  (*convert)(DMImage *, DMC64Image *);
+    int  (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt);
+    int  (*convertFrom)(DMImage *, DMC64Image *);
+    int  (*convertTo)(DMImage *, DMC64Image *);
 
     int ndecodeOps;
     DMDecodeOp decodeOps[16];