Groups, materials (texture uri), joints -> nodes + skin + one animation, version 4 sub-versioned blocks (comments, vertex extras with up to four bones, joint colours, model extras). Writer: groups per placed primitive, the first skin plus animated nodes as joints (rigid meshes bound to them), weights in percent. Tested against assimp and through glTF skin models.
15 KiB
15 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 | bmp | .bmp .dib | yes | yes | alpha: true, depths: 1, 2, 4, 8, 16, 24, 32, rle: true | tests/image/bmp.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 | ico | .ico .cur | yes | yes | alpha: true, frames: true, depths: 1, 4, 8, 16, 24, 32 | tests/image/ico.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 | 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 | 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 | webp | .webp | yes | yes | animation: true, alpha: true, lossy: true, lossless: true, depths: 8 | tests/image/webp.luau |
| audio | aac | .aac .adts | yes | - | codecs: "aac", streaming: true | tests/audio/aac.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 | au | .au .snd | yes | yes | streaming: true, depths: 8, 16, 24, 32, float: true, lossy: false | tests/audio/au.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 | opus | .opus | yes | yes | streaming: true, seek: true, lossy: true, channels: 255, rates: 48000, encodeModes: "celt", encodeChannels: 2 | tests/audio/opus.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 |
| video | avi | .avi | yes | yes | streaming: true, video: "mjpeg", "mpeg1", "rawvideo", audio: true, odml: true | tests/video/avi.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", "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", "h264", audio: true, fragments: true | tests/video/mp4.luau |
| video | mpegps | .mpg .mpeg .vob .m1v .mpv .dat | yes | - | streaming: true, video: "mpeg1", audio: true | tests/video/mpegps.luau |
| video | mpegts | .ts .m2ts .mts .tsv | yes | - | streaming: true, video: "mpeg1", "h264", audio: true | tests/video/mpegts.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 | 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 | tests/model/gltf.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 | 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 |
| cad | step | .step .stp .p21 | yes | yes | complexEntities: true, sections: true, brep: "plugin", tessellate: "plugin" | tests/cad/step.luau |
| font | bmfont | .fnt | yes | yes | bitmap: true, variants: "text", "xml", "binary" | tests/font/bmfont.luau |
| font | ttf | .ttf .otf .ttc .otc | yes | - | outlines: "truetype", "cff", collection: true, kerning: true | tests/font/ttf.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 | br | .br | yes | - | stream: true | tests/archive/br.luau |
| archive | bz2 | .bz2 .tbz2 .tbz | yes | - | stream: true | tests/archive/bz2.luau |
| archive | gzip | .gz .tgz .gzip | yes | yes | stream: true | tests/archive/gzip.luau |
| archive | tar | .tar | yes | yes | variants: "ustar", "pax", "gnu" | tests/archive/tar.luau |
| archive | xz | .xz .txz .lzma | yes | - | stream: true, filters: "lzma2", "lzma", "delta", "x86", "powerpc", "arm", "armthumb", "sparc", "arm64" | tests/archive/xz.luau |
| archive | zip | .zip .wsz | yes | yes | methods: "store", "deflate", zip64: true | tests/archive/zip.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 | plist | .plist | yes | yes | binary: "read", ordered: true | tests/data/plist.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 | 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 | it | .it | yes | - | render: true, channels: 1, 64, compressedSamples: true | tests/music/it.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 | 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 | xm | .xm | yes | yes | render: true, channels: 1, 64 | tests/music/xm.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/Alac: Apple Lossless (ALAC) decoder and encoder, the codec inside m4a / mov / caf. A codec (layer 1).
- codecs/audio/Flac: FLAC frames without the container: frame header parsing, subframe decoding (constant, verbatim,
- codecs/audio/Mdct: the MDCT / IMDCT of any window length N divisible by 4 (N / 2 coefficients), through an N / 4-point
- 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/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/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. The four loaders read
- 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.
- 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/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/PackBits: the Apple PackBits run-length code (TIFF compression 32773, PSD / PSB RLE channels, IFF
- 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/Cff: Compact Font Format (Adobe TN #5176) and Type 2 charstrings (TN #5177): the outlines of OpenType fonts
- codecs/font/TrueType: the sfnt font container (TrueType .ttf, OpenType .otf with CFF outlines, collections .ttc) parsed
- image
- 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/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/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/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
- text
- codecs/text/Json: JSON (RFC 8259 / ECMA-404) parse and serialize, the engine data/json, glTF, TMJ, ... use. New code.
- 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/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/Mpeg1: an MPEG-1 video decoder (ISO/IEC 11172-2) for the MPEG-TS / MPEG-PS video formats. Absorbed from
- codecs/video/Video: the video codec registry and the generic VideoDecoder. New in formats-luau.