UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

26 lines (25 loc) 1.17 kB
import type { DataCursor } from "./exrLoader.core.js"; import { type IEXRDecoder, type IEXRHeader } from "./exrLoader.interfaces.js"; import { EXROutputType } from "./exrLoader.configuration.js"; /** * Inspired by https://github.com/sciecode/three.js/blob/dev/examples/jsm/loaders/EXRLoader.js * Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita * implementation. */ /** * Create a decoder for the exr file * @param header header of the exr file * @param dataView dataview of the exr file * @param offset current offset * @param outputType expected output type (float or half float) * @returns a promise that resolves with the decoder */ export declare function CreateDecoderAsync(header: IEXRHeader, dataView: DataView, offset: DataCursor, outputType: EXROutputType): Promise<IEXRDecoder>; /** * Scan the data of the exr file * @param decoder decoder to use * @param header header of the exr file * @param dataView dataview of the exr file * @param offset current offset */ export declare function ScanData(decoder: IEXRDecoder, header: IEXRHeader, dataView: DataView, offset: DataCursor): void;