comparison tools/lib64fmts.c @ 1915:788cfc7096f3

Add support for Gigapaint hires (unpacked) format.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 27 Jun 2018 15:43:20 +0300
parents 8d006508e6c1
children 3c6f638ce402
comparison
equal deleted inserted replaced
1914:87245043a7ae 1915:788cfc7096f3
6 * 6 *
7 * Please read file 'COPYING' for information on license and distribution. 7 * Please read file 'COPYING' for information on license and distribution.
8 */ 8 */
9 #include "lib64gfx.h" 9 #include "lib64gfx.h"
10 10
11
12 static int fmtProbeGigapaintHires(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
13 {
14 if (buf->len == fmt->size &&
15 dmCompareAddr16(buf, 0, fmt->addr))
16 return DM_PROBE_SCORE_MAX;
17
18 return DM_PROBE_SCORE_FALSE;
19 }
11 20
12 21
13 static int fmtProbeKoalaPainterPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) 22 static int fmtProbeKoalaPainterPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
14 { 23 {
15 // Attempt to prevent misprobes of unpacked Koala and Run Paint 24 // Attempt to prevent misprobes of unpacked Koala and Run Paint
1596 }, 1605 },
1597 NULL 1606 NULL
1598 }, 1607 },
1599 1608
1600 { 1609 {
1610 "gih", "Gigapaint hires (unpacked)", 0x6000, 8002, DM_FMT_RDWR,
1611 fmtProbeGigapaintHires,
1612 NULL, NULL,
1613 {
1614 D64_FMT_HIRES,
1615 C64_SCR_WIDTH , C64_SCR_HEIGHT,
1616 C64_SCR_CH_WIDTH, C64_SCR_CH_HEIGHT,
1617 NULL, NULL,
1618 NULL,
1619 {
1620 { DO_COPY , DS_BITMAP_RAM , 0x0000, 0, 0, 0, NULL, NULL },
1621 { DO_SET_OP , DS_SCREEN_RAM , 0x0F , 0, 0, 0, NULL, NULL },
1622 { DO_LAST , 0 , 0 , 0, 0, 0, NULL, NULL },
1623 }
1624 },
1625 NULL
1626 },
1627
1628 {
1601 "bfli", "Pu-239 Big FLI/BFLI (unpacked)", 0x3bff, 33795, DM_FMT_RD, 1629 "bfli", "Pu-239 Big FLI/BFLI (unpacked)", 0x3bff, 33795, DM_FMT_RD,
1602 NULL, 1630 NULL,
1603 NULL, NULL, 1631 NULL, NULL,
1604 { 1632 {
1605 D64_FMT_MC | D64_FMT_FLI, 1633 D64_FMT_MC | D64_FMT_FLI,