Files
rosetta/docs/FORMATS.md
T

30 KiB

Formats

GENERATED by tools/gen_registry.py from each format's contract (caps) - do not edit. Every format listed here is tested under both runtimes (luau --codegen -O2 and LuaJIT through the build) by bash tools/test.sh.

Category Format Extensions Read Write Capabilities Test
image ani .ani yes yes alpha: true, animation: true, frames: true tests/image/ani.luau
image blp .blp yes yes alpha: true, variants: "blp1", "blp2", compressions: "jpeg", "palette", "dxt1", "dxt3", "dxt5", "bgra" tests/image/blp.luau
image bmp .bmp .dib yes yes alpha: true, depths: 1, 2, 4, 8, 16, 24, 32, rle: true tests/image/bmp.luau
image dds .dds yes yes alpha: true, float: true, mipmaps: true, cubemap: true, compressed: "bc1", "bc2", "bc3", "bc4", "bc5", "bc6h", "bc7" tests/image/dds.luau
image exr .exr yes yes alpha: true, float: true, hdr: true, depths: 16, 32, multipart: true, tiled: true tests/image/exr.luau
image gif .gif yes yes animation: true, alpha: true, palette: true, depths: 1, 2, 4, 8 tests/image/gif.luau
image hdr .hdr .pic .rgbe yes yes alpha: false, float: true, depths: 32 tests/image/hdr.luau
image icns .icns yes yes alpha: true, frames: true, depths: 1, 24, 32 tests/image/icns.luau
image ico .ico .cur yes yes alpha: true, frames: true, depths: 1, 4, 8, 16, 24, 32 tests/image/ico.luau
image ilbm .iff .ilbm .lbm .pbm yes yes alpha: true, palette: true, depths: 1, 2, 3, 4, 5, 6, 7, 8, 24, 32 tests/image/ilbm.luau
image jpeg .jpg .jpeg .jpe .jfif yes yes lossy: true, alpha: false, depths: 8, 12, progressive: true, arithmetic: true tests/image/jpeg.luau
image ktx .ktx2 .ktx yes yes alpha: true, float: true, mipmaps: true, cubemap: true, compressed: "bc1", "bc2", "bc3", "bc4", "bc5", "bc6h", "bc7", "etc1", "etc2", "eac" tests/image/ktx.luau
image pcx .pcx .pcc .dcx yes yes alpha: true, palette: true, depths: 1, 2, 4, 8, 24, 32 tests/image/pcx.luau
image png .png .apng yes yes animation: true, alpha: true, depths: 1, 2, 4, 8, 16 tests/image/png.luau
image pnm .pnm .pbm .pgm .ppm .pam .pfm yes yes alpha: true, depths: 1, 8, 16, 32, float: true tests/image/pnm.luau
image qoi .qoi yes yes alpha: true, depths: 8 tests/image/qoi.luau
image sgi .sgi .rgb .rgba .bw .int .inta yes yes alpha: true, depths: 8, 16 tests/image/sgi.luau
image sunras .ras .sun .rs .im1 .im8 .im24 .im32 yes yes alpha: true, palette: true, depths: 1, 8, 24, 32 tests/image/sunras.luau
image tga .tga .icb .vda .vst .tpic yes yes alpha: true, palette: true, depths: 8, 15, 16, 24, 32 tests/image/tga.luau
image tiff .tif .tiff yes yes alpha: true, pages: true, depths: 1, 2, 4, 8, 16, 32, float: true tests/image/tiff.luau
image tim .tim yes yes alpha: true, palette: true, depths: 4, 8, 16, 24 tests/image/tim.luau
image vtf .vtf yes - alpha: true, animation: true, versions: "7.0", "7.1", "7.2", "7.3", "7.4", "7.5" tests/image/vtf.luau
image webp .webp yes yes animation: true, alpha: true, lossy: true, lossless: true, depths: 8 tests/image/webp.luau
image xbm .xbm .bm yes yes depths: 1 tests/image/xbm.luau
image xpm .xpm .pm yes yes alpha: true, palette: true, depths: 8 tests/image/xpm.luau
audio aac .aac .adts yes - codecs: "aac", streaming: true tests/audio/aac.luau
audio ac3 .ac3 .a52 yes - codecs: "ac3", channels: 6, streaming: true, lossy: true tests/audio/ac3.luau
audio adpcm .adpcm .ima yes yes streaming: true, lossy: true, headerless: true, codecs: "ima", "ima_wav", "ms", "ima_qt", "psx" tests/audio/adpcm.luau
audio adx .adx yes yes streaming: true, lossy: true, loops: true, channels: 8 tests/audio/adx.luau
audio aiff .aiff .aif .aifc .afc yes yes streaming: true, depths: 8, 16, 24, 32, float: true, lossy: false tests/audio/aiff.luau
audio ape .ape yes - streaming: true, seek: true, lossless: true, float: true, depths: 8, 16, 24, 32 tests/audio/ape.luau
audio au .au .snd yes yes streaming: true, depths: 8, 16, 24, 32, float: true, lossy: false tests/audio/au.luau
audio brstm .brstm .bcstm .bfstm yes - streaming: true, lossy: true, loops: true, containers: "RSTM", "CSTM", "FSTM" tests/audio/brstm.luau
audio caf .caf .caff yes yes codecs: "pcm", "alac", "aac", "ulaw", "alaw", encodeCodecs: "pcm", "alac", tags: true, streaming: true tests/audio/caf.luau
audio flac .flac .oga yes yes streaming: true, depths: 4, 8, 12, 16, 20, 24, 32, ogg: true, seek: true tests/audio/flac.luau
audio m4a .m4a .m4b .m4r yes yes codecs: "aac", "alac", encodeCodecs: "alac", tags: true, streaming: true tests/audio/m4a.luau
audio mp3 .mp3 .mp2 .mp1 .mpga yes yes streaming: true, seek: true, layers: 1, 2, 3, encodeLayers: 2, 3, channels: 2 tests/audio/mp3.luau
audio mpc .mpc .mp+ .mpp yes - codecs: "musepack", versions: 7, 8, streaming: true, lossy: true tests/audio/mpc.luau
audio opus .opus yes yes streaming: true, seek: true, lossy: true, channels: 255, rates: 48000, encodeModes: "celt", encodeChannels: 2 tests/audio/opus.luau
audio qoa .qoa yes yes streaming: true, lossy: true, seek: true, channels: 8 tests/audio/qoa.luau
audio tta .tta yes - streaming: true, seek: true, lossless: true, depths: 8, 16, 24 tests/audio/tta.luau
audio vag .vag yes yes streaming: true, lossy: true, loops: true, channels: 2 tests/audio/vag.luau
audio voc .voc yes yes streaming: true, depths: 8, 16, lossy: false tests/audio/voc.luau
audio vorbis .ogg .oga yes yes streaming: true, seek: true, lossy: true, channels: 255 tests/audio/vorbis.luau
audio wav .wav .wave .rf64 .bw64 yes yes streaming: true, depths: 8, 16, 24, 32, float: true, rf64: true tests/audio/wav.luau
audio wavpack .wv yes - streaming: true, seek: true, lossless: true, hybrid: true, float: true, depths: 8, 12, 16, 20, 24, 32 tests/audio/wavpack.luau
video avi .avi yes yes streaming: true, video: "mjpeg", "mpeg1", "mpeg2", "rawvideo", audio: true, odml: true tests/video/avi.luau
video fli .fli .flc .flx yes - streaming: true, video: "flic", depths: 8, 15, 16, 24 tests/video/fli.luau
video flv .flv yes yes streaming: true, remux: true, video: "flv1", "h264", audio: true, metadata: true tests/video/flv.luau
video h264 .h264 .264 .avc .jsv .26l .jvt yes yes streaming: true, video: "h264", depths: 8 tests/video/h264.luau
video mkv .mkv .webm .mka .mk3d yes yes streaming: true, remux: true, video: "vp8", "mjpeg", "mpeg1", "mpeg2", "theora", "rawvideo", audio: true, subtitles: true tests/video/mkv.luau
video mp4 .mp4 .m4v .mov .qt .3gp .3g2 .mj2 yes yes streaming: true, remux: true, video: "mjpeg", "mpeg1", "mpeg2", "h264", audio: true, fragments: true tests/video/mp4.luau
video mpegps .mpg .mpeg .vob .m1v .mpv .dat yes - streaming: true, video: "mpeg1", "mpeg2", audio: true tests/video/mpegps.luau
video mpegts .ts .m2ts .mts .tsv yes - streaming: true, video: "mpeg1", "mpeg2", "h264", audio: true tests/video/mpegts.luau
video ogv .ogv .ogg yes yes streaming: true, remux: true, video: "theora", audio: true tests/video/ogv.luau
video smk .smk yes - streaming: true, video: "smackvid", audio: "smackaudio", "pcm_u8", "pcm_s16le" tests/video/smk.luau
video y4m .y4m yes yes streaming: true, video: "rawvideo", depths: 8, 10, 12, 16 tests/video/y4m.luau
model 3ds .3ds yes yes materials: true, textures: true, animation: true, cameras: true, lights: true, instancing: true tests/model/3ds.luau
model 3mf .3mf yes yes materials: true, vertexColors: true, textures: true, units: true tests/model/3mf.luau
model b3d .b3d yes - materials: true, textures: true, skins: true, animation: true, colors: true tests/model/b3d.luau
model bsp .bsp yes - variants: "quake", "halflife", "quake2", "quake3", lightmaps: "quake3" tests/model/bsp.luau
model dae .dae .zae yes yes materials: true, polygons: true, skins: true, morphTargets: true, animation: true, cameras: true, lights: true, zae: true tests/model/dae.luau
model fbx .fbx yes yes binary: true, ascii: true, materials: true, animation: true, skins: true, morphTargets: true, cameras: true, lights: true, polygons: true tests/model/fbx.luau
model gltf .gltf .glb yes yes binary: true, materials: true, animation: true, skins: true, morphTargets: true, cameras: true, lights: true, draco: true tests/model/gltf.luau
model iqm .iqm yes yes materials: true, skins: true, animation: true, vertexColors: true tests/model/iqm.luau
model ldraw .ldr .mpd .dat yes - materials: true, lines: true, instancing: true tests/model/ldraw.luau
model lwo .lwo .lxo yes - materials: true, polygons: true, vertexColors: true, morphTargets: true tests/model/lwo.luau
model mca .mca .mcr yes - voxels: true, blocks: true tests/model/mca.luau
model md2 .md2 yes - morph: true, animation: true tests/model/md2.luau
model md3 .md3 yes - morph: true, animation: true, tags: true tests/model/md3.luau
model md5 .md5mesh .md5anim yes - skins: true, animation: true tests/model/md5.luau
model mdl .mdl yes - variants: "quake", "halflife", morph: true, skins: true, animation: true tests/model/mdl.luau
model ms3d .ms3d yes yes materials: true, skins: true, animation: true tests/model/ms3d.luau
model obj .obj yes yes materials: true, polygons: true, vertexColors: true tests/model/obj.luau
model off .off yes yes polygons: true, points: true, colors: true, binary: false tests/model/off.luau
model ply .ply yes yes ascii: true, binary: true, polygons: true, points: true, colors: true tests/model/ply.luau
model pmx .pmx .pmd yes - materials: true, skins: true, morphTargets: true, pmd: true tests/model/pmx.luau
model qb .qb yes yes voxels: true, truecolor: true tests/model/qb.luau
model rbxm .rbxm .rbxl yes yes tree: true, compression: "none", "lz4", "zstd" tests/model/rbxm.luau
model rbxmx .rbxmx .rbxlx yes yes tree: true tests/model/rbxmx.luau
model robloxmesh .mesh yes yes skinning: true, lods: true, versions: "1.00", "1.01", "2.00", "3.00", "3.01", "4.00", "4.01", "5.00", "6.00", "7.00" tests/model/robloxmesh.luau
model schematic .schem .schematic .litematic yes yes voxels: true, blocks: true, variants: "schem", "schematic", "litematic" tests/model/schematic.luau
model smd .smd yes yes skins: true, animation: true tests/model/smd.luau
model stl .stl yes yes ascii: true, binary: true, colors: true, indexed: false tests/model/stl.luau
model usda .usda .usd .usdz yes yes materials: true, animation: true, cameras: true, lights: true, polygons: true, vertexColors: true, usdz: "read", usdc: false tests/model/usda.luau
model vox .vox yes yes voxels: true, sceneGraph: true, materials: true tests/model/vox.luau
model vrml .wrl .wrz .vrml yes yes materials: true, polygons: true, animation: true, cameras: true, lights: true, lines: true, points: true tests/model/vrml.luau
model x .x yes - text: true, binary: true, compressed: true, materials: true, skins: true, animation: true, polygons: true, vertexColors: true tests/model/x.luau
model x3d .x3d .x3dv .x3dz .x3dvz .x3db yes yes materials: true, polygons: true, animation: true, cameras: true, lights: true, lines: true, points: true, xml: true, classic: true tests/model/x3d.luau
cad step .step .stp .p21 yes yes complexEntities: true, sections: true, brep: "plugin", tessellate: "plugin" tests/cad/step.luau
font bdf .bdf yes yes bitmap: true tests/font/bdf.luau
font bmfont .fnt yes yes bitmap: true, variants: "text", "xml", "binary", extraFiles: true tests/font/bmfont.luau
font eot .eot yes yes variants: "1.0", "2.1", "2.2" tests/font/eot.luau
font fon .fon .fnt yes - bitmap: true, variants: "fnt2", "fnt3", "ne", "pe" tests/font/fon.luau
font hershey .jhf yes - strokes: true tests/font/hershey.luau
font pcf .pcf yes - bitmap: true tests/font/pcf.luau
font psf .psf .psfu yes yes bitmap: true, variants: "psf1", "psf2" tests/font/psf.luau
font ttf .ttf .otf .ttc .otc yes - outlines: "truetype", "cff", collection: true, kerning: true tests/font/ttf.luau
font type1 .pfb .pfa .t1 yes - outlines: "type1", variants: "pfb", "pfa" tests/font/type1.luau
font woff .woff yes - outlines: "truetype", "cff" tests/font/woff.luau
font woff2 .woff2 yes - outlines: "truetype", "cff", transforms: "glyf", "loca", "hmtx" tests/font/woff2.luau
archive 7z .7z yes - methods: "copy", "lzma", "lzma2", "deflate", "bcj", "delta", encrypted: false tests/archive/7z.luau
archive adf .adf yes - variants: "ofs", "ffs" tests/archive/adf.luau
archive applesingle .as .applesingle .appledouble yes yes forks: true, variants: "applesingle", "appledouble" tests/archive/applesingle.luau
archive ar .a .ar .deb .lib yes yes variants: "gnu", "bsd", deb: true tests/archive/ar.luau
archive arj .arj yes - methods: "store", "arj1", "arj2", "arj3", "arj4" tests/archive/arj.luau
archive binhex .hqx .hcx yes yes forks: true tests/archive/binhex.luau
archive br .br yes - stream: true tests/archive/br.luau
archive bz2 .bz2 .tbz2 .tbz yes - stream: true tests/archive/bz2.luau
archive cab .cab yes yes methods: "store", "mszip", "lzx", "quantum" tests/archive/cab.luau
archive cpio .cpio yes yes variants: "newc", "crc", "odc", "bin" tests/archive/cpio.luau
archive d64 .d64 .d71 .d81 yes yes variants: "d64", "d71", "d81" tests/archive/d64.luau
archive fat .img .ima .vfd .flp .fat yes yes variants: "fat12", "fat16", "fat32" tests/archive/fat.luau
archive grp .grp yes yes tests/archive/grp.luau
archive gzip .gz .tgz .gzip yes yes stream: true tests/archive/gzip.luau
archive iso .iso yes - extensions: "joliet", "rockridge", "eltorito" tests/archive/iso.luau
archive lha .lzh .lha .lzs yes yes methods: "lh0", "lh1", "lh4", "lh5", "lh6", "lh7", "lhx", "lzs", "lz5", "lz4", "lhd" tests/archive/lha.luau
archive lz4 .lz4 .tlz4 yes yes stream: true, legacy: true tests/archive/lz4.luau
archive macbinary .bin .macbin yes yes forks: true, variants: "I", "II", "III" tests/archive/macbinary.luau
archive mpq .mpq .w3x .w3m .sc2map .sc2data .s2ma .scm .scx yes - versions: 1, 2, 3, 4, methods: "zlib", "implode", "bzip2", "lzma", "sparse", encryption: true tests/archive/mpq.luau
archive pak .pak .sin yes yes variants: "quake", "sin" tests/archive/pak.luau
archive rpm .rpm yes - compressors: "gzip", "bzip2", "xz", "lzma", "zstd" tests/archive/rpm.luau
archive tar .tar yes yes variants: "ustar", "pax", "gnu" tests/archive/tar.luau
archive uu .uu .uue .xxe .b64 yes yes variants: "uu", "xx", "base64" tests/archive/uu.luau
archive vpk .vpk yes yes versions: 1, 2, multipart: true tests/archive/vpk.luau
archive wad .wad yes yes images: true, maps: true, variants: "iwad", "pwad" tests/archive/wad.luau
archive xz .xz .txz .lzma yes - stream: true, filters: "lzma2", "lzma", "delta", "x86", "powerpc", "arm", "armthumb", "sparc", "arm64" tests/archive/xz.luau
archive yenc .yenc .ync yes yes multipart: true tests/archive/yenc.luau
archive z .z .taz .tz yes yes stream: true, bits: 9, 16 tests/archive/z.luau
archive zip .zip .wsz yes yes methods: "store", "deflate", zip64: true tests/archive/zip.luau
archive zoo .zoo yes - methods: "store", "lzw", "lzh" tests/archive/zoo.luau
archive zst .zst .tzst yes - stream: true tests/archive/zst.luau
data cbor .cbor yes yes binary: true, ordered: true, tags: true tests/data/cbor.luau
data csv .csv .tsv yes yes header: true tests/data/csv.luau
data ini .ini .cfg .conf .inf .desktop yes yes ordered: true tests/data/ini.luau
data json .json .jsonl .ndjson .geojson yes yes ordered: true, streaming: true tests/data/json.luau
data msgpack .msgpack .mpk yes yes binary: true, ordered: true tests/data/msgpack.luau
data nbt .nbt .dat .mcstructure .dat_old yes yes binary: true, ordered: true, typed: true tests/data/nbt.luau
data plist .plist yes yes binary: "read", ordered: true tests/data/plist.luau
data snbt .snbt yes yes ordered: true, typed: true tests/data/snbt.luau
data toml .toml yes yes ordered: true, dates: true tests/data/toml.luau
data xml .xml .xsd .xsl .xslt .rss .atom .xhtml yes yes namespaces: true, streaming: true tests/data/xml.luau
data yaml .yaml .yml yes yes ordered: true, multiDocument: true, anchors: true tests/data/yaml.luau
vector svg .svg yes yes rasterize: true, text: false tests/vector/svg.luau
vector tiled .tmx .tmj .tsx .tsj yes yes tilesets: true, infinite: true tests/vector/tiled.luau
layered aseprite .aseprite .ase yes yes layers: true, groups: true, animation: true, depths: 8, 16, 32 tests/layered/aseprite.luau
layered ora .ora yes yes layers: true, groups: true, depths: 8 tests/layered/ora.luau
layered psd .psd .psb yes yes layers: true, groups: true, depths: 1, 8, 16, 32 tests/layered/psd.luau
subtitle ass .ass .ssa yes yes styles: true tests/subtitle/ass.luau
subtitle srt .srt yes yes styles: false tests/subtitle/srt.luau
subtitle vtt .vtt .webvtt yes yes styles: true tests/subtitle/vtt.luau
music 669 .669 yes - render: true, channels: 8, 8 tests/music/669.luau
music ahx .ahx .thx yes - render: true, channels: 4, 4, subsongs: true tests/music/ahx.luau
music far .far yes - render: true, channels: 16, 16 tests/music/far.luau
music hmp .hmp .hmi yes - render: true, hmi: true tests/music/hmp.luau
music hvl .hvl yes - render: true, channels: 4, 16, subsongs: true tests/music/hvl.luau
music it .it yes - render: true, channels: 1, 64, compressedSamples: true tests/music/it.luau
music med .med .mmd0 .mmd1 .mmd2 .mmd3 .omed yes - render: true, channels: 1, 64 tests/music/med.luau
music midi .mid .midi .smf .kar .rmi yes yes formats: 0, 1, 2, render: true, streaming: true, rmid: true tests/music/midi.luau
music mod .mod .m15 .stk .nst yes yes render: true, channels: 1, 32 tests/music/mod.luau
music mtm .mtm yes - render: true, channels: 1, 32 tests/music/mtm.luau
music mus .mus yes - render: true tests/music/mus.luau
music okt .okt .okta yes - render: true, channels: 4, 8 tests/music/okt.luau
music ptm .ptm yes - render: true, channels: 1, 32 tests/music/ptm.luau
music s3m .s3m yes - render: true, channels: 1, 32 tests/music/s3m.luau
music sf2 .sf2 yes - sm24: true, sf3: false tests/music/sf2.luau
music stm .stm yes - render: true, channels: 4, 4 tests/music/stm.luau
music ult .ult yes - render: true, channels: 1, 32 tests/music/ult.luau
music umx .umx yes - render: true, container: true tests/music/umx.luau
music xm .xm yes yes render: true, channels: 1, 64 tests/music/xm.luau
music xmi .xmi .xmidi yes - render: true, songs: true tests/music/xmi.luau
playlist m3u .m3u .m3u8 yes yes hls: true tests/playlist/m3u.luau
playlist pls .pls yes yes tests/playlist/pls.luau
playlist xspf .xspf yes yes tests/playlist/xspf.luau

Codecs (layer 3, shared by formats; not loadable on their own), by domain:

  • audio
    • codecs/audio/Aac: AAC-LC decoder (ISO/IEC 14496-3 subpart 4, ISO/IEC 13818-7): the AudioSpecificConfig (with a program
    • codecs/audio/Ac3: AC-3 (Dolby Digital, ATSC A/52) syncframes: the syncinfo / BSI header, the CRC check, and the
    • codecs/audio/Adpcm: the 4-bit ADPCM family, decode (and encode where it is cheap). New in formats-luau; the IMA and
    • codecs/audio/Alac: Apple Lossless (ALAC) decoder and encoder, the codec inside m4a / mov / caf. A codec (layer 1).
    • codecs/audio/Ape: the Monkey's Audio codec (.ape). A codec (layer 3). Ported from the Monkey's Audio SDK 13.28
    • codecs/audio/ApeTag: APEv1 / APEv2 tags (the tag block of Monkey's Audio, WavPack, Musepack, TTA, OptimFROG and
    • codecs/audio/Flac: FLAC frames without the container: frame header parsing, subframe decoding (constant, verbatim,
    • codecs/audio/Hively: the AHX / HivelyTracker engine behind music/ahx and music/hvl: the loader for both file formats
    • codecs/audio/Mdct: the MDCT / IMDCT of any window length N divisible by 4 (N / 2 coefficients), through an N / 4-point
    • codecs/audio/MidiRender: the tempo map (ticks -> seconds, as python mido computes lengths), the time-ordered event list,
    • codecs/audio/Mpa: MPEG audio layers I / II / III (ISO/IEC 11172-3, 13818-3, MPEG-2.5) without the file around it:
    • codecs/audio/Musepack: Musepack (MPC) stream versions 7 and 8: the stream headers (SV7's 32-bit word-swapped
    • codecs/audio/Opus: the Opus codec (RFC 6716) without its container: TOC / packet framing (Packet), the SILK and CELT
    • codecs/audio/Pcm: PCM plumbing shared by audio formats: raw sample formats, streaming Decoders, encoder input sources.
    • codecs/audio/Qoa: the "Quite OK Audio" codec (QOA): frames of up to 256 slices per channel, each slice a 4-bit scale
    • codecs/audio/Resample: audio sample-rate conversion by band-limited (Kaiser-windowed sinc) interpolation, streaming or
    • codecs/audio/SoundFont: SoundFont 2 banks and the sample synth that plays MIDI through them. A codec (layer 1) shared by
    • codecs/audio/Stream: the streaming Decoder (Types.Decoder: read / seek / position) over a packetised codec, the part
    • codecs/audio/Tracker: the shared tracker engine behind music/mod, music/s3m, music/xm and music/it, and the loaders
    • codecs/audio/Tta: the TTA1 (True Audio) lossless codec. A codec (layer 3). Written from the TTA1 format description
    • codecs/audio/Vorbis: the Vorbis I decoder without its container: identification / comment / setup headers (Setup),
    • codecs/audio/VorbisComment: Vorbis comment fields ("KEY=value", the tag block of Vorbis, Opus and FLAC) <-> Types.Tags.
    • codecs/audio/WavPack: the WavPack 4 / 5 audio codec (the blocks of .wv files, and of WavPack in Matroska). A codec
  • compress
    • codecs/compress/Brotli: Brotli (RFC 7932) decompression. A codec (layer 3): archive/br and font/woff2 build on it. Written
    • codecs/compress/Bzip2: bzip2 decompressor (BWT + MTF + Huffman, the .bz2 stream format of bzip2 0.9.5 / 1.0.x). A codec
    • codecs/compress/Deflate: DEFLATE (RFC 1951) decoder and compressor, with the zlib (RFC 1950) and gzip (RFC 1952) wrappers.
    • codecs/compress/Explode: decompressor for the PKWARE Data Compression Library "implode" format (DCL, 1987: MPQ
    • codecs/compress/Lz4: the LZ4 block format (lz4 doc/lz4_Block_format.md): decode and a greedy hash-chain-free encoder
    • codecs/compress/Lzh: the LHA family of LZSS decoders, used by archive/lha, archive/arj and archive/zoo:
    • codecs/compress/Lzma: LZMA and LZMA2 decoders, the .lzma ("LZMA alone") wrapper and the .xz container. A codec (layer 3):
    • codecs/compress/Lzw: LZW decoder and encoder in the two variants file formats use. A codec (layer 1): image/gif and
    • codecs/compress/Lzx: the LZX decoder as Microsoft Cabinet folders use it: windows of 2^15 .. 2^21 bytes,
    • codecs/compress/PackBits: the Apple PackBits run-length code (TIFF compression 32773, PSD / PSB RLE channels, IFF
    • codecs/compress/Quantum: the Quantum decoder (David Stafford's LZ77 with an adaptive arithmetic coder) as Microsoft
    • codecs/compress/UnixCompress: the LZW of Unix compress (.Z files: magic 1F 9D, a flags byte with the maximum code
    • codecs/compress/Xxh32: XXH32 of a buffer range (any seed), for the LZ4 frame format's header, block and content
    • codecs/compress/Zstd: Zstandard decompression (RFC 8878). A codec (layer 3): archive/zst and anything else carrying zstd
  • entropy
    • codecs/entropy/Huffman: canonical Huffman codes (RFC 1951 3.2.2 / JPEG Annex C order) for decoders and encoders.
    • codecs/entropy/RangeCoder: the RFC 6716 range coder (libopus celt/entdec.c + entenc.c, BSD: licenses/libopus-BSD.txt):
  • font
    • codecs/font/Bitmap: the standard Font value for bitmap fonts (BDF, PCF, PSF, Windows FON / FNT): a Types.BitmapStrike
    • codecs/font/Cff: Compact Font Format (Adobe TN #5176) and Type 2 charstrings (TN #5177): the outlines of OpenType fonts
    • codecs/font/GlyphNames: PostScript glyph names -> Unicode for fonts that name their glyphs (Type 1, CFF without a
    • codecs/font/TrueType: the sfnt font container (TrueType .ttf, OpenType .otf with CFF outlines, collections .ttc) parsed
  • image
    • codecs/image/Bcn: the BCn block-compressed texture codecs, shared by the texture formats (DDS, KTX, VTF, BLP, ...):
    • codecs/image/Blend: layer compositing on rgba8 buffers (straight alpha): source-over with the separable and non-separable
    • codecs/image/Dct: the 8x8 DCTs JPEG, Motion-JPEG and MPEG-1 share (native; never throws).
    • codecs/image/Etc: the Ericsson / Khronos block texture codecs, decode only: ETC1, ETC2 RGB (with the T, H and planar
    • codecs/image/Half: IEEE 754 binary16 ("half") <-> number, for the float texel formats (DDS / KTX R16F..., BC6H,
    • codecs/image/Jpeg: the JPEG codec (ITU T.81) on byte ranges: image/jpeg is a thin format over it, and the Motion-JPEG
    • codecs/image/Pixels: row loops between packed pixel layouts and rgba8 (native), shared by the bitmap formats (BMP,
    • codecs/image/Quantize: palette quantization of rgba8 pixels. A codec (layer 1): image/gif (and later any palette
    • codecs/image/Raster: an antialiased scanline rasterizer for paths of lines, quadratic and cubic Béziers, under an affine
    • codecs/image/Texel: uncompressed GPU texel formats -> the standard pixel formats, shared by the texture containers
    • codecs/image/Texture: one entry point over the texture pixel codecs for the texture containers (DDS, KTX, VTF, ...):
    • codecs/image/Vp8: the VP8 video codec (RFC 6386), decode only. A codec (layer 1): image/webp uses it for lossy frames, the
    • codecs/image/Vp8L: WebP lossless (VP8L, "WebP Lossless Bitstream Specification", RFC 9649 section 3). A codec (layer 1):
    • codecs/image/Yuv: planar 4:2:0 Y'CbCr <-> rgba8 for the video codecs and writers (native; never throws). BT.601 or
  • model
    • codecs/model/Draco: Google Draco geometry decompression (.drc; glTF KHR_draco_mesh_compression; Roblox mesh v6 / v7).
    • codecs/model/Mat4: 4x4 matrix and quaternion helpers for the model formats: column-major flat arrays of 16
    • codecs/model/MeshFlatten: a Scene to one world-space mesh, for the writers of mesh-only formats (STL, PLY, OFF). Walks
    • codecs/model/Minecraft: what Minecraft's voxel formats share (model/schematic, model/mca). New code.
    • codecs/model/Polygon: 2D polygons with holes to triangles, for formats that store regions as outlines (Doom map
    • codecs/model/Rbx: the Roblox instance tree every Roblox file format maps to (model/rbxm binary rbxm / rbxl,
    • codecs/model/Rig: the Scene mapping shared by game model formats (MD2 / MD3 / MDL / MD5 / SMD / ...), so each
    • codecs/model/Sampler: evaluates Scene animation channels at any time (STEP, LINEAR with quaternion slerp for
    • codecs/model/Vrml: the VRML97 / X3D scene-graph engine shared by model/vrml (.wrl) and model/x3d (.x3d XML,
  • text
    • codecs/text/Json: JSON (RFC 8259 / ECMA-404) parse and serialize, the engine data/json, glTF, TMJ, ... use. New code.
    • codecs/text/Nbt: Minecraft's Named Binary Tag format and its text form SNBT, the engine data/nbt, data/snbt,
    • codecs/text/Text: text decoding helpers for the text formats: a UTF-8 BOM is stripped, text that is not valid UTF-8 is
    • codecs/text/Url: RFC 3986 reference resolution (section 5.2), the classification of a playlist / manifest location (URL,
    • codecs/text/Xml: XML 1.0 parse (DOM and pull events) and serialize, the engine data/xml, SVG, DAE, 3MF, TMX, plist, ...
  • video
    • codecs/video/Dsp: the 8x8 IDCT (bit-exact with ffmpeg -idct int) and half-pel motion compensation of MPEG codecs.
    • codecs/video/H263: an H.263 / H.263+ and Sorenson Spark (FLV1) video decoder, bit-exact with ffmpeg -idct int.
    • codecs/video/H264: an H.264 / AVC (ITU-T H.264 | ISO/IEC 14496-10) video decoder in pure Luau. A codec (layer 1): the
    • codecs/video/Legacy: FLI / FLC, Cinepak, Microsoft Video 1, QuickTime RLE / SMC and Smacker video decoders.
    • codecs/video/Mpeg1: the MPEG-1 video decoder (ISO/IEC 11172-2), which is codecs/video/Mpeg2 (an MPEG-2 decoder
    • codecs/video/Mpeg2: an MPEG-1 / MPEG-2 video decoder (ISO/IEC 11172-2, ISO/IEC 13818-2 Main profile).
    • codecs/video/Theora: a Theora video decoder (the Theora I specification, Xiph.Org), for Ogg (video/ogv) and Matroska
    • codecs/video/Video: the video codec registry and the generic VideoDecoder. New in formats-luau.