<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositing/canConformColorOfSourceFrames",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVVideoCompositing(py)canConformColorOfSourceFrames"
  },
  "title" : "canConformColorOfSourceFrames"
}
-->

# canConformColorOfSourceFrames

A Boolean value that indicates whether the compositor conforms the color space of source frames to the composition color space.

```
optional var canConformColorOfSourceFrames: Bool { get }
```

## Discussion

A custom compositor indicates its processing requirements through the [`sourcePixelBufferAttributes`](/documentation/AVFoundation/AVVideoCompositing/sourcePixelBufferAttributes) and [`supportsWideColorSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsWideColorSourceFrames) properties. By default, the composition engine prepares source frames by converting them to meet the compositor’s configuration.

When this property value is true, the engine doesn’t convert source pixel buffers that meet the compositor’s processing requirements. However, it does convert buffers that don’t meet the processing requirements, which includes the following cases:

- The values of [`supportsWideColorSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsWideColorSourceFrames) and [`supportsHDRSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsHDRSourceFrames) are <doc://com.apple.documentation/documentation/Swift/false>, but the source buffers contain wide color. In this case, the engine converts the color space of source pixel buffers to BT.709 color space. Note that when [`supportsHDRSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsHDRSourceFrames) is <doc://com.apple.documentation/documentation/Swift/true>, the engine also assumes [`supportsWideColorSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsWideColorSourceFrames) is <doc://com.apple.documentation/documentation/Swift/true>.
- The value of [`supportsHDRSourceFrames`](/documentation/AVFoundation/AVVideoCompositing/supportsHDRSourceFrames) is <doc://com.apple.documentation/documentation/Swift/false> and source buffers contain HDR color. In this case, the engine converts the color space of source pixel buffers to the composition color space.
- The pixel format of the source buffers isn’t specified in [`sourcePixelBufferAttributes`](/documentation/AVFoundation/AVVideoCompositing/sourcePixelBufferAttributes). In this case, the engine converts the pixel format to a supported format and converts the color space to the composition color space.

---

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)