---
title: ColorSyncProfileCopyHeadroomAdaptiveGainCurveMetadata
framework: colorsync
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: colorsync/colorsyncprofilecopyheadroomadaptivegaincurvemetadata
---

# ColorSyncProfileCopyHeadroomAdaptiveGainCurveMetadata

Returns a copy of the raw Headroom Adaptive Gain Curve data embedded in a profile.

## Declaration

```occ
extern CFDataRefColorSyncProfileCopyHeadroomAdaptiveGainCurveMetadata(ColorSyncProfileRef profile);
```

## Parameters

- `profile`: The profile to read the HAGC tag from.

## Mentioned in

Authoring Headroom Adaptive Gain Curve metadata

## Return Value

Return Value A copy of the raw HAGC data that the caller must release with CFRelease, or NULL if the profile contains no HAGC tag.

## See Also

### Reading a curve (C API)

- [ColorSyncProfileCopyHeadroomAdaptiveGainCurveInfoDictionary](colorsync/colorsyncprofilecopyheadroomadaptivegaincurveinfodictionary.md)
