<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 8.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCVImageFormat_GetChromaSiting(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCVImageFormat_GetChromaSiting"
  },
  "title" : "vImageCVImageFormat_GetChromaSiting(_:)"
}
-->

# vImageCVImageFormat_GetChromaSiting(_:)

Returns the chrominance siting of a Core Video image format.

```
func vImageCVImageFormat_GetChromaSiting(_ format: vImageConstCVImageFormat) -> Unmanaged<CFString>!
```

## Parameters

`format`

The Core Video image format to query.

## Return Value

A <doc://com.apple.documentation/documentation/CoreFoundation/CFString> that describes the positioning of the chrominance samples.

## Discussion

4:2:0 and 4:2:0 YpCbCr image formats that have subsampled chrominance require the position of the chrominance samples relative to the luminance samples.

The functions that create Core Video image formats, such as [`vImageCVImageFormat_CreateWithCVPixelBuffer(_:)`](/documentation/Accelerate/vImageCVImageFormat_CreateWithCVPixelBuffer(_:)), return a [`vImageCVImageFormat`](/documentation/Accelerate/vImageCVImageFormat). The following code shows how you create a [`vImageConstCVImageFormat`](/documentation/Accelerate/vImageConstCVImageFormat) representation of a [`vImageCVImageFormat`](/documentation/Accelerate/vImageCVImageFormat) instance to pass to [`vImageCVImageFormat_GetChromaSiting(_:)`](/documentation/Accelerate/vImageCVImageFormat_GetChromaSiting(_:)):

```swift
let chromaSiting = withUnsafeBytes(of: cvImageFormat) { bytes in
    let format = bytes.assumingMemoryBound(
        to: vImageConstCVImageFormat.self).first!
    
    return vImageCVImageFormat_GetChromaSiting(format)
}
```

## See Also

[`chromaSiting`](/documentation/Accelerate/vImageCVImageFormat/chromaSiting-swift.property)

The chrominance siting of the Core Video image format.



---

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)