Skip to main content

Interface: EncodingResultFloat

Float encoding result (no quantization). For testing and incremental encode/decode. Decode does not need to know the tone mapper: the gain map stores the ratio (HDR_linear / SDR_linear) per pixel, so decode = linearize(SDR) * gain.

Adobe/Ultra HDR spec requires SDR base to be sRGB (display-ready).

Properties​

gainMapFloat​

gainMapFloat: Float32Array

Gain map as [0, 1] (post-gamma encoded, same as gainMap/255), RGBA


height​

height: number


metadata​

metadata: GainMapMetadata


sdrFloat​

sdrFloat: Float32Array

SDR as sRGB in [0, 1], RGBA (spec: stored base image is sRGB)


width​

width: number