@loaders.gl/textures
Version:
Framework-independent loaders for compressed and super compressed (basis) textures
21 lines • 1.11 kB
TypeScript
import type { Texture } from '@loaders.gl/schema';
/** Application-facing metadata extracted from Radiance HDR header fields. */
export type RadianceHDRMetadata = {
/** Per-channel color correction factors from the `COLORCORR` header field. */
colorCorrection?: [number, number, number];
/** Scene exposure multiplier from the `EXPOSURE` header field. */
exposure?: number;
/** Display gamma hint from the `GAMMA` header field. */
gamma?: number;
/** Pixel aspect ratio from the `PIXASPECT` header field. */
pixelAspectRatio?: number;
/** Chromaticity primaries and white point from the `PRIMARIES` header field. */
primaries?: [number, number, number, number, number, number, number, number];
/** Producer software identifier from the `SOFTWARE` header field. */
software?: string;
/** View specification string from the `VIEW` header field. */
view?: string;
};
export declare function isHDR(arrayBuffer: ArrayBuffer): boolean;
export declare function parseHDR(arrayBuffer: ArrayBuffer): Texture<RadianceHDRMetadata>;
//# sourceMappingURL=parse-hdr.d.ts.map