Commit Graph
290 Commits
Author SHA1 Message Date
4DBug 3cebe7d4e7 merge ws/game 2026-10-31 16:16:07 -05:00
4DBug a02ece071b merge ws/video2-flv 2026-10-31 15:59:44 -05:00
4DBug f0a23eb676 merge ws/audio2 2026-10-31 15:59:38 -05:00
4DBug 862f8e459a ws-game: image/vtf decodes its uncompressed texel formats through the shared codecs/image/Texel (image/vtf/Texel removed); packed 5/6-bit formats within 1 of srctools' bit replication 2026-10-31 15:53:12 -05:00
4DBug 43df95f6e0 merge master (ws/tex, ws/3d3, ws/video2, ...) 2026-10-31 15:51:07 -05:00
4DBug 714780a54a ws-game: fix the bench.luau merge (the wad block's end) 2026-10-31 15:49:49 -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 da743e2fb8 merge master (ws/video2: MPEG-2, Theora, legacy codecs) into ws/video2-flv 2026-10-31 15:35:03 -05:00
4DBug c65a66695f merge ws/video2 2026-10-31 15:31:56 -05:00
4DBug 6c26e349f8 merge master (ws/roblox, ws/voxel, ...) 2026-10-31 15:30:37 -05:00
4DBug 0b1c5ebfec ws-game: docs/guide sections (game archives, game models, game textures) with tested snippets (tools/fixtures/docs_game.py); bench lines (explode, mpq, wad map) 2026-10-31 15:30:18 -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 3d01293b82 ws-game: image/vtf (Valve VTF 7.0-7.5 read: every common texel format incl. DXT / ATIxN via codecs/image/Bcn, halves / floats, frames, mips / faces / slices; checked against srctools) 2026-10-31 15:24:50 -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 625e21431b ws-3d3: docs/guide/scene.md sections for PMX / PMD, VRML and X3D (tested snippets); bench lines for vrml / x3d 2026-10-31 15:21:12 -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 7a86e357ed ws-game: image/blp (BLP1 JPEG / palette, BLP2 palette + alpha planes / DXT1-5 via codecs/image/Bcn / BGRA read; BLP2 BGRA write); codecs/image/Jpeg: opts.raw (components without colour conversion, 4th as alpha; additive) 2026-10-31 15:18:41 -05:00
4DBug 918c8310af ws-tex: docs/guide sections (textures / HDR, OpenRaster); DDS / KTX pixelFormat option; XBM / XPM names from F.save
F.save sets opts.format to the file format, so the DDS / KTX layout option is pixelFormat; XBM / XPM make a C
identifier of opts.name (F.save passes the file name).
2026-10-31 15:18:40 -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 f23d0aa3e8 ws-video2-flv: FLV writer test from ADTS AAC (MPEG-TS), bench lines (H.263 / Sorenson CIF fps), docs/guide/video.md FLV and H.263 section (inputs: tools/fixtures/docs_flv.py) 2026-10-31 15:13:14 -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 efc0812746 ws-video2-flv: video/flv (FLV demux: tags, onMetaData AMF0, Sorenson / H.264 (avcC, composition times) / VP6 / screen video / enhanced FourCC tracks, MP3 / AAC / PCM / G.711 / ADPCM / Nellymoser / Speex audio, keyframe seek; FLV mux: H.264 / Sorenson / VP6 / screen copied, AAC (ADTS re-framed) / MP3 / PCM audio, onMetaData)
Outside the folder: codecs/video/Video BUILTIN gains known (decoder-less) entries vp6f, vp6a, flashsv, flashsv2.
2026-10-31 15:09:20 -05:00
4DBug 74c3b63615 merge ws/voxel 2026-10-31 15:08:58 -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 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 e5c0873a79 ws-game: image/tim (PlayStation TIM read: 4/8-bit CLUT, 15-bit, 24-bit; write 4/8/16/24-bit) 2026-10-31 15:06:05 -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 24f471bccb merge ws/tex b32d45e (codecs/image/Bcn + Half, for VTF / BLP) 2026-10-31 15:01:27 -05:00
4DBug 4932fa7148 ws-game: model/bsp (Quake 1 / Half-Life / Quake II brush maps, Quake III maps with patches and lightmaps, entities); core/Input.sibling (opts.files / opts.resolve lookup shared by mdl / bsp / md5 / vpk; additive) 2026-10-31 15:01:06 -05:00
4DBug 0a7b74ec49 ws-audio2: docs/guide/music.md: the other tracker formats (table rows, Module.engine, More tracker formats with tested snippets; docs_av inputs mtm / med / umx); bench: render 669 / med 2026-10-31 14:58:37 -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 2a5da31c80 ws-video2-flv: H263 slice structure (Annex K, ffmpeg h263p with slice threads), MV prediction across slice starts as ffmpeg 2026-10-31 14:56:51 -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 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 36770d7a8b ws-video2: docs/guide/video.md MPEG-2 section (tested snippet, tsBytes clip), formats table; docs/video.md layers 2026-10-31 14:53:04 -05:00
4DBug 625c1fade2 ws-video2-flv: codecs/video/H263 (H.263 baseline + H.263+ PLUSPTYPE custom sizes / rounding type / UMV, Sorenson Spark with disposable frames), bit-exact with ffmpeg -flags +bitexact -idct int; registry entries h263 (H263 h263 s263 U263) and flv1 (FLV1)
Outside the folder: codecs/video/Dsp gains Dsp.mcNoRound (half-sample averages rounded down, H.263 rounding type 1);
Dsp.mc and the rest are unchanged. codecs/video/Video BUILTIN: h263 / flv1 entries with a simpleDecoder over H263.
2026-10-31 14:52:56 -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 62aded60c0 ws-audio2: audio/ac3 sniffs E-AC-3 too (loading one says UNSUPPORTED, not an unknown format); fixture tidy 2026-10-31 14:52:41 -05:00
4DBug 9b2b50fe75 ws-game: model/md5 (Doom 3 md5mesh + md5anim: skeleton, weighted bind pose, skin, animations via opts.anims / resolve / files; standalone md5anim) 2026-10-31 14:52:15 -05:00