mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-28 03:57:57 -06:00
The high-resolution mode of the DC-S1RM2 (16296 x 10856) tiles the image in two rows of four. Tag 0x0045 holds (x, y) u16 pairs per tile (y was always 0 in single-row files, where the old 32-bit reading gave the same numbers), and tag 0x0043 is the number of tile rows. The decoder now takes each tile's position from the lists, checks that the tiles lie inside the image, do not overlap and cover it exactly, and that 0x0043 equals the number of distinct tile tops. Tiles are decoded like strips. Other tag values are still refused.