ultrahdr

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ultrahdr reconstructs linear HDR from JPEG base images and gain maps. It reads Adobe XMP and ISO 21496-1 metadata in MPF containers. Decoding is asset-time work; no intermediate HDR file or runtime JPEG decoding is needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BakeEnvironment

func BakeEnvironment(data []byte, width, samples int) (*image.NRGBA, error)

BakeEnvironment decodes a 2:1 Ultra HDR JPG into an RGBE lighting atlas.

func ImportEnvironment

func ImportEnvironment(data []byte, width, samples int) (graphics.EnvironmentImages, error)

ImportEnvironment retains the original background and filters lighting.

Types

type Panorama

type Panorama struct {
	// contains filtered or unexported fields
}

Panorama owns linear sRGB pixels. Decode restores the full HDR rendition, independently of the output display's headroom; tone mapping happens later.

func Decode

func Decode(data []byte) (*Panorama, error)

func (*Panorama) At

func (p *Panorama) At(x, y int) mgl32.Vec3

func (*Panorama) Radiance

func (p *Panorama) Radiance(n mgl32.Vec3) mgl32.Vec3

func (*Panorama) Size

func (p *Panorama) Size() (int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL