Mercurial > hg > dmlib
diff tools/lib64gfx.h @ 1780:5ea4713e9e0f
Change c64 format probing API to use DMGrowBuf.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 Jun 2018 20:37:53 +0300 |
parents | 4e4d54135baf |
children | e53dc89c0e56 |
line wrap: on
line diff
--- a/tools/lib64gfx.h Tue Jun 12 18:33:35 2018 +0300 +++ b/tools/lib64gfx.h Tue Jun 12 20:37:53 2018 +0300 @@ -211,7 +211,7 @@ int flags; // DM_FMT_* flags, see libgfx.h - int (*probe)(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt); + int (*probe)(const DMGrowBuf *buf, const DMC64ImageFormat *fmt); int (*decode)(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt); int (*encode)(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); @@ -287,7 +287,7 @@ // Miscellaneous functions // void dmC64InitializeFormats(void); -int dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt); +int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt); char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng); void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); @@ -295,7 +295,7 @@ void dmSetDefaultC64Palette(DMImage *img); BOOL dmSetMixedColorC64Palette(DMImage *img); -BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); +BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr); int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); // C64 bitmap image allocation/freeing