# HG changeset patch # User Matti Hamalainen # Date 1527206751 -10800 # Node ID 58ef0124394d7a065713b1c1a3f4f490590b73d3 # Parent 710961d02b8a449968ba6a99265e3144cd92555b Add some comments. diff -r 710961d02b8a -r 58ef0124394d tools/lib64gfx.h --- a/tools/lib64gfx.h Fri May 25 02:23:23 2018 +0300 +++ b/tools/lib64gfx.h Fri May 25 03:05:51 2018 +0300 @@ -50,23 +50,22 @@ #define DM_GET_ADDR_HI(addr) (((addr) >> 8) & 0xff) -// Different supported C64 bitmap "modes" +// Different supported flags/modes enum { - D64_FMT_HIRES = 0x0000, - D64_FMT_MC = 0x0001, - D64_FMT_ILACE = 0x0002, - D64_FMT_FLI = 0x0004, - D64_FMT_CHAR = 0x0008, - - D64_FMT_MODE_MASK = 0x000f, - + D64_FMT_HIRES = 0x0000, // Hi-res + D64_FMT_MC = 0x0001, // MultiColor + D64_FMT_ILACE = 0x0002, // Interlace + D64_FMT_FLI = 0x0004, // FLI + D64_FMT_CHAR = 0x0008, // Character mode }; + +// Different types of interlace enum { - D64_ILACE_RES, - D64_ILACE_COLOR, + D64_ILACE_RES = 0x0001, // Interlace doubles resolution + D64_ILACE_COLOR = 0x0002, // Uses color mixing }; @@ -203,6 +202,9 @@ } DMC64ImageFormat; +// +// Compression types +// #define DM_COMP_RLE_MARKER1 1 #define DM_COMP_RLE_MARKER2 2 #define DM_COMP_RLE_MASK 3