---
title: "vImageCVImageFormat_SetChromaSiting(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagecvimageformat_setchromasiting(_:_:)"
---

# vImageCVImageFormat_SetChromaSiting(_:_:)

Sets the chrominance siting of a Core Video image format.

## Declaration

```swift
func vImageCVImageFormat_SetChromaSiting(_ format: vImageCVImageFormat, _ siting: CFString!) -> vImage_Error
```

## Parameters

- `format`: The Core Video image format to update.
- `siting`: The new siting information for the format.

## Return Value

Return Value kvImageNoError; otherwise, one of the error codes in Data Types and Constants.

## Discussion

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.

## See Also

### Related Documentation

- [chromaSiting](accelerate/vimagecvimageformat/chromasiting-swift.property.md)

### Querying and setting the chrominance siting

- [vImageCVImageFormat_GetChromaSiting(_:)](accelerate/vimagecvimageformat_getchromasiting(_:).md)
