<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncProfile/adding(headroomAdaptiveGainCurveMetadata:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "s:So19ColorSyncProfileRefa0aB0E6adding33headroomAdaptiveGainCurveMetadata7optionsABSg10Foundation4DataV_AbCE08HeadroomghI7OptionsVtF"
  },
  "title" : "adding(headroomAdaptiveGainCurveMetadata:options:)"
}
-->

# adding(headroomAdaptiveGainCurveMetadata:options:)

Returns a copy of this profile with raw Headroom Adaptive Gain Curve data
embedded as an HAGC tag.

```
func adding(headroomAdaptiveGainCurveMetadata: Data, options: ColorSyncProfile.HeadroomAdaptiveGainCurveOptions = .init()) -> ColorSyncProfile?
```

## Parameters

`headroomAdaptiveGainCurveMetadata`

The raw HAGC payload to embed.

`options`

Options that configure embedding. Reserved for future use.

## 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

Use this to move an HAGC between profiles without interpreting it — for
example, to carry the HAGC payload read from one profile into
another, or one shared with a video stream (SMPTE ST 2094-50 payload).
The original profile is unchanged.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)