Decoder options; see SpzContainerDecoderOptions. The default
{} lets the browser bundler resolve the sibling wasm and culls stray splats.
ReadonlybackendThe backend this instance reports — always 'cpu-wasm' (in-process wasm decode).
Quantize the decoded cloud and yield it as the container's single tile.
The DecodedModel returned by open for these bytes.
The same .spz bytes passed to open (re-decoded only if
the cached cloud is absent, e.g. decodeTiles without a prior open).
Optionalopts: DecodeOptionsOptional DecodeOptions: signal to abort (checked before decode
and before quantize), and onTile(tile, 0) invoked as the tile finishes.
An async iterable yielding exactly one DecodedSplatTile.
The provided signal's abort reason if aborted before the tile is
produced; also rejects on wasm init failure or invalid SPZ bytes (see open).
Release the cached float cloud (the shared wasm singleton stays warm).
Decode the .spz file and report the quantized splat model shape.
The raw .spz file bytes (any SPZ version; gzip framing is handled).
The DecodedModel: profile: 'splat', splat meta with
fractionalBits: 12 and shDegree: min(3, cloud.shDegree), and tileCount: 1.
NOT the cheap header parse of the general contract — SPZ has no header, so the whole file is decoded here and the float cloud cached for decodeTiles (which releases it).
If the wasm fails to initialize (see WasmHostInit), or if bytes
are not a valid/recognized SPZ stream — the wasm decode rejects.
Adapts a standalone Niantic SPZ file (any version v1–v4) to the SDK's quantized streaming
Decodercontract, so BVC-style splat layers can render a.spzcapture through the sameSplatRendererpath as any other splat container.Remarks
Composes the float SpzDecoder (shared lazily-initialized wasm) with quantizeSpzCloud. SPZ has no cheap header: open decodes the whole file and caches the float cloud, which decodeTiles then quantizes into a single
DecodedSplatTile(alwaystileCount: 1) and releases. CallingdecodeTileswithout a prioropenre-decodes the bytes.Example