Mercurial > hg > dmlib
diff tools/lib64gfx.h @ 1465:88845f95e791
Change dmC64EncodeGenericBMP() to use DMGrowBuf, and make the necessary changes in gfxconv as well.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 21:29:52 +0300 |
parents | dcff9ac95d3f |
children | 32203356c652 |
line wrap: on
line diff
--- a/tools/lib64gfx.h Thu May 10 21:28:14 2018 +0300 +++ b/tools/lib64gfx.h Thu May 10 21:29:52 2018 +0300 @@ -10,6 +10,7 @@ #define LIB64GFX_H 1 #include "libgfx.h" +#include "dmgrowbuf.h" #ifdef __cplusplus extern "C" { @@ -172,7 +173,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)(Uint8 **buf, size_t *len, const DMC64Image *img, const struct _DMC64ImageFormat *fmt); + int (*encode)(DMGrowBuf *buf, const DMC64Image *img, const struct _DMC64ImageFormat *fmt); int (*convertFrom)(DMImage *, const DMC64Image *, const struct _DMC64ImageFormat *fmt); int (*convertTo)(DMC64Image *, const DMImage *, const struct _DMC64ImageFormat *fmt); @@ -200,7 +201,7 @@ int dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt); 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 dmC64EncodeGenericBMP(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); int dmC64ConvertBMP2Image(DMImage **pdst, const DMC64Image *src, const DMC64ImageFormat *fmt);