Skip to main content

Crate ph_color_bake

Crate ph_color_bake 

Source
Expand description

Host-only baker for ph-color matrices and LUTs.

All inversion, adaptation, and f64 math live here. The target crate never depends on this package.

Modules§

emit
Emit Rust const source matching ph-color constructors.
golden
Host golden-vector emission against independent host reference arithmetic.
lut
Transfer-function LUT baking.
matrix
RGB↔XYZ and RGB↔RGB matrix derivation on the host.
oklab
Ottosson Oklab matrices and cube-root LUT for host baking.
srgb
IEC 61966-2-1 sRGB transfer functions for host baking.

Structs§

Primaries
RGB primaries plus white point.
Xy
CIE xy in ordinary units (not millionths).

Enums§

BakeError
Host bake failure.