Commit Graph
209 Commits
Author SHA1 Message Date
4DBug f0a23eb676 merge ws/audio2 2026-10-31 15:59:38 -05:00
4DBug 93a5afbe65 merge ws/tex 2026-10-31 15:44:25 -05:00
4DBug 47345b2c8f merge ws/3d3 2026-10-31 15:39:55 -05:00
4DBug d7697a8688 ws-audio2: merge master (c5f2777) 2026-10-31 15:37:55 -05:00
4DBug c65a66695f merge ws/video2 2026-10-31 15:31:56 -05:00
4DBug 94783a86d1 merge ws/3d3-c (model/pmx, model/vrml, model/x3d, codecs/model/Vrml); README model list 2026-10-31 15:29:37 -05:00
4DBug 9694c652ec merge ws/video2-legacy (FLIC, Cinepak, MSV1, QT RLE / SMC, Smacker; video/fli, video/smk) 2026-10-31 15:23:13 -05:00
4DBug 77479b6a2f merge ws/video2-theora (Theora codec, ogv) 2026-10-31 15:22:40 -05:00
4DBug 98b04367c6 merge master into ws/3d3 (ws/roblox, ws/voxel, ...) 2026-10-31 15:20:28 -05:00
4DBug 270eccab0f ws-audio2: merge ws/audio2-tracker (MTM, 669, STM, ULT, OKT, MED, PTM, FAR, UMX; Tracker engine families) 2026-10-31 15:19:31 -05:00
4DBug f6188764b8 ws-audio2: merge ws/audio2-lossless (WavPack, Monkey's Audio, TTA, ApeTag)
codecs/audio/Stream: both branches extended pull(): buffer pcm (adpcm) and scale / ints (lossless); combined.
2026-10-31 15:18:31 -05:00
4DBug d618795ce7 ws-tex: layered/ora (OpenRaster read + write through the PNG hooks)
stack.xml tree (nested isolate / auto stacks, offsets, opacity, visibility, svg composite-ops), mergedimage,
thumbnail. Tested against spec-built files and our file taken apart by python zipfile / ElementTree / Pillow.
2026-10-31 15:12:53 -05:00
4DBug 703af4cc71 ws-audio2: merge ws/audio2-adpcm (codecs/audio/Adpcm, Qoa; adx, vag, brstm/bcstm/bfstm, raw adpcm, qoa; wav/aiff/caf/xm ADPCM) 2026-10-31 15:10:09 -05:00
4DBug 00d47096ed ws-tex: image/ani (animated cursors -> frames through the decodeImage hook; write through encodeImage)
seq / rate steps, jiffy delays, CUR hotspots, INFO title; AF_ICON clear is UNSUPPORTED. Tested against
Pillow-written ICO / CUR frames assembled into ANI files.
2026-10-31 15:09:35 -05:00
4DBug 085e385674 ws-audio2: TTA: codecs/audio/Tta (written from the TTA1 format description; no libtta / ffmpeg code) + audio/tta
TTA1 format 1, 8/16/24 bits, any channel count, header / seek table / frame CRC-32s, seeking, ID3v2 skipped, APEv2
tags; password-protected files -> UNSUPPORTED. 20 fixtures (ttaenc 3.4.1, the FATE inside.tta sample) bit-exact
against ttaenc -d. Branch-free filter steps (LuaJIT: no register-coalescing aborts, 7 -> 40 MB/s).
WavPack: the unary / gamma counts a byte at a time (LuaJIT traces). APE: the predictor rotations as single
assignments. docs/guide/audio.md: the lossless section (+ tools/fixtures/docs_lossless.py inputs) and the Formats
table.
2026-10-31 15:08:47 -05:00
4DBug 9e114fba8b ws-tex: image/icns (read RLE / ARGB / 1-bit / PNG-hook entries, JP2 skipped; write PNG via encodeImage or RLE)
Tested against libicns (png2icns / icns2png -x), Pillow's writer and a hand-written file.
2026-10-31 15:07:07 -05:00
4DBug ce4845ae13 ws-tex: image/ilbm (IFF ILBM / PBM read: planar, EHB, HAM6/8, deep 24/32, masks; write palette / 24 / 32 planes)
Chunks through containers/Chunks, ByteRun1 through codecs/compress/PackBits. Tested against ppmtoilbm files and
hand-written EHB / PBM / mask / transparent-colour files decoded by ilbmtoppm; our files read by ilbmtoppm.
2026-10-31 15:03:24 -05:00
4DBug 44cda7256c merge ws/3d3-b (model/lwo, model/x, model/iqm, codecs/model/Sampler; brings ws/game af4488d for codecs/model/Rig) 2026-10-31 15:02:25 -05:00
4DBug ef460955d4 ws-tex: image/xbm + image/xpm (read + write)
XBM: X11 / X10 arrays, hex / decimal / octal, hotspot; xbmtopbm reference (netpbm, ImageMagick, Pillow files).
XPM: XPM 3 + XPM 2, c / g / g4 / m keys, hex depths, None, CSS / X11 names + grey0..100 (image/xpm/Names);
ImageMagick reference.
2026-10-31 14:58:20 -05:00
4DBug 39da2f6648 ws-audio2: merge ws/audio2-lossy (Musepack SV7/SV8, AC-3, AudioWrap AC-3 hook) 2026-10-31 14:57:05 -05:00
4DBug feb8d18cfb merge ws/3d3-a (model/3ds, model/ms3d) 2026-10-31 14:55:36 -05:00
4DBug 76128bf381 ws-3d3: codecs/model/Vrml (VRML97 / X3D classic parser, X3D XML adapter, node graph -> Scene builder, writer) + model/vrml (.wrl read / write) + model/x3d (.x3d / .x3dv read / write; .x3db UNSUPPORTED); tests against VTK and assimp 2026-10-31 14:54:56 -05:00
4DBug 26fa887370 ws-audio2: music/umx (Unreal music packages): the package tables parsed, the music export's module handed to a new api hook opts.decodeModule(buf, format?)
src/Formats/init.luau: withHooks adds opts.decodeModule (F.load of the bytes as music) next to decodeImage /
openAudio, so a format never requires another; docs/API.md lists it. Backward compatible (a new optional hook).
2026-10-31 14:54:54 -05:00
4DBug 403a4d6f31 ws-tex: image/sgi + image/sunras (read + write)
SGI: verbatim / RLE, 1-2 bytes per channel, 1-4 channels (rgba16 native); write RGB(A) RLE / verbatim.
Sun Raster: 1 / 8 / 24 / 32-bit, standard / byte-encoded / RGB types, colour maps; write 24 / 32-bit.
References: ImageMagick, netpbm (sgitopnm-era writers, rasttopnm), Pillow.
2026-10-31 14:52:47 -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 ae8ff9d6bf ws-audio2: Monkey's Audio: codecs/audio/Ape (port of the MAC SDK 13.28 decoder, BSD-3) + audio/ape
File versions 3.95+ (3.99+ verified; the 3.95-3.98 range-coder model is ported without a reference fixture), every
level (fast .. insane), 8/16/24/32-bit int and 32-bit float, 1-32 channels, special frames, frame CRCs, seeking,
APEv2 tags, ID3v2 in front. 35 fixtures (mac 13.28, the FATE luckynight sample) bit-exact against mac -d.
tests/audio/_lossless.luau: the per-fixture checks shared by the lossless format tests. tools/bench.luau: the
ws-audio2 lossless block.
2026-10-31 14:52:08 -05:00
4DBug 3d5cf3130e ws-audio2: music/med (MED / OctaMED MMD0..MMD3): xm family with ProTracker periods, MED effects and tempo modes, play sequences, hold / decay envelopes, IFF multi-octave keymaps; engine: EXT tempo > 255, flags.envRowHold
Synthetic / hybrid / MIDI instruments are silent (listed in meta.unsupported).
2026-10-31 14:51:33 -05:00
4DBug d294c211f9 ws-tex: image/pcx (read 1/2/4/8-bit, planes, palettes; write 8-bit palette / 24 / 32-bit RLE)
Tested against netpbm ppmtopcx / ImageMagick / Pillow files decoded by pcxtoppm; our files read by
ImageMagick. Shared test helper tests/image/_raster.luau and fixture helper tools/fixtures/_raster_ref.py.
2026-10-31 14:48:46 -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 41b72d9b8a ws-audio2: audio/ac3 + codecs/audio/Ac3: AC-3 decoding from ATSC A/52, AC-3 tracks of MKV / MP4 / TS / AVI
Written from the A/52:2018 specification (tables transcribed from it; no liba52 / ffmpeg code): every acmod with LFE,
coupling + phase flags, rematrixing, block switching, delta bit allocation, dither, CRC check, dynamic range off by
default (drc = 0 .. 1). E-AC-3 and bsid 9 / 10 are UNSUPPORTED. 101.8 - 108.6 dB SNR vs ffmpeg's float decode
(liba52's for block-switched streams: the packaged ffmpeg mis-decodes the first short transform).

Outside the folders: containers/AudioWrap passes ac3 tracks to audio/ac3 (one branch); a comment in
src/Formats/init.luau mentions it. The fixture clears the encoders' dithflags (positions from the new
Ac3 decoder field dec.blocks) so reference and decoder decode the same numbers.
2026-10-31 14:45:23 -05:00
4DBug abd01270f0 ws-tex: image/exr (read NONE/RLE/ZIPS/ZIP/PIZ, half/float/uint, scanline + tiled + multipart, mips; write NONE/ZIPS/ZIP)
Tested against the OpenEXR 3.5 python bindings, exrmaketiled (one level / mipmap / ripmap / round up),
exrmultipart, a hand-written subsampled file; PXR24 / B44 / DWAA give UNSUPPORTED; our files read back by
the bindings and exrheader. Broken / zeroed offset tables are rebuilt (exrmultipart writes them zeroed).
2026-10-31 14:43:02 -05:00
4DBug 9a5f3796e2 ws-audio2: music/okt (Oktalyzer): it family with ProTracker periods (PAL), mixed channel pairs and their shared volume, three arpeggios, note slides, sustain loops released by R 2026-10-31 14:40:13 -05:00
4DBug 51daa00a67 ws-3d3-b: model/iqm (Inter-Quake Model v2 read + write: meshes, every vertex array format, joints -> skin, poses / frames / anims -> channels, bounds; writer merges skins, samples and quantizes animations); new codecs/model/Sampler (channel evaluation STEP / LINEAR + slerp / CUBICSPLINE, animation poses at a time) with tests
mrfixit.iqm matches assimp and an independent Python IQM reader (its skinning reproduces the bounds the IQM tool stored; ours matches it to 1e-4); round trips and glTF skinned models written by us are skinned identically by the Python reader.
2026-10-31 14:39:22 -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 bf639260e4 video/smk: Smacker (SMK2 / SMK4) with its video codec and audio
containers into containers/Demux (palette updates ride on each video packet as packet.palette); the Smacker video
codec (header Huffman trees with the escape cache, MONO / FULL (+ SMK4 doubled modes) / SKIP / FILL blocks) lives in
codecs/video/Legacy/Smacker and registers as 'smackvid'; Smacker's packed DPCM-Huffman audio (8 / 16-bit, mono /
stereo) and raw PCM tracks decode in video/smk/Audio, the Decoder built by the format over codecs/audio/Stream
(Smk.openAudio; open() installs it as the openAudio hook). Fixtures encoded by tools/fixtures/smk.py: video and
audio bit-exact with ffmpeg.
2026-10-31 14:37:39 -05:00
4DBug 6b5e8ec6cf ws-audio2: music/far (Farandole Composer): s3m family with Hz periods (36318 / 1024 Hz per step), auto tone portamento, variable-length patterns with break rows 2026-10-31 14:36:44 -05:00
4DBug 730820d1f6 ws-3d3: model/ms3d (MilkShape 3D) read + write
Groups, materials (texture uri), joints -> nodes + skin + one animation,
version 4 sub-versioned blocks (comments, vertex extras with up to four
bones, joint colours, model extras). Writer: groups per placed primitive,
the first skin plus animated nodes as joints (rigid meshes bound to them),
weights in percent. Tested against assimp and through glTF skin models.
2026-10-31 14:33:46 -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 ef2cd93c88 ws-tex: image/ktx (KTX1 + KTX2 read: BCn / ETC2 / EAC / uncompressed, mips, cube, arrays, 3D, Zstd / ZLIB; Basis UNSUPPORTED; KTX2 write)
KTX2 writer: rgba8 (UNORM / SRGB), rgba16, rgba16f / rgba32f with a full DFD, mips, cube / array frames, ZLIB.
Tested against ktx create / deflate / extract, toktx, nvcompress -ktx and hand-written KTX1 (big-endian, packed,
row padding, T=u); our files pass ktx validate.
2026-10-31 14:30:30 -05:00
4DBug de2695b87d merge ws/3d3-d (model/b3d, model/ldraw) 2026-10-31 14:30:17 -05:00
4DBug 8362dbafae merge master into ws/3d3 2026-10-31 14:30:01 -05:00
4DBug c3711a7ab1 ws-3d3: model/gltf: KHR_draco_mesh_compression through codecs/model/Draco
Draco primitives decode on load (attributes as their accessors declare them,
u32 indices), written back uncompressed without the extension; meshopt stays
UNSUPPORTED. Tests: transcoded Khronos samples (two quantizations), Draco's and
assimp's Draco glTF files, each Draco primitive byte for byte against libdraco,
against the uncompressed sources, round trips. Draco bench line; scene.md section.
2026-10-31 14:29:54 -05:00
4DBug 60544a3a77 ws-audio2: music/ptm (PolyTracker): it family, MOD letters with S3M fine slides, note slides, delta 8 / 16-bit samples; engine flags.panLaw = ft2 (square-root panning)
ops/MusicOps: accept modules of the other tracker formats by their engine family (Tracker.family), a one-line
backward-compatible change.
2026-10-31 14:29:01 -05:00
4DBug e3ac2f8b36 ws-3d3-d: model/ldraw (LDR / DAT / MPD read: parts as shared meshes per colour, sub-models as nodes, BFC, LDConfig colours, library paths through files / resolve)
Built-in colour table from LDConfig.ldr (CC BY 2.0 / 4.0, licenses/LDRAW_COLOURS.txt + NOTICE.md row).
Tests: independent Python expansion + LeoCAD OBJ export of library parts / car.ldr / pyramid.ldr (read from the nix store).
2026-10-31 14:28:56 -05:00
4DBug 22db57f348 ws-video2: MPEG-2 in MPEG-TS (0x02 / private 0x80), MPEG-PS, MKV, AVI, MP4 caps; tests/video/mpeg2.luau 2026-10-31 14:28:11 -05:00
4DBug 71bb89763e merge master (ws/apifix) into ws/audio2-chip 2026-10-31 14:28:00 -05:00
4DBug a3e234cc0d ws-audio2: MUS, XMI, HMP / HMI (music/mus, music/xmi, music/hmp) -> Types.Midi through codecs/audio/MidiRender (merge, tempoBytes); event streams match wildmidi -x 2026-10-31 14:27:51 -05:00
4DBug 66c3819063 merge master (ws/apifix) 2026-10-31 14:26:53 -05:00
4DBug 5e64334e85 Merge branch 'master' into ws/audio2-adpcm 2026-10-31 14:26:41 -05:00