UNPKG

@thi.ng/pixel-io-pfm

Version:

Portable FloatMap image format support for @thi.ng/pixel

28 lines 1.01 kB
export declare const PFMError: { new (msg?: string | undefined): { origMessage: string; name: string; message: string; stack?: string; cause?: unknown; }; captureStackTrace(targetObject: object, constructorOpt?: Function): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; /** * Parses given byte array as PFM image and returns it as thi.ng/pixel * [`FloatBuffer`](https://docs.thi.ng/umbrella/pixel/classes/FloatBuffer.html). * * @remarks * If `linearRGB` is true (default), the original pixel values are interpreted * as linear RGB and will be converted to sRGB in the result image. If false, no * conversion occurs. * * Format reference: https://pauldebevec.com/Research/HDR/PFM/ * * @param buf * @param linearRGB */ export declare const readPFM: (buf: Uint8Array, linearRGB?: boolean) => import("@thi.ng/pixel/float").FloatBuffer; //# sourceMappingURL=read.d.ts.map