Native Calibrated Colour Black Point Compensation

Version 2.1206.2 extends UseBlackPtComp state to the native CalGray, CalRGB and Lab conversion routes, which do not use the ICC transform engine

Declared black point and conversion

The colour space's declared BlackPoint is chromatically adapted from its native WhitePoint into PCS D50, where its luminance supplies the compensation scale; the declared black point takes the place of profile-based black estimation for these calibrated spaces

The mapping uses one luminance-based scalar and a neutral white-preserving offset, with black luminance bounded by L*=50; it does not independently stretch the three declared XYZ black-point components

Forward display conversion applies the equivalent mapping after white adaptation to D65, whilst CalGray and CalRGB destinations apply the inverse map in native XYZ before inverse gamma and component encoding

Raw XYZ values are retained until final component/display encoding; absolute-colorimetric intent bypasses compensation, and zero black points add no forward compensation

Actual native consumers

The shared colour-space routes cover paths, images, Forms, shading and Indexed base spaces; supported calibrated transparency groups also receive inverse compensation

Luminosity masks preserve calibrated group components and evaluate their physical luminance, allowing the destination conversion to retain its specified black level

CalGray destination encoding now adapts D65 XYZ back to the declared native white before extracting luminance, including when compensation is disabled

The luminance coefficient is cached in the admitted colour-space object, uses bounded fixed-size arithmetic and does not introduce additional profile loading or unbounded allocation

Scope

Native rendering qualifies actual neutral black/white, zero-black, non-D50 white, nonneutral black-point luminance, dark-level image/shading and calibrated destination cases

ICCBased conversions keep their separate CMM behaviour, including the unfinished forced-OFF boundary for some ICC v4 perceptual and saturation transforms

DeviceRGB-to-DeviceCMYK black generation and undercolour removal remain separate work; unrestricted colour-profile compatibility and additional platform qualification are not implied

See Native Linux Cairo Renderer