UNPKG

@playcanvas/splat-transform

Version:

Library and CLI tool for 3D Gaussian splat format conversion and transformation

22 lines (21 loc) 728 B
declare class WebPCodec { /** * URL to the webp.wasm file. Set this before any SOG read/write operations * in browser environments where the default path resolution doesn't work. * * @example * import { WebPCodec } from '@playcanvas/splat-transform'; * import wasmUrl from '@playcanvas/splat-transform/lib/webp.wasm?url'; * WebPCodec.wasmUrl = wasmUrl; */ static wasmUrl: string | null; Module: any; static create(): Promise<WebPCodec>; encodeLosslessRGBA(rgba: Uint8Array, width: number, height: number, stride?: number): any; decodeRGBA(webp: Uint8Array): { rgba: Uint8Array; width: number; height: number; }; } export { WebPCodec };