• Parse a Radiance RGBE file into a linear-space Float32 RGBA buffer.

    Parameters

    • arrayBuffer: ArrayBuffer

      Raw .hdr file bytes (e.g. from fetch().arrayBuffer()).

    Returns SDKResult<HDRImage>

    On success, { ok: true, value: { data, width, height } }. On parse failure, { ok: false } with a message describing the malformed header / scanline.