diff lib64gfx.h @ 556:44d1e0d4acf3

Improve DMC64Image -> DMImage conversion facilities.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 23 Nov 2012 18:37:09 +0200
parents c8cc840a4fcf
children b2b461829c61
line wrap: on
line diff
--- a/lib64gfx.h	Fri Nov 23 17:33:55 2012 +0200
+++ b/lib64gfx.h	Fri Nov 23 18:37:09 2012 +0200
@@ -161,7 +161,7 @@
     int  (*probe)(const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
     int  (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
     int  (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt);
-    int  (*convertFrom)(DMImage *, DMC64Image *);
+    int  (*convertFrom)(DMImage *, const DMC64Image *, const BOOL doubleMC);
     int  (*convertTo)(DMImage *, DMC64Image *);
 
     int nencdecOps;
@@ -180,8 +180,9 @@
 
 int       dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);
 int       dmC64EncodeGenericBMP(Uint8 **pbuf, size_t *plen, const DMC64Image *img, const DMC64ImageFormat *fmt);
-int       dmC64ConvertGenericBMP2Image(DMImage *screen, const DMC64Image *img);
+int       dmC64ConvertGenericBMP2Image(DMImage *dst, const DMC64Image *src, const BOOL doubleMC);
 
+int       dmC64ConvertBMP2Image(DMImage **pdst, const DMC64Image *src, const DMC64ImageFormat *fmt, const BOOL doubleMC);
 int       dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt);
 int       dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, const DMC64ImageFormat **fmt, const DMC64ImageFormat *forced);