Commit Graph
101 Commits
Author SHA1 Message Date
4DBug 43b8f4b4f5 ws-audio: merge master (ws/m4a codecs/Mdct already in use since 6535a3c; audio/opus encoder, data, vec, 3d, webp) 2026-10-31 09:29:36 -05:00
4DBug 4f46af8fd2 ws-audio: Vorbis encoder (audio/vorbis/Encode: long blocks, floor 1 fit to the envelope, square-polar coupling, residue 2 with 6 classes + cascades, fixed Laplacian-Huffman codebooks, exact granules, Ogg via containers/Ogg Mux) wired into audio/vorbis encode; fixtures: ogginfo clean, oggdec exact lengths + SNR floors, ffmpeg; bench line 2026-10-31 09:29:09 -05:00
4DBug 9456a90e4f merge ws/m4a 2026-10-31 09:23:57 -05:00
4DBugandClaude Opus 5.5 c43c56eadd ws-m4a: CELT-only Opus encoder in audio/opus (RangeEncoder + CeltEncoder ported from the libopus 1.6 encoder paths to mirror the absorbed decoder: 20 ms full-band CBR, mono and mid/side stereo, silence frames; Encode: Ogg Opus with OpusHead/OpusTags, end trimming, 48 kHz resampling); checked by opusdec / opusinfo / ffmpeg; Opus.caps.encode = true (opus test updated), deps += codecs/Mdct
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:22:52 -05:00
4DBug e817053a40 ws-audio: MP3 layer III encoder (Encode3: shine-style CBR, MPEG-1/2/2.5, mono/stereo/joint MS, global-gain rate loop, region/table choice, count1 A/B) + MP2 layer II encoder (Encode2: standard alloc tables, greedy noise allocation, grouping), shared polyphase Analysis, EncTables (PDMP3 public-domain window + Huffman trees -> codeword tables); mp3 init encode() with ID3v2.4; fixtures decode with ffmpeg + lame (no errors, SNR floors); bench lines 2026-10-31 09:18:23 -05:00
4DBug 75c677074a merge ws/webp 2026-10-31 09:12:40 -05:00
4DBug 9821cd129b merge ws/vec: svg (+raster), psd, aseprite, tiled, srt/vtt/ass, codecs/Blend, core/Base64, ops/LayerOps 2026-10-31 09:12:40 -05:00
4DBug adb8295bfc ws-webp: merge ws/absorb (containers/Riff); image/webp reads and writes its chunks through containers/Riff (private chunk reader removed); bench lines merged; registry regenerated 2026-10-31 09:08:44 -05:00
4DBug 91eba2bc24 merge ws/3d: obj stl ply off vox gltf/glb, ops/MeshOps, codecs Base64/MeshFlatten, api sibling files + texture encoding 2026-10-31 09:08:22 -05:00
4DBug 56f2423e2c compat test: NaN checks use Suite.check; host: raise LuaJIT trace / mcode limits (opt-out FORMATS_NO_JIT_TUNE) 2026-10-31 09:07:40 -05:00
4DBugandClaude Opus 5.5 c3cf73e29f ws-m4a: merge ws/absorb (audio/opus, containers/Ogg, ...) for the CELT encoder; m4a fixtures load their helper by path (tools/fixtures/ on sys.path shadowed the xml package)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:07:22 -05:00
4DBug 15b742cada compat: float reads return the canonical NaN for NaN payloads (checked through the bits: no aliased LuaJIT object values); host: raise LuaJIT trace / mcode limits (opt-out FORMATS_NO_JIT_TUNE) 2026-10-31 09:07:07 -05:00
4DBug 3408cb9b6b vec: vector/svg (parse to Vector: paths/arcs, shapes, transforms, groups, use/symbol/nested svg, CSS subset, gradients, opacity groups, clip paths, units; rasterize via codecs/Raster + codecs/Blend; write SVG back). Tests vs resvg (PSNR) incl. resvg rendering our written SVG 2026-10-31 09:06:01 -05:00
4DBug 4dbd236962 ws-audio: tests/audio/flac.luau: caps.encode is now true, F.save flac works 2026-10-31 09:05:04 -05:00
4DBug e2001b6c43 ws-audio: tests/audio/flac.luau: caps.encode is now true 2026-10-31 09:04:45 -05:00
4DBugandClaude Opus 5.5 e5a932ddaa ws-3d: tests/ops/meshops (triangulate, transform, normals, tangents, weld, merge, bounds, units, up axis, greedy voxels, api texture encoding)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:04:33 -05:00
4DBug 471b7636ef ws-audio: FLAC encoder (audio/flac/Encode: levels 0-8 like libFLAC presets, fixed + LPC + Rice/Rice2 partition search, wasted bits, stereo decorrelation, MD5, VORBIS_COMMENT, SEEKTABLE, padding; streams from a Decoder) wired into audio/flac encode; core/Md5 (new core module, RFC 1321) + test; fixtures: flac -t + MD5 bit-exact on 76 encodes, sizes within 1.1% of libFLAC; bench lines 2026-10-31 09:04:31 -05:00
4DBugandClaude Opus 5.5 f66594908c ws-m4a: codecs/Aac (AAC-LC decoder: ASC / PCE / ADTS, all tools, SBR/PS extension hook), codecs/Alac (decoder + encoder), audio/m4a (AAC + ALAC read, ALAC write, tags, gapless, seek), audio/aac (ADTS), audio/caf (lpcm/alac/aac/ulaw/alaw read, lpcm/alac write); fixtures checked by ffmpeg / fdkaac / MP4Box
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:03:04 -05:00
4DBugandClaude Opus 5.5 5f07ebcbd7 ws-3d: model/gltf (glTF 2.0 JSON + GLB read/write: accessors of every type incl. normalized/sparse/strided/padded matrices, PBR + KHR_materials_*, KHR_texture_transform, images kept encoded, samplers, cameras, KHR_lights_punctual, skins, animations, morph targets, KHR_mesh_quantization, extras/unknown extensions round trip); Khronos sample assets + gltfpack + assimp fixtures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:02:59 -05:00
4DBugandClaude Opus 5.5 c2bfa471a8 ws-3d: model/stl (ASCII + binary, VisCAM / Magics colours), model/ply (ASCII + binary LE/BE, arbitrary properties, point clouds, raw extra elements), model/off (OFF/COFF/NOFF/STOFF, face colours), read + write; codecs/MeshFlatten (Scene -> one world-space mesh for the mesh-only writers, shared instead of a copy per format); tests vs assimp / trimesh / plyfile, reference tools reading our output
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 09:02:59 -05:00
4DBug 2db77a7db8 merge ws/imgA: jpeg gif tiff tga qoi pnm ico hdr, codecs Dct/Lzw/Quantize, ops/ImageOps, api image hooks 2026-10-31 09:00:39 -05:00
4DBug 1a577f8910 merge ws/absorb: bmp wav mp3 flac opus zip playlists (+APNG, writers), containers Ogg/Riff/Zip, codecs Url/Text 2026-10-31 09:00:09 -05:00
4DBug 840bb6ab7e merge ws/data: codecs Json/Xml, data json xml csv ini toml yaml msgpack cbor plist 2026-10-31 08:59:44 -05:00
4DBug ced18478df ws-webp: codec tests (vp8, vp8l), bench lines, type fixes 2026-10-31 08:58:17 -05:00
4DBug 294b212801 imgA: merge ws/imgA-simple (tga, qoi, pnm, ico, hdr) 2026-10-31 08:58:09 -05:00
4DBug 4e5f10b646 absorb: playlist/xspf (new: XSPF 1 read / write on codecs/Xml, xml:base, every track field); tests vs ElementTree-written files 2026-10-31 08:57:35 -05:00
4DBug 8389c97143 Merge branch 'ws/data-yaml' into ws/data 2026-10-31 08:56:36 -05:00
4DBugandClaude Opus 5.5 4d90831cf7 data: data/plist (XML read/write byte-identical to plistlib, binary bplist00 read incl. UIDs / shared refs / cycle guard); plistlib fixtures. Array detection in Json / msgpack / cbor encoders no longer trusts next(t, #t)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:56:36 -05:00
4DBug 443a53a984 absorb: merge ws/data 907f365 (codecs/Json, codecs/Xml) for playlist/xspf 2026-10-31 08:56:03 -05:00
4DBug ef8262d767 ws-webp: image/webp (VP8 / VP8L / ALPH / VP8X / animation / metadata decode, lossless + animated encode), codecs/Vp8L encoder, fixtures vs dwebp / Pillow / libvpx, tests 2026-10-31 08:55:49 -05:00
4DBug e3fba1c2ae absorb: playlist/m3u (M3U/M3U8 + HLS) and playlist/pls from playlist-luau 3fc7fd3, + a PLS writer; shared codecs/Url (RFC 3986, locate) and codecs/Text (BOM, CP1252, lines); tests vs urllib.parse.urljoin, Python cp1252, Python-written playlists
Two shared codecs added outside the assigned folders (a format never requires another format): codecs/Url and codecs/Text, used by the three playlist formats.
2026-10-31 08:55:44 -05:00
4DBug 50020b4ddc ws-arch: archive/7z reads BZip2 (codecs/Bzip2) and Zstd (codecs/Zstd) coders; fixtures test BZip2 solid + BCJ 2026-10-31 08:55:24 -05:00
4DBug 027210c4e1 vec: merge ws/arch (codecs/Raster for SVG) 2026-10-31 08:54:57 -05:00
4DBug e6f077ba54 ws-arch: containers/Tar + archive/tar (ustar / pax / GNU read + write, byte-identical to Python's tarfile) and archive/gzip (read + write, .tar.gz writing); tests incl. .tar.gz/.tgz/.tar.bz2/.tar.xz/.tar.zst/.tar.br unwrap through the api 2026-10-31 08:54:37 -05:00
4DBug 738bf0e078 vec: vector/tiled (TMX + TMJ + TSX/TSJ read/write into TileMap: all data encodings, chunks, objects, typed properties, tilesets as references); core/Base64 (new, small); Types: TileMap.new + open TileMap/Tileset/TileLayer fields; api: F.save passes the destination extension as opts.format when none is given (tmx vs tmj). Tests vs Tiled exports and Tiled reading our files 2026-10-31 08:54:35 -05:00
4DBug 4123df462b imgA-simple: image/ico (ICO/CUR: 1-32 bit DIBs + AND masks, PNG entries via opts.decodeImage / encodeImage, hotspots) against Pillow 2026-10-31 08:54:33 -05:00
4DBugandClaude Opus 5.5 86af912842 data: data/yaml (YAML 1.2 core schema read / write: block + flow, compact collections, plain / quoted / literal / folded scalars, anchors + aliases as shared refs with an expansion limit, tags incl. !!binary / !!timestamp, %TAG, multi-document, explicit keys; writer with anchors for shared tables); yaml-test-suite + PyYAML fixtures; bench lines
tools/bench.sh: also generates the yaml fixtures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:54:13 -05:00
4DBugandClaude Opus 5.5 2d02b78f65 data: data/ini (configparser-compatible reading: comments, ':' / '=', continuations, duplicates, top-level keys; inline comments / no-value keys / types / strict options; configparser layout on encode); configparser fixtures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:53:45 -05:00
4DBug 7b5adb2468 ws-audio: merge ws/absorb (flac, bmp, zip) 2026-10-31 08:53:32 -05:00
4DBug 9b2bc84b39 imgA: JPEG-in-TIFF pixel check through F.load (image/jpeg via the decodeImage hook) against tifffile 2026-10-31 08:53:29 -05:00
4DBug a74033e171 ws-audio: audio/vorbis decoder: stb_vorbis 1.22 port (setup, codebooks, floor 1, residue 0/1/2, coupling) on containers/Ogg + codecs/Mdct, libvorbis-exact trimming, granule-exact seek, packetDecoder for other containers; tests vs oggdec (counts, 1 LSB) + ffmpeg (SNR 138 dB), seeks, fuzz; bench line 2026-10-31 08:53:10 -05:00
4DBug fb3dc75282 imgA: merge ws/imgA-tiff (image/tiff) 2026-10-31 08:52:52 -05:00
4DBugandClaude Opus 5.5 2a39f689bc data: data/csv (RFC 4180 + Python-lenient reading, delimiter / auto, header -> keyed rows, numbers option, minimal / all quoting); Python csv fixtures, byte-exact re-encode
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:52:26 -05:00
4DBug 4f6f14604b imgA-simple: image/hdr (Radiance RGBE: flat / old / new RLE, all orientations, EXPOSURE; RLE writer) against ImageMagick and rgbe.c 2026-10-31 08:51:42 -05:00
4DBug 17778cff1b absorb: containers/Zip (reader from zip-luau 121d4b0 with a direct codecs/Deflate require, Err values; new writer: store/deflate, UTF-8, DOS times, raw copies, ZIP64) + archive/zip (Types.Archive list/read/add/remove/write, create, encode); tests vs Python zipfile 2026-10-31 08:51:05 -05:00
4DBugandClaude Opus 5.5 e050a521da data: merge ws/data-toml (data/toml)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:50:46 -05:00
4DBug bb30922385 imgA-tiff: image/tiff read (strips/tiles, planar, LZW/Deflate/PackBits/JPEG via hook, predictors 2/3, 1-32 bit int + 16/32/64 float, palette, CMYK, alpha, BigTIFF, pages) and write (none/deflate/lzw/packbits, predictors, multi-page); tifffile + ImageMagick fixtures 2026-10-31 08:50:42 -05:00
4DBugandClaude Opus 5.5 0a730986f8 data: data/cbor (RFC 8949: indefinite lengths, half floats, tags 0/1 dates, bignums, self-describe, tagged / simple / undefined values, sequences); RFC appendix A + cbor2 fixtures, byte-exact re-encode
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:50:39 -05:00
4DBug 29fdc44b83 imgA-simple: image/tga (types 1/2/3/9/10/11, 8-32 bit, colour maps, origins; raw/RLE writer with TGA 2.0 footer) against Pillow / ImageMagick 2026-10-31 08:48:55 -05:00
4DBug 25cf9fa396 imgA: merge ws/imgA-ops (ops/ImageOps) 2026-10-31 08:48:25 -05:00