mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-14 19:26:51 -04:00
A read-only DirectDraw Surface codec on the model of PCX: the top mip level of a 2D texture, uncompressed (channel masks, RGB or luminance, 8 to 32 bits) or BC1/BC2/BC3 (DXT1/3/5), with the legacy or the DX10 header. Cubemaps, arrays, volumes and other formats are refused with an Unsupported error naming what was found; every header field is treated as hostile (checked sizes, limits before allocating, no indexing on file offsets). Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>