comparison tools/lib64gfx.h @ 2205:3a25e85f0203

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Jun 2019 03:27:25 +0300
parents cbac4912992c
children 7694b5c8edc1
comparison
equal deleted inserted replaced
2204:cbac4912992c 2205:3a25e85f0203
353 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt); 353 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt);
354 354
355 int dmC64SetImagePalette(DMImage *img, const DMC64Palette *cpal, const BOOL mixed); 355 int dmC64SetImagePalette(DMImage *img, const DMC64Palette *cpal, const BOOL mixed);
356 356
357 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr); 357 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr);
358 int dmC64ImageGetNumBlocks(const DMC64ImageFormat *fmt); 358
359
360 // C64 bitmap image allocation/freeing
361 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); 359 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size);
362 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); 360 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src);
363 void dmC64MemBlockFree(DMC64MemBlock *blk); 361 void dmC64MemBlockFree(DMC64MemBlock *blk);
364 362
363 // C64 bitmap image allocation/freeing
365 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt); 364 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt);
366 void dmC64ImageFree(DMC64Image *img); 365 void dmC64ImageFree(DMC64Image *img);
367 366
368 367
369 // Encoding and decoding of formats and images 368 // Encoding and decoding of formats and images
370 int dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors); 369 int dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors);
370
371 int dmC64ImageGetNumBlocks(const DMC64ImageFormat *fmt);
371 372
372 const char *dmC64GetOpSubjectName(const int subject); 373 const char *dmC64GetOpSubjectName(const int subject);
373 const DMC64MemBlock * dmC64GetOpMemBlock(const DMC64Image *img, const int subject, const int bank); 374 const DMC64MemBlock * dmC64GetOpMemBlock(const DMC64Image *img, const int subject, const int bank);
374 int dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img); 375 int dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img);
375 int dmC64MemBlockAllocSubj(DMC64Image *img, const int subject, const int bank); 376 int dmC64MemBlockAllocSubj(DMC64Image *img, const int subject, const int bank);