Commit Graph
176 Commits
Author SHA1 Message Date
4DBug c54c8daff5 ws-arch2-cab: codecs/compress/Lzx (CAB LZX: windows 2^15..2^21, verbatim / aligned / uncompressed blocks, delta-coded trees, R0..R2, E8 translation, 32 KB frames; written from the spec) + cab LZX folders, checked against cabextract on cabinets of a fixture LZX compressor (tools/fixtures/_lzx.py) and libmspack's samples; Deflate.mszip (generic MSZIP blocks: CK + deflate, dictionary carried across blocks; for cab and later model/x); cab bench lines 2026-10-31 15:46:28 -05:00
4DBug 825c45b03c ws-arch2-cab: archive/cab (MSCF read: stored / MSZIP folders with the carried-over deflate dictionary, reserve areas, checksums, attributes, UTF-8 names, spanned files UNSUPPORTED; write: one stored / MSZIP folder) vs cabextract / gcab / 7z; Deflate.inflate gains an optional preset dictionary (5th argument, Inflate.raw 7th; backward compatible) 2026-10-31 15:37:25 -05:00
4DBug 53b41c7275 ws-arch2: font/type1 (PFB / PFA, eexec, Subrs / CharStrings, Type 1 charstrings with flex / hint replacement / seac, AGL code points, rasterize; read) vs fontTools and FreeType; codecs/font/GlyphNames 2026-10-31 15:25:02 -05:00
4DBug 0ee0859298 merge master into ws/arch2 2026-10-31 15:22:43 -05:00
4DBug 242e38c4fe merge ws/arch2-unix (cpio, ar/deb, rpm, z, iso, lz4; containers/Cpio, Iso9660; codecs UnixCompress, Xxh32, Lz4 from ws/roblox) 2026-10-31 15:22:07 -05:00
4DBug e34e32901f ws-arch2: font/eot (EOT 1.0 / 2.1 / 2.2, XOR; read via codecs/font/TrueType, write 2.1; MTX unsupported) 2026-10-31 15:16:30 -05:00
4DBug 375140ece2 ws-arch2: font/hershey (JHF stroke fonts, ascii / id mapping, stroked rasterization; read) 2026-10-31 15:14:05 -05:00
4DBug 74c3b63615 merge ws/voxel 2026-10-31 15:08:58 -05:00
4DBug 7e792a6ae8 ws-arch2: font/fon (Windows FNT 2 / 3, NE and PE .fon resources, several strikes; read) with FontForge-made fixtures vs FreeType 2026-10-31 15:08:49 -05:00
4DBug 9fe5f8d658 ws-roblox: docs/guide/roblox.md (tested snippets: places, building trees, meshes) + docs_roblox inputs; F.Rbx (codecs/model/Rbx) exported by the api; bench lines (rbxm / rbxmx / robloxmesh); STYLE.md codec list gains Lz4 and Rbx 2026-10-31 15:06:55 -05:00
4DBug 19f486031d ws-arch2: font/psf (PSF 1 / 2 read + write, Unicode tables kept on round trip, .psfu.gz via the api); Types.BitmapStrike.map (extra code points per glyph, additive) 2026-10-31 15:03:35 -05:00
4DBug 87cbc62fb6 ws-arch2: font/bdf (read / write; FreeType reads our output identically) and font/pcf (every pad / unit / order, .pcf.gz via the api), shared bitmap-font fixtures vs FreeType
init.luau unwrap: a single-stream archive whose entry is a .pcf / .psf / .bdf loads as that font (category font).
2026-10-31 14:56:44 -05:00
4DBug 2be536bd98 ws-voxel: docs/guide/voxel.md (NBT / SNBT, schematics, regions, Qubicle; tested snippets) + inputs generator; bench lines for NBT, SNBT, packed arrays, schem, qb 2026-10-31 14:56:33 -05:00
4DBug 29afbfb165 ws-arch2-unix: docs/guide/archive.md sections for cpio, ar / .deb, rpm, .Z / .lz4, ISO (inputs: tools/fixtures/docs_arch_unix.py); archive/cpio: variant option (default: the source's variant) 2026-10-31 14:56:18 -05:00
4DBug f86e12f051 ws-voxel: model/qb (Qubicle Binary read + write: RGBA / BGRA, z orientation, RLE, visibility masks; exact colours in Voxels.colors) 2026-10-31 14:52:15 -05:00
4DBug f1c2c6ed06 ws-arch2: archive/zoo (types 1 / 2, stored / LZW / lzh, CRC-16; read) and codecs/compress/Lzw 'zoo' variant (13-bit codes)
codecs/compress/Lzw: decode accepts variant "zoo" (gif layout, 8-bit symbols, up to 13-bit codes; its tables grow
to 8192 entries); gif / tiff behaviour unchanged.
2026-10-31 14:49:54 -05:00
4DBug 286d193f14 ws-voxel: model/mca (Anvil regions read-only: gzip / zlib / LZ4Block / stored / external .mcc chunks; 1.18+, 1.13-1.17 and pre-1.13 chunk layouts) into Voxels with exact block states; block entity shapes moved into codecs/model/Minecraft 2026-10-31 14:47:05 -05:00
4DBug 70cc54f7c8 ws-arch2: archive/arj (methods 0-4 via codecs/compress/Lzh, CRC-32 checks; read) 2026-10-31 14:42:43 -05:00
4DBug 411261470a ws-arch2-unix: archive/lz4 (LZ4 frame read: linked / independent blocks, block / content XXH32, content size, skippable + legacy frames, concatenation; write: independent blocks) on codecs/compress/Lz4 (merged from ws/roblox ba4b20e) + codecs/compress/Xxh32; containers/Archive.streamData (shared single-stream payload: buffer / one entry / tar of entries; used by z and lz4); tests vs the lz4 tool both ways; bench lines
containers/Archive: additive helper streamData (requires containers/Tar); nothing existing changes.
2026-10-31 14:40:26 -05:00
4DBug 572cd42f8a ws-arch2: codecs/compress/Lzh (lh1 / lh4-lh7 / lhx / lzs / lz5 / ARJ 4; ported from lhasa, ISC) + archive/lha (levels 0-3, extended headers, symlinks, DOS-name case, read; level-2 lh0 write); bench lines 2026-10-31 14:40:25 -05:00
4DBug 09354cbd12 merge ws/roblox (codecs/compress/Lz4 for Anvil LZ4 chunks); registry regenerated 2026-10-31 14:38:23 -05:00
4DBug fea56f4391 ws-voxel: model/schematic (.schem v1-3, .schematic, .litematic read + write), codecs/model/Minecraft (block states, default colours, legacy ids, packed arrays)
Types change (backward compatible): Types.Voxels gains optional blocks (VoxelBlocks: exact block states as
u16 indices into a state palette, block entities, entities) and colors (exact u32 RGBA per cell).
2026-10-31 14:37:43 -05:00
4DBug 197ddc561a ws-arch2-unix: containers/Iso9660 (volume descriptors, directory records, multi-extent, Joliet, Rock Ridge SUSP / RRIP incl. CE, NM, PX, PN, TF, SL, CL / RE relocation, El Torito catalog) + archive/iso, tests vs xorriso / genisoimage images, the source tree and pycdlib 2026-10-31 14:33:57 -05:00
4DBug 3a1965486f ws-roblox: model/robloxmesh (.mesh 1.00-5.00, 6.00/7.00 chunked with raw COREMESH read; Draco COREMESH UNSUPPORTED; 2.00 / 4.00 write with skinning subsets and LODs) mapped to Scene; rbxm / rbxmx variant() for F.detect (rbxl / rbxlx); api tests 2026-10-31 14:33:15 -05:00
4DBug 7fc5d3f5f0 regenerate registry after merging master 2026-10-31 14:26:01 -05:00
4DBug b5964d4afc merge master 2026-10-31 14:25:41 -05:00
4DBug 94d79313d4 merge master (ws/apifix) into ws/arch2 2026-10-31 14:25:30 -05:00
4DBug 41c4fbfc6d ws-arch2: containers/Fat (FAT12 / 16 / 32, VFAT long names, MBR partitions, FAT12 floppy writer) + archive/fat (read + floppy write) 2026-10-31 14:25:20 -05:00
4DBug bd696dea1e merge master (ws/apifix) into ws/roblox 2026-10-31 14:25:18 -05:00
4DBug 6eadacce64 ws-arch2-unix: codecs/compress/UnixCompress (.Z LZW decode + encode, bit-identical to ncompress 5.0: group padding on width changes / CLEAR, ratio-check clears) + archive/z (single-stream, .taz / .tZ -> .tar, writes ncompress's bytes), tests vs ncompress and gzip -d, bench lines 2026-10-31 14:23:51 -05:00
4DBug f8a26fc699 ws-arch2: archive/adf (Amiga OFS / FFS, intl, dircache; DD / HD; read) 2026-10-31 14:20:36 -05:00
4DBug ea9c0b36df ws-roblox: codecs/model/Rbx (RbxTree, typed values, CFrame rotation ids, binary property columns), model/rbxm (binary rbxm / rbxl read + write; LZ4 / Zstd / raw chunks; unknown chunks and property types round trip raw), model/rbxmx (XML rbxmx / rbxlx read + write); tests vs rojo 7.7 + lune 0.11 both ways
init.luau: KIND_CATEGORY gains rbxtree = model (F.save of an RbxTree finds the model category).
2026-10-31 14:19:46 -05:00
4DBug 5ca22c4431 ws-arch2: archive/d64 (C64 D64 / D71 / D81 read + write, PETSCII names as c1541) 2026-10-31 14:15:12 -05:00
4DBug 8b94584d0f ws-arch2-unix: archive/rpm (lead, signature + main headers, file list from dirnames / basenames, payload gzip / bzip2 / xz / lzma / zstd / none decompressed lazily via codecs/compress, cpio via containers/Cpio; meta.rpm), tests vs rpmbuild / rpm -qp / rpm2cpio; containers/Cpio.TYPE_OF 2026-10-31 14:14:56 -05:00
4DBug 5bbb4227c2 ws-apifix: API.md / STYLE.md / README: music as audio, video as animated image, F.save extra files, variant(r), caps.extraFiles, F.music builder, bitrate in bit/s; type baseline 92 2026-10-31 14:14:11 -05:00
4DBug 6274eedd12 ws-apifix: MP4 AAC length matches ffmpeg: the edit list's length (Track.playDuration) cuts the end padding as well as the priming (codecDelay); a 1 s clip decodes to 44100 frames, not 45056. AudioWrap.trim(dec, skip, length?); the MP4 writer keeps the edit length of copied audio. Video tests compare the whole decoded audio length with ffmpeg (not yet for Matroska) 2026-10-31 14:13:08 -05:00
4DBug 998177e5ab ws-voxel: codecs/text/Nbt (NBT Java / Bedrock / network varint, SNBT parse + print, typed values), data/nbt, data/snbt
Shared change: codecs/compress/Deflate gains Deflate.peek(buf, off, len, n) (the first n inflated bytes of a
gzip / zlib / raw stream, for sniffing gzip-wrapped NBT) through a backward-compatible prefix flag on
Inflate.raw; gunzip's header parsing moved into a local helper both use.
2026-10-31 14:12:46 -05:00
4DBug 3243291877 ws-arch2: archive/binhex, archive/macbinary (I / II / III), archive/applesingle (AppleSingle / AppleDouble v1 / v2), read + write, over the new containers/MacFile (fork convention, Mac OS Roman names, 1904 dates) 2026-10-31 14:11:03 -05:00
4DBug 07f70f70d5 ws-arch2-unix: archive/ar (GNU / SysV long names + symbol tables, BSD #1/ names + __.SYMDEF; GNU / BSD writer) with .deb (meta.payload = data.tar.*, meta.control from control.tar.* via codecs/compress + containers/Tar), tests vs GNU ar (byte-identical), llvm-ar, bsdtar, dpkg-deb 2026-10-31 14:09:08 -05:00
4DBug ac47545aa3 ws-apifix: one bitrate unit: every encoder's bitrate option is bit/s (MP3 now too), values below 1000 are kbit/s (the old MP3 values keep working; Opus accepts them too); the MP3 Decoder's bitrate field is bit/s as the Decoder contract says (was kbit/s) 2026-10-31 14:06:51 -05:00
4DBug 2f0ff81c95 ws-apifix: an outline font saved as BMFont writes its pages (opts.files; without a destination F.save returns them as a third value { [page file] = PNG bytes }; caps.extraFiles); pages named after the destination 2026-10-31 14:03:45 -05:00
4DBug a05199c34d ws-arch2-unix: containers/Cpio (newc / crc / odc / old binary both endians read; newc / crc / odc write; hard links, symlinks, devices) + archive/cpio (any Archive -> cpio), tests vs GNU cpio (byte-identical re-encode) and bsdtar 2026-10-31 14:02:43 -05:00
4DBug fe44292f58 ws-arch2: archive/yenc (yEnc 1.3 read incl. multi-part in one text, write; CRC checks) 2026-10-31 14:00:46 -05:00
4DBug d73b93c740 ws-apifix: videos save as animated images (F.save(video, gif | apng | webp), F.convert(avi, "gif"): frames / fps / maxFrames (300) / maxPixels (2^25)); VideoFrame.index restarts at the seek position; F.detect names WebM files "webm"
api: encoderFor finds image formats for a VideoDecoder, videoToImage() collects the frames; F.detect asks a
format's optional variant(r) for a more precise name (video/mkv: Mkv.variant, from Parse.docType).
codecs/video/Video: index after seek = round(pts * frameRate) + 1.
2026-10-31 14:00:36 -05:00
4DBug 8cdb65367a ws-arch2: archive/uu (uuencode / xxencode / base64 blocks, read + write), core/Crc16 (ccitt / arc), Archive.files helper, shared fixture helpers (_arch2.py / _arch2_ours.luau) and tests/archive/_entries.luau
core/Crc16 is new (CRC-16/XMODEM for BinHex / MacBinary, CRC-16/ARC for LHA / Zoo). containers/Archive gains
Archive.files(value, name?) (additive).
2026-10-31 13:58:54 -05:00
4DBug 10bd6b021f ws-apifix: music is audio (F.save / F.convert of a Module or Midi to an audio format renders it, render options from opts; F.audio.open / load render music bytes), F.music builder (ops/MusicOps: new, addPattern, setCell / getCell, addSample, addInstrument, note; also F.ops.music), MIDI writer writes track.name as a 0x03 event
api (init.luau): detectFor() falls back from audio to rendering music formats; encoderFor finds audio formats for
music values; renderMusic() through codecs/audio/Tracker or music/midi render.
2026-10-31 13:56:21 -05:00
4DBug 8057a1a323 Merge commit 'ba4b20e' into ws/arch2-unix 2026-10-31 13:54:28 -05:00
4DBug 1ed25296ba ws-roblox: codecs/compress/Lz4 (LZ4 block decode + encode, decodeInto with history for linked blocks), tests vs python-lz4 both ways, bench line 2026-10-31 13:53:23 -05:00
4DBug 51117f9732 ws-arch2: groundwork: Types.BitmapStrike / BitmapGlyph + Font.bitmap (optional field), codecs/font/Bitmap (bitmap Font value, strike of any font, 1-bit row pack/unpack), api unwrap of meta.payload entries (a .deb loads as its data.tar.*; meta.container / meta.outer)
Types.luau: additive only (new optional Font field and two new types). init.luau: unwrap() also follows
meta.payload = <entry name> on non-stream archives; stream behaviour unchanged.
2026-10-31 13:51:09 -05:00
4DBug 25d8e4ff25 ws-apifix: F.ops.layers.flatten applies the mask of a passThrough group (codecs/image/Blend lerp takes a mask) 2026-10-31 13:50:05 -05:00