sfile v1: table-driven header decoder for 831 formats
- Engine (src/sfile.c): generic, magic+extension identification,
uniform header table output, text/XML fallback decoder
- Generator (tools/gen_formats.py): parses the collected C/C++ reference
code (read sequences, structs, explicit data[N] offsets) into a format
table; curated magic table; container-layout inheritance (ZIP/RIFF/
ftyp/Ogg); hand overrides for well-known formats (PNG, ZIP, WAV, ...)
- Test loop (tests/run_tests.py) + README
- 347 formats with field layouts, 197 with magic; verified on real
sample files (see tests/)