comparison tools/lib64gfx.h @ 1637:58ef0124394d

Add some comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 May 2018 03:05:51 +0300
parents 91d1bb571fca
children 9d9a0e852b3d
comparison
equal deleted inserted replaced
1636:710961d02b8a 1637:58ef0124394d
48 48
49 #define DM_GET_ADDR_LO(addr) ((addr) & 0xff) 49 #define DM_GET_ADDR_LO(addr) ((addr) & 0xff)
50 #define DM_GET_ADDR_HI(addr) (((addr) >> 8) & 0xff) 50 #define DM_GET_ADDR_HI(addr) (((addr) >> 8) & 0xff)
51 51
52 52
53 // Different supported C64 bitmap "modes" 53 // Different supported flags/modes
54 enum 54 enum
55 { 55 {
56 D64_FMT_HIRES = 0x0000, 56 D64_FMT_HIRES = 0x0000, // Hi-res
57 D64_FMT_MC = 0x0001, 57 D64_FMT_MC = 0x0001, // MultiColor
58 D64_FMT_ILACE = 0x0002, 58 D64_FMT_ILACE = 0x0002, // Interlace
59 D64_FMT_FLI = 0x0004, 59 D64_FMT_FLI = 0x0004, // FLI
60 D64_FMT_CHAR = 0x0008, 60 D64_FMT_CHAR = 0x0008, // Character mode
61 61 };
62 D64_FMT_MODE_MASK = 0x000f, 62
63 63
64 }; 64 // Different types of interlace
65 65 enum
66 enum 66 {
67 { 67 D64_ILACE_RES = 0x0001, // Interlace doubles resolution
68 D64_ILACE_RES, 68 D64_ILACE_COLOR = 0x0002, // Uses color mixing
69 D64_ILACE_COLOR,
70 }; 69 };
71 70
72 71
73 // Charmode screen memory configuration 72 // Charmode screen memory configuration
74 enum 73 enum
201 200
202 const DMC64EncDecOpList encdecOps, *encdecOpsRef; 201 const DMC64EncDecOpList encdecOps, *encdecOpsRef;
203 } DMC64ImageFormat; 202 } DMC64ImageFormat;
204 203
205 204
205 //
206 // Compression types
207 //
206 #define DM_COMP_RLE_MARKER1 1 208 #define DM_COMP_RLE_MARKER1 1
207 #define DM_COMP_RLE_MARKER2 2 209 #define DM_COMP_RLE_MARKER2 2
208 #define DM_COMP_RLE_MASK 3 210 #define DM_COMP_RLE_MASK 3
209 211
210 212