<!--
{
  "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/ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@F@ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata"
  },
  "title" : "ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata"
}
-->

# ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata

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

```
extern ColorSyncProfileRefColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata(ColorSyncProfileRef profile, CFDataRef data, CFDictionaryRef options);
```

## Parameters

`profile`

A profile whose CICP tag indicates a PQ, HLG, or linear transfer
function. (Use linear for extended-range data.) Passing an SDR profile
returns `NULL`.

`data`

The raw Headroom Adaptive Gain Curve data to embed. Must be non-`NULL`.

`options`

Reserved for future use. Pass `NULL`.

## Return Value

A new profile that the caller must release with `CFRelease`, or
`NULL` on failure.

---

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)