4DBug
20ecf65df8
merge ws/video2-theora (Theora codec, ogv)
2026-10-31 15:22:40 -05:00
4DBug and Claude Opus 5.5
e423858c8e
ws-video2-theora: codecs/video/Theora, a Theora decoder (port of libtheora 1.2.0, BSD)
...
Headers (identification, comment via VorbisComment, setup: loop-filter limits,
quant ranges -> dequant tables, the 80 Huffman trees as collapsed lookup tables),
intra / inter frames, coded SB / block flags, MB modes (8 alphabets), MVs (VLC /
CLC, last / prior, 4MV with per-format chroma averages, half / quarter-pel),
block qi, DCT tokens with EOB runs, DC prediction, the spec IDCT, loop filter,
golden / previous refs, 4:2:0 / 4:2:2 / 4:4:4, picture-region crop, empty-packet
dupes. Bit-exact with ffmpeg on every frame of 12 fixtures (tests/codecs/theora).
Outside the folder: codecs/video/Video BUILTIN entry theora gets a decoder
(track.config = Xiph-laced headers, as Matroska's CodecPrivate);
licenses/libtheora-BSD.txt + NOTICE row.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 14:16:35 -05:00
4DBug and Claude Opus 5.5
d15fa26a43
ws-video2: codecs/video/Dsp (jrevdct IDCT bit-exact with ffmpeg -idct int, shared MC); Mpeg1 uses it
...
MPEG-1 decode is now bit-exact with ffmpeg -idct int (was ~0.6 MAE). ~5% slower on luau (1695 vs 1790 fps at 320x240).
The IJG jrevdct.c is IJG-licensed (ffmpeg LICENSE.md), credited in licenses/NOTICE.md.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 13:56:27 -05:00
4DBug and Claude Opus 5.5
c49093c464
ws-h264: F.video.open end to end on MP4 / MKV / TS / AVI / raw H.264 (bit-exact vs ffmpeg), display-order pts from the sorted packet times; JVT conformance test (48 streams bit-exact vs JM yuv, 4 refused); video/mp4 writer: a video edit list plays every frame (the B-frame delay no longer cut 2 frames off the end); tests tune LuaJIT through host
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 10:53:34 -05:00
4DBug and Claude Opus 5.5
1b0db9a0e8
ws-h264: merge ws/video; codecs/Video registers h264 (avc1/avc3/H264/... FourCCs, V_MPEG4/ISO/AVC) via H264.newVideoDecoder; video/h264 raw Annex B format (demux by access unit, copy-writer from MP4/MKV samples); MMCO 5 resets frame_num (JVT MR2/MR4/MR5); meta.yuv from the VUI
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 10:29:56 -05:00
4DBug
582191a739
ws-video: merge ws/video-vp8 (VP8 inter frames)
2026-10-31 10:05:56 -05:00
4DBug
0c9094d28a
ws-video: bench block (whole pipeline fps for MJPEG AVI / MPEG-1 TS / VP8 WebM / Y4M at 320x240 and 640x480, y4m -> MJPEG AVI), docs/video.md (API, layers, how a codec plugs into the registry), NOTICE row for mpegts-luau
2026-10-31 10:05:09 -05:00
4DBug and Claude Opus 5.5
7ae481d4ed
ws-h264: codecs/H264 decoder (CAVLC + CABAC, I/P/B, 8x8, weighted, direct, deblock, DPB/POC/reorder); fixtures from libx264 vs ffmpeg
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 09:53:41 -05:00
4DBug
dac404aa52
ws-video: merge ws/video-codecs (codecs/Jpeg, codecs/Mpeg1)
2026-10-31 09:53:26 -05:00
4DBug and Claude Opus 5.5
aff15e7cc9
ws-video-vp8: VP8 inter frames (libvpx 1.17 port): references, modes / motion vectors, split, six-tap / bilinear prediction, inter loop filter levels, hidden frames, reset; tests vs ffmpeg on 27 test vectors + 24 libvpx clips
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 09:46:45 -05:00
4DBug
2493b9db36
ws-video-codecs: codecs/Mpeg1 absorbed from mpeg1-luau e2e2898 (jsmpeg port, MIT: licenses/jsmpeg-MIT.txt + NOTICE); requires and headers, frameImage (yuv420p / rgba8 copies); IDCT kept (bit-identical to codecs/Dct islow in put mode, but MPEG adds residuals before clamping); tests/codecs/mpeg1.luau + tools/fixtures/mpeg1.py (base64 / zlib fixtures, 5.6 MB)
2026-10-31 09:41:27 -05:00
4DBug
fa98dd77c2
merge ws/audio
2026-10-31 09:37:28 -05:00
4DBug
8311620631
merge ws/music
2026-10-31 09:33:13 -05:00
4DBug
3796ce674d
ws-music: music/it read + render (IT 2.14/2.15 decompression, NNA, filters, pitch-pan, OpenMPT note-fade coding), tracker tests tightened, MOD->XM + API checks, tracker bench lines, NOTICE
2026-10-31 09:31:34 -05:00
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
5e6909e34a
ws-video-codecs: codecs/Jpeg (the JPEG engine moved down from image/jpeg; byte-range API, yuv420p decode / encode, AVI1 fields); image/jpeg is a thin format over it
2026-10-31 09:28:38 -05:00
4DBug
9456a90e4f
merge ws/m4a
2026-10-31 09:23:57 -05:00
4DBug and Claude 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
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 and Claude 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 and Claude 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
4DBug and Claude 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
4DBug
709b335374
ws-webp: encoder tries several transform configurations at effort 6+ (palette vs predictor, tile sizes); argument validation in encode / coalesce; NOTICE row for the libwebp ports
2026-10-31 09:00: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
2b1e223817
licenses: stb_truetype (TrueType / Cff port)
2026-10-31 08:58:10 -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
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
7b5adb2468
ws-audio: merge ws/absorb (flac, bmp, zip)
2026-10-31 08:53:32 -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
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
4DBug
6986b82ab9
ws-music: music/sf2 + SoundFont tests vs FluidSynth (envelope r 0.995, band spectra r >= 0.969, pitch peaks within 0.6%), gain ramp per block, bench lines
...
tools/bench.sh: also generates the midi + sf2 fixtures (the bench renders their songs). licenses: TinySoundFont MIT row in NOTICE.md.
2026-10-31 08:44:56 -05:00
4DBug
b6e2b9e68d
absorb: image/bmp (reader from bmp-luau b86aed6 + new encoder: 8 bpp paletted / 24 / 32 bpp, V4 alpha or BI_RGB); BMP Suite vs Pillow, encoder byte-exact vs Pillow
2026-10-31 08:44:40 -05:00
4DBug
692ef055de
imgA: image/jpeg (absorbed jpeg-luau decoder + arithmetic coding, meta, EXIF orientation, encoder byte-identical to cjpeg) and codecs/Dct
...
- codecs/Dct: jpeg-luau's islow / reduced IDCTs + a forward islow DCT with jcdctmgr.c's quantiser; tests/codecs/dct.luau
- image/jpeg: Decode (marker parser, absorbed + reader ranges, SOF9/SOF10 + DAC, EXIF / ICC / COM / JFIF density),
Scan + Color (absorbed), Arith (jdarith.c port), Encode (baseline / optimised / progressive, 444/422/420, restarts,
APP1/APP2/COM from meta), Tables (annex K)
- tests: 115 cjpeg/jpegtran/Pillow files, 444 decodes bit-exact with djpeg at 1, 1/2, 1/4, 1/8 (104 arithmetic),
38 encodes byte-identical to cjpeg (so djpeg decodes them), orientation, meta, truncation, fuzz
- licenses: libjpeg-turbo LICENSE + README.ijg, NOTICE rows
- tools/bench.luau: jpeg block; tools/bench.sh runs every fixture generator (bench blocks read their outputs)
2026-10-31 08:44:15 -05:00
4DBug
4ffb8cd6bd
ws-webp: codecs/Vp8L decoder (libwebp port) and codecs/Vp8 key frame decoder + libwebp YUV->RGB (fancy / point upsampling); bit-exact on first samples
2026-10-31 08:39:26 -05:00
4DBug
5da81ee8e1
absorb: audio/flac (from flac-luau 7083d0d: native + Ogg FLAC via a direct containers/Ogg require, Types.Decoder open with read(n, out?), decode to Audio, sniff incl. ID3 + fLaC); bit-exact vs flac -d on 46 generated streams; flac + wav bench lines
2026-10-31 08:39:09 -05:00
4DBug
b549438a0c
ws-arch: merge ws/arch-lzma
2026-10-31 08:38:55 -05:00
4DBug and Claude Opus 5.5
58f6b32541
ws-3d: model/vox (MagicaVoxel read/write: every chunk, scene graph, materials, layers, render objects, cameras, notes, IMAP, META, unknown chunks kept), ops/MeshOps (triangulate, transform, normals, tangents, weld/unweld, bounds, merge, scale/setUnit/setUp, greedy voxel meshing); Types: Scene.reader/mul/nodeMatrix/flatten helpers; compat: __iter visits t[0] on LuaJIT (was skipped by ipairs)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 08:38:02 -05:00
4DBug
c7aea4b29f
ws-arch: licenses: LZMA SDK / xz public-domain notice for codecs/Lzma, archive/xz, archive/7z
2026-10-31 08:37:57 -05:00
4DBug
d2280d3b77
ws-music: music/midi (SMF 0/1/2 read/write, tempo map, render), codecs/SoundFont (SF2 parser + TinySoundFont-port synth + fallback waveform set), midi tests vs mido
...
Types.luau: Midi gets an optional render(self, opts) -> Decoder field (backward compatible; set by music/midi decode).
2026-10-31 08:37:25 -05:00
4DBug
46fad9d24f
ws-arch: codecs/Brotli (RFC 7932 decoder: all meta-block kinds, context modes/maps, static dictionary + 121 transforms, large windows) and archive/br (single-stream archive); tools/brotli_static.py generates codecs/Brotli/Static from the brotli sources (MIT, licenses/brotli-LICENSE.txt); fixtures via python brotli + CLI
2026-10-31 08:36:16 -05:00
4DBug
ef95d6e51c
absorb: merge ws/absorb-opus
2026-10-31 08:35:16 -05:00
4DBug
d5372992e7
absorb: merge ws/absorb-mp3
2026-10-31 08:35:04 -05:00
4DBug
85fb079068
absorb: containers/Riff (lenient reader from wav-luau + new writer: RIFX, RF64/ds64, LIST, parts) and audio/wav (decoder from wav-luau fd9a909 on Riff + new encoder u8/s16/s24/s32/f32, EXTENSIBLE, RF64; byte-exact vs ffmpeg -bitexact)
2026-10-31 08:34:39 -05:00
4DBug
d20ffd7388
absorb: opus (audio/opus from opus-luau dd2b4e5, libopus port: direct containers/Ogg require, Types.Decoder open + decode to Audio, Err values); tests vs opusdec --float on 24 generated streams, CELT / SILK alone, PLC, seek, downmix, fuzz; bench lines
2026-10-31 08:33:32 -05:00
4DBug and Claude Opus 5.5
3e54756833
absorb: mp3 (audio/mp3 from mp3-luau c755bbf, minimp3 port): streaming Decoder + decode to Audio, sniff, ID3 tags in dec.tags (strings) / dec.id3; tests vs minimp3 refs + ffmpeg + lame streams, robust, tags, fuzz; bench lines (tools/bench.sh also builds the mp3 fixtures)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 08:30:06 -05:00
4DBug
e3f9d0fb38
absorb: containers/Ogg (demuxer from ogg-luau be9f604, Err values, Reader input) + a new muxer (page writer); tests vs opusenc / flac / ffmpeg fixtures
2026-10-31 08:26:39 -05:00