Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 1644:9d9a0e852b3d
Reorder some functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 30 May 2018 00:56:32 +0300 |
parents | 58ef0124394d |
children | 262300a0359b |
comparison
equal
deleted
inserted
replaced
1643:1834a477e0e2 | 1644:9d9a0e852b3d |
---|---|
226 | 226 |
227 | 227 |
228 // | 228 // |
229 // Miscellaneous functions | 229 // Miscellaneous functions |
230 // | 230 // |
231 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng); | |
231 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); | 232 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); |
232 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng); | |
233 | 233 |
234 void dmSetDefaultC64Palette(DMImage *img); | 234 void dmSetDefaultC64Palette(DMImage *img); |
235 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); | |
235 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); | 236 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); |
236 int dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors); | 237 |
237 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); | 238 // C64 bitmap image allocation/freeing |
238 | |
239 int dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img); | |
240 BOOL dmC64GetOpSize(const DMC64EncDecOp *op, const DMC64ImageFormat *fmt, size_t *size); | |
241 | |
242 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); | 239 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); |
243 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); | 240 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); |
244 void dmC64MemBlockFree(DMC64MemBlock *blk); | 241 void dmC64MemBlockFree(DMC64MemBlock *blk); |
245 | 242 |
246 | |
247 // C64 bitmap image allocation/freeing | |
248 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt); | 243 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt); |
249 void dmC64ImageFree(DMC64Image *img); | 244 void dmC64ImageFree(DMC64Image *img); |
250 | 245 |
251 | 246 |
252 // Encoding and decoding of formats and images | 247 // Encoding and decoding of formats and images |
248 int dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors); | |
249 | |
250 int dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img); | |
251 BOOL dmC64GetOpSize(const DMC64EncDecOp *op, const DMC64ImageFormat *fmt, size_t *size); | |
252 | |
253 int dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt); | 253 int dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt); |
254 | 254 |
255 int dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt); | 255 int dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt); |
256 int dmC64EncodeGenericBMP(const BOOL allocate, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); | 256 int dmC64EncodeGenericBMP(const BOOL allocate, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); |
257 | 257 |