adding(headroomAdaptiveGainCurve:)
Returns a copy of this profile with raw Headroom Adaptive Gain Curve data embedded as an HAGC tag.
Declaration
func adding(headroomAdaptiveGainCurve: ColorSyncProfile.HeadroomAdaptiveGainCurve) -> ColorSyncProfile?Parameters
- headroomAdaptiveGainCurve:
The HAGC info dictionary to create the metadata embedded in the profile.
Return Value
A new profile carrying the HAGC tag, or nil if this profile’s transfer function isn’t PQ, HLG, or linear, or if embedding fails.
Discussion
The curve is validated when you construct ColorSyncProfile.HeadroomAdaptiveGainCurve, so this method only embeds it. The original profile is unchanged.