mirror of
https://github.com/morluto/rea.git
synced 2026-11-24 13:18:39 +00:00
* feat(artifacts): report declared DDS, GLB, KTX and KTX2 headers and regions Recognize DDS (including the DX10 extension), GLB, KTX 1.1 and KTX 2.0 by their header signatures and inventory them as containers. The root format metadata carries the declared header facts. Each declared byte region is a member that is hashed, classified and extractable: the DDS payload; GLB JSON and BIN chunks and BIN-stored images; KTX key/value data and mip levels; and KTX2 DFD, KVD, SGD and levels. Nothing is decoded. A DDS payload is checked against the size derived from its dimensions, mips, faces, layers and block size. Disagreeing extents are reported in extent_check with unknown coverage rather than refused, and regions past the end of the file are dropped, not clipped. Structural header faults refuse as malformed input with the format and offset. Part of #14155 * fix(gpu-assets): bound GLB chunks and keep unexamined regions unknown - Stop the GLB chunk walk at 1,024 chunks with unknown coverage. - Refuse a GLB chunk that crosses the declared length, or a chunk table that stops short of a physically present declared end, as malformed. - Report coverage unknown when GLB images were not all listed: past the image allowance, an unparsed JSON chunk, or an unresolved bufferView. - Leave the DDS payload size unknown when rows are padded to a declared pitch or more than 32 mip levels are declared, instead of deriving it from different dimensions. * fix(gpu-assets): report GLB images in URI-backed buffers as external Only buffers[0] without a uri is the GLB BIN chunk. An image whose bufferView sits in a buffer with a uri, or an image named by uri, is stored outside the file; it was counted as an unresolved image and made coverage unknown. Such images are now counted in external_images and leave coverage complete; only views that resolve to no buffer stay unknown. * fix(gpu-assets): report KTX2 level-index failures at file offsets The 64-bit level-index fields were read from a buffer that starts at file offset 80, but an unsafe value reported its index-relative position. The reader now takes the buffer's file base and reports base plus position, so every failure offset is a file offset. * fix(gpu-assets): count a GLB image as external only for a URI string An image or buffer whose uri is present but not a string, and an image with neither a uri nor a bufferView, were counted in external_images and left coverage complete without an established source. Only a URI string now marks a source external; other sources stay unresolved and keep coverage unknown.