import type { SplatClip, SplatClipLoadOptions } from './splat-clip'; /** * A decoded `.asog` clip: a {@link SplatClip} plus what only this format has. * * The clip is in the file's own frame: TRiGS/COLMAP orientation, **y down**. * A `SplatClipMesh` does not reorient it; turn the mesh 180° about X * (`mesh.rotation.x = Math.PI`, as VLAM orients SOG and PLY captures) to * stand it up. * * @experimental */ export interface AsogClip extends SplatClip { readonly format: 'asog'; /** Clips sharing the file's timeline (each splat belongs to one). */ readonly clipCount: number; /** * The file's soundtrack (`manifest.audio`), or null. VLAM does not play * it: an app that wants sound decodes `bytes` (e.g. through * `AudioContext.decodeAudioData`) and keeps it at `mesh.time`. */ readonly audio: { readonly mime: string; readonly bytes: Uint8Array; } | null; /** `manifest.source.format` (what the clip was encoded from), when given. */ readonly sourceFormat: string | null; } /** * Options of {@link loadAsogClip}: progress counts bytes fetched and, as * they arrive, the file's streams decoded. * * @experimental */ export interface LoadAsogClipOptions extends SplatClipLoadOptions { /** * The file's bytes, already fetched (a dropped file). They are transferred * to the clip's worker, which detaches the buffer: pass a copy * (`bytes.slice(0)`) of one you keep. */ bytes?: ArrayBuffer; }