New shared modules under codecs/audio/Aac: Sbr (bitstream, band tables, delta decoding), SbrBits, SbrQmf (32-band analysis / 64-band synthesis QMF through DCT-IV), SbrHf (HF generation and adjustment), Ps (baseline PS), SbrTables (ISO tables, from syom 0.8.1, MIT). Explicit signalling enables SBR at construction; implicit SBR / PS is found by Decoder:probe / Aac.probeFrames. audio/aac and audio/m4a report the output rate and take opts.sbr = false for the core only; m4a scales iTunSMPB by the media tick. Outside the folder: containers/AudioWrap writes an AAC-LC ADTS header for HE-AAC AudioSpecificConfigs (the decoder finds SBR in the stream); the api's default openAudio hook forwards opts.sbr.
15 KiB
15 KiB
Third-party code, absorbed repositories and test data
| Where | From | Licence |
|---|---|---|
src/Rosetta/codecs/Deflate/ (Inflate, init), src/Rosetta/core/Crc32.luau, src/Rosetta/core/Adler32.luau, src/Rosetta/core/Huffman.luau (table builder) |
deflate-luau 1.0.0 (same author), written from RFC 1950-1952 | no licence chosen yet; no third-party code: deflate-luau-NOTICE.txt |
src/Rosetta/image/png/ (init, Decode) |
png-luau 1.0.0 (same author), written from the PNG specification | no licence chosen yet; no third-party code |
src/Rosetta/codecs/Brotli/Static.luau (static dictionary, context lookup table, word transforms; generated by tools/brotli_static.py), src/Rosetta/codecs/Brotli/Decode.luau (written from RFC 7932, structure after the reference decoder) |
google/brotli | MIT: brotli-LICENSE.txt |
src/Rosetta/codecs/Lzma/, src/Rosetta/archive/xz/, src/Rosetta/archive/7z/ |
written from the LZMA specification / LzmaSpec.cpp and 7zFormat.txt (LZMA SDK, Igor Pavlov), the xz file format specification and xz-embedded's BCJ filters (Lasse Collin) | all public domain: lzma-xz-PUBLIC-DOMAIN.txt |
src/Rosetta/codecs/TrueType/, src/Rosetta/codecs/Cff/ |
stb_truetype 1.26 (Sean Barrett), via imgui-luau's imstb_truetype.lua; fixed and extended |
MIT or public domain: stb_truetype-LICENSE.txt |
src/Rosetta/containers/Ogg/ (init, Page) |
ogg-luau be9f604 (same author), written from RFC 3533 | no licence chosen yet; no third-party code |
src/Rosetta/audio/wav/, src/Rosetta/containers/Riff/ (the chunk walker) |
wav-luau fd9a909 (same author), written from the RIFF / WAVE / RF64 (EBU Tech 3306) specifications | no licence chosen yet; no third-party code |
src/Rosetta/audio/mp3/ |
mp3-luau c755bbf (same author), a port of minimp3 by lieff (https://github.com/lieff/minimp3) | minimp3: CC0 1.0, minimp3-CC0.txt |
tests/fixtures/mp3/ |
made by ffmpeg (libmp3lame / mp2) from a synthetic signal; *.ref are minimp3 decodes of them |
test data, no third-party content |
src/Rosetta/audio/opus/ (Decoder, Celt, Silk, Mdct, RangeDecoder, Packet, CeltTables, SilkTables) |
opus-luau dd2b4e5 (same author): a port of the libopus 1.6 decoder (git bafd40dcbd50; tables generated from its sources); the stereo downmix weights follow opusfile | libopus BSD 3-clause (Xiph.Org, Skype, Octasic, J.-M. Valin, T. B. Terriberry, CSIRO, G. Maxwell, M. Borgerding, E. de Castro Lopo, Mozilla, Amazon), opusfile BSD 3-clause: libopus-BSD.txt |
src/Rosetta/audio/vorbis/ (Setup, Codebook, Packet, Tables) |
a Luau port of stb_vorbis 1.22 by Sean Barrett (https://github.com/nothings/stb): setup parsing, codebooks, floor 1, residues, coupling (the IMDCT is codecs/Mdct; the timing follows libvorbis / the spec) | public domain or MIT (dual): stb_vorbis-LICENSE.txt |
src/Rosetta/audio/flac/ |
flac-luau 7083d0d (same author), written from RFC 9639 | no licence chosen yet; no third-party code |
src/Rosetta/image/bmp/ |
bmp-luau b86aed6 (same author), written from the Microsoft BMP documentation | no licence chosen yet; no third-party code |
tests/fixtures/bmpsuite/ |
BMP Suite 2.8 by Jason Summers (generated images) | public domain: bmpsuite-NOTICE.txt |
src/Rosetta/containers/Zip/ (the reader), src/Rosetta/archive/zip/ |
zip-luau 121d4b0 (same author), written from PKWARE's APPNOTE.TXT 6.3 | no licence chosen yet; no third-party code |
src/Rosetta/audio/mp3/EncTables.luau (ws-audio encoders) |
PDMP3 by Krister Lagerström et al. (https://github.com/technosaurus/PDMP3): the ISO/IEC 11172-3 synthesis window and layer III Huffman trees | public domain (unlicense): PDMP3-UNLICENSE.txt |
src/Rosetta/playlist/ (m3u, pls; xspf is new), src/Rosetta/codecs/Url/, src/Rosetta/codecs/Text/ |
playlist-luau 3fc7fd3 (same author), written from RFC 3986 / RFC 8216 | no licence chosen yet; no third-party code |
src/Rosetta/codecs/Jpeg/ (Decode, Scan, Color, Yuv; moved from image/jpeg), src/Rosetta/codecs/Dct/ (inverse DCTs) |
jpeg-luau 1.0 (same author); the IDCTs, upsampling, colour conversion and IDCT-size choice are Luau translations of libjpeg / libjpeg-turbo (jidctint.c, jidctred.c, jdsample.c, jdcolor.c, jdmaster.c) | IJG licence + libjpeg-turbo BSD: libjpeg-turbo-LICENSE.md, libjpeg-README.ijg. This software is based in part on the work of the Independent JPEG Group. |
src/Rosetta/codecs/Jpeg/Arith.luau, src/Rosetta/codecs/Jpeg/Encode.luau, src/Rosetta/codecs/Dct/ (forward DCT) |
new; Luau translations of libjpeg-turbo 3.2 jdarith.c / jaricom.c (Guido Vollbeding), jccolor.c, jcsample.c, jccoefct.c, jfdctint.c, jcdctmgr.c, jchuff.c, jcphuff.c, jcparam.c | as above |
src/Rosetta/codecs/Mpeg1/ (init, Decoder, Vlc, Tables) |
mpeg1-luau e2e2898 (same author), a port of jsmpeg's MPEG-1 video decoder (https://github.com/phoboslab/jsmpeg, src/mpeg1.js; the tables are generated from it) by Dominic Szablewski | MIT: jsmpeg-MIT.txt |
src/Rosetta/containers/MpegTs/ |
mpegts-luau 6e16197 (same author), written from ISO/IEC 13818-1 | no licence chosen yet; no third-party code |
src/Rosetta/codecs/Aac/Tables.luau |
the Huffman codebooks, scalefactor band offsets and TNS limits of ISO/IEC 14496-3 (Annex 4.A), transcribed mechanically from FFmpeg's libavcodec/aactab.c (tables of the standard only; no FFmpeg code) |
FFmpeg is LGPL-2.1-or-later; the tables are the standard's data |
src/Rosetta/codecs/Aac/, codecs/Alac/, codecs/Mdct/, containers/IsoBmff/, audio/m4a, audio/aac, audio/caf |
written for this library from ISO/IEC 14496-3 / 14496-12 / 23008-12, Apple's ALAC and CAF specifications | no third-party code |
src/Rosetta/audio/opus/CeltEncoder.luau, src/Rosetta/audio/opus/RangeEncoder.luau |
the encoder side of libopus 1.6 (celt_encoder.c, entenc.c, quant_bands.c, laplace.c, rate.c, bands.c, vq.c, cwrs.c), ported to mirror the absorbed decoder; analysis simplified (ws-m4a) | libopus BSD 3-clause: libopus-BSD.txt |
tests/fixtures/pngsuite/ |
PngSuite by Willem van Schaik | PngSuite-LICENSE.txt |
tests/fixtures/vox/{chr_knight,chr_sword,deer,maze}.vox, tests/fixtures/vox/MagicaVoxel-file-format-vox*.txt (the format spec) |
ephtracy/voxel-model (MagicaVoxel sample models) | MIT: voxel-model-LICENSE.txt |
tests/fixtures/vox/ogt_*.vox |
jpaver/opengametools demo/vox/ (files saved by MagicaVoxel 0.99.x) |
MIT: opengametools-LICENSE.txt |
tests/fixtures/ogmo/{turnBasedRPG.ogmo,room-001.json} |
HaxeFlixel/flixel-demos Tutorials/TurnBasedRPG/assets/data/ (an Ogmo Editor 3.3 project and level) |
MIT: flixel-demos-LICENSE.txt |
tests/fixtures/gltf/ |
KhronosGroup/glTF-Sample-Assets Models/ (one LICENSE.md per model folder; UnicodeTest is Unicode❤♻Test renamed) |
CC-BY-4.0 or CC0-1.0 per model, see each folder's LICENSE.md |
src/Rosetta/codecs/Vp8/ (Decode, Yuv, Tables), src/Rosetta/codecs/Vp8L/Decode.luau, src/Rosetta/image/webp/ (Alpha unfilters, Anim.coalesce) |
ports of libwebp 1.6.0 (Google): src/dec, src/dsp, src/utils, src/demux/anim_decode.c | BSD-3-Clause + patent grant: libwebp-LICENSE.txt |
src/Rosetta/codecs/Tracker/, src/Rosetta/music/{mod,s3m,xm,it}/ |
written for this library from the format documents: ProTracker 2.3 effect docs, the XM specification (Mr.H / Triton) and FT2 behaviour notes, ST3 TECH.DOC (Sami Tammilehto / Future Crew), ITTECH.TXT (Jeffrey Lim); OpenMPT (libopenmpt, BSD) was used only as the reference player in the tests, and its documented playback quirks (mix levels, MOD panning, FT2 E6x / tremor / instrument behaviour) are matched | no third-party code |
tools/fixtures/{mod,s3m,xm,it}.py test modules |
generated by the fixture scripts (synthesized samples) | no third-party data |
src/Rosetta/codecs/SoundFont/ (Synth, the zone merging in Parse) |
port of TinySoundFont v0.9 (tsf.h) by Bernhard Schelling, based on SFZero by Steve Folta | MIT: TinySoundFont-LICENSE.txt |
src/Rosetta/codecs/Vp8/ inter frames (Decode: inter headers / modes / motion vectors / references, Predict, the inter tables in Tables) |
Luau translations of libvpx 1.17 (WebM Project): vp8/decoder/decodeframe.c, decodemv.c, onyxd_if.c; vp8/common/findnearmv.c, reconinter.c, filter.c, vp8_loopfilter.c, entropymode.c, entropymv.c, modecont.c | BSD-3-Clause + patent grant: libvpx-LICENSE.txt |
tests/fixtures/vp8video/vp80-*.ivf |
the VP8 test vectors of the libvpx test data (vp80-00-comprehensive-001..018 and others) | WebM Project, BSD-3-Clause + patent grant: libvpx-LICENSE.txt |
src/Rosetta/codecs/H264/ (Tables: CAVLC / CABAC / deblocking / scaling constant tables of ITU-T H.264, extracted from openh264 sources; the decoder itself is written from the spec) |
openh264 2.x (Cisco) | BSD-2-Clause: openh264-LICENSE.txt |
src/Rosetta/codecs/audio/Adpcm/ (the ADX coefficient derivation, PS-ADPCM / DSP / ADX decode details, followed for bit-exact output; the container layouts of audio/adx, audio/vag, audio/brstm) |
vgmstream r2117 | ISC-style: vgmstream-LICENSE.txt |
src/Rosetta/codecs/audio/Qoa/ (port of qoa.h: tables, LMS predictor, decoder, encoder); tests/fixtures/qoa/qoa.h (the reference, compiled at fixture time) |
qoa.h (phoboslab/qoa, Dominic Szablewski) | MIT: qoa-LICENSE.txt |
src/Rosetta/codecs/audio/Hively/ (Tables, Load, Player: the AHX / HVL loaders, waveform generator and replayer) |
port of HivelyTracker hvl2wav replay.c 1.9 by Pete Gordon (Xeron/IRIS); tests/gen/ahx_cases / hvl_cases also embed songs from its Songs/ directory (fixture time, not committed) |
BSD-3-Clause: hivelytracker-LICENSE.txt |
src/Rosetta/codecs/audio/Musepack/ (Decode, Tables, init: the SV7 / SV8 bitstream, Huffman tables, requantisation, synthesis, stream headers) |
port of libmpcdec (musepack_src_r475, The Musepack Development Team) | BSD-3-Clause: libmpcdec-BSD.txt |
src/Rosetta/codecs/audio/WavPack/ (Block, Tables), src/Rosetta/audio/wavpack/ |
Luau port of the WavPack 5.9.0 decoder by David Bryant: unpack.c, read_words.c, unpack_floats.c, decorr_utils.c, entropy_utils.c (tables, wp_log2 / wp_exp2s), open_utils.c (metadata, block checksum) | BSD-3-Clause: wavpack-LICENSE.txt |
src/Rosetta/codecs/audio/Ape/ (Decode, init), src/Rosetta/audio/ape/ |
Luau port of the Monkey's Audio SDK 13.28 decoder by Matthew T. Ashland: UnBitArray.cpp / Old/UnBitArrayOld.cpp (range coder), NNFilter, NewPredictor.cpp, ScaledFirstOrderFilter.h, Prepare.cpp (Unprepare), APEDecompressCore.cpp, APEHeader.cpp, FloatTransform.cpp | BSD-3-Clause (since SDK v10): monkeys-audio-LICENSE.txt |
src/Rosetta/music/{mtm,669,stm,ult,okt,med,ptm,far,umx}/, src/Rosetta/codecs/audio/Tracker/Load.luau (loaders and effect conversions ported from OpenMPT's Load_*.cpp / ModCommand / UMXTools) |
libopenmpt 0.8.9 (OpenMPT Project Developers, Olivier Lapicque) | BSD-3-Clause: openmpt-LICENSE.txt |
src/Rosetta/codecs/video/Dsp.luau (the 8x8 IDCT: jrevdct.c translated to Luau, branch tree and constants unchanged) |
IJG jrevdct.c as shipped in ffmpeg (libavcodec/jrevdct.c; IJG-licensed, not LGPL: ffmpeg's LICENSE.md) | IJG: libjpeg-README.ijg. This software is based in part on the work of the Independent JPEG Group. |
tests/gen/h264_jvt (downloaded at fixture time, not committed) |
ITU-T H.264.1 / JVT conformance bitstreams (itu.int) | ITU-T test data |
tests/gen/wad (cut down from the nix freedoom package at fixture time, not committed) |
Freedoom 0.13 (freedoom.github.io) | BSD-3-Clause: freedoom-COPYING.txt |
src/Rosetta/codecs/compress/Explode.luau (the PKWARE DCL code tables and bit order) |
blast.c 1.3 (Mark Adler, zlib contrib) | zlib: blast-LICENSE.txt |
src/Rosetta/codecs/compress/Lzh/ (lh1 adaptive Huffman, lh4..lh7 block decoding, lzs / lz5) |
lhasa 0.6.0 (Simon Howard) | ISC: lhasa-LICENSE.txt |
tests/gen/lha (read from nixpkgs#lhasa.src at fixture time, not committed) |
lhasa 0.6.0 test archives | ISC (lhasa) |
src/Rosetta/codecs/font/GlyphNames.luau (glyph name -> Unicode table, StandardEncoding) |
Adobe Glyph List For New Fonts 1.7 (via fontTools) | BSD-3-Clause: agl-LICENSE.txt |
src/Rosetta/codecs/compress/UnixCompress.luau (the .Z format and the encoder's ratio check / CLEAR rule, read from compress.c; the code is new) |
ncompress 5.0 | public domain (The Unlicense): ncompress-UNLICENSE.txt |
src/Rosetta/codecs/video/Theora/ (Header, Decoder) |
a Luau port of the libtheora 1.2.0 decoder (Xiph.Org; decinfo.c, dequant.c, quant.c, huffdec.c, decode.c, state.c, idct.c, fragment.c) checked against the Theora I specification; the token storage is simplified (coefficients per fragment) and the post-processing is not ported | BSD 3-clause: libtheora-BSD.txt |
src/Rosetta/codecs/model/Draco/ |
Luau port of the Draco 1.5.7 decoder (Google): compression/{decode, mesh, attributes, entropy, bit_coders, point_cloud}, mesh/corner_table, mesh/mesh_attribute_corner_table, core/{decoder_buffer, varint_decoding, math_utils}, attributes/attribute_{quantization,octahedron}_transform | Apache-2.0: draco-LICENSE.txt |
src/Rosetta/model/ldraw/Colors.luau (the built-in colour table) |
the !COLOUR list of LDConfig.ldr (LDraw.org Parts Library, UPDATE 2025-05-20), reformatted | CC BY 2.0 / CC BY 4.0: LDRAW_COLOURS.txt |
tests/gen/ldraw_* (read at fixture time from the nix store, not committed) |
LDraw.org Parts Library parts and sample models (complete.zip, as packaged for nixpkgs' LeoCAD) | CC BY 2.0 / CC BY 4.0, test data |
src/Rosetta/codecs/image/Bcn/Decode.luau (the BC1..BC7 block decoders and the BPTC tables; changed to follow the D3D11 rules) |
Pillow 12 src/libImaging/BcnDecode.c |
CC0 1.0: pillow-bcn-CC0.txt |
src/Rosetta/image/exr/Piz.luau, src/Rosetta/image/exr/Codec.luau (the PIZ Huffman / wavelet / LUT steps and the ZIP / RLE byte predictor, re-implemented in Luau after the OpenEXR algorithms) |
OpenEXR 3.x (ImfPizCompressor, ImfHuf, ImfWav, ImfZip, ImfRle) | BSD-3-Clause: openexr-LICENSE.md |
src/Rosetta/model/godot/Primitives.luau (BoxMesh, PlaneMesh, QuadMesh, SphereMesh, CylinderMesh generation, ported to Luau without UV2) |
Godot Engine 4.4 scene/resources/3d/primitive_meshes.cpp |
MIT: godot-LICENSE.txt |
src/Rosetta/codecs/audio/Aac/Sbr.luau, SbrHf.luau, Ps.luau, SbrTables.luau (HE-AAC SBR / PS: the bitstream, band tables, HF generation and adjustment, the PS hybrid filterbank / decorrelator / mixing, ported to Luau; the QMF banks are new) |
syom 0.8.1 src/engine/sbr_*.rs, ps_*.rs (Evgeny Khodzitsky; its tables are ISO/IEC 14496-3 numbers) |
MIT: syom-LICENSE.txt |
Ports of third-party code (minimp3, stb_vorbis, libopus, ...) add a row here and their upstream licence text in this folder (see docs/STYLE.md, "Absorbing an existing repo").