---
title: channels
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/vimagecvimageformat/channels
---

# channels

The channels of the Core Video image format.

## Declaration

```swift
var channels: [vImage.BufferType] { get }
```

## Discussion

Discussion For example, the following code prints the channels in a kCVPixelFormatType_420YpCbCr8Planar Core Video image format: let cvImageFormat = vImageCVImageFormat.make(     format: .format420YpCbCr8Planar,     matrix: kvImage_ARGBToYpCbCrMatrix_ITU_R_709_2.pointee,     chromaSiting: .center,     colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!,     alphaIsOpaqueHint: true)!

// Prints "channels [Accelerate.vImage.BufferType.luminance, //                   Accelerate.vImage.BufferType.Cb, //                   Accelerate.vImage.BufferType.Cr]". print("channels \(cvImageFormat.channels)")

## See Also

### Related Documentation

- [vImageCVImageFormat_GetChannelNames(_:)](accelerate/vimagecvimageformat_getchannelnames(_:).md)

### Inspecting a Core Video image format’s properties

- [channelCount](accelerate/vimagecvimageformat/channelcount.md)
- [channelDescription(bufferType:)](accelerate/vimagecvimageformat/channeldescription(buffertype:).md)
- [formatCode](accelerate/vimagecvimageformat/formatcode.md)
- [chromaSiting](accelerate/vimagecvimageformat/chromasiting-swift.property.md)
- [colorSpace](accelerate/vimagecvimageformat/colorspace.md)
- [alphaIsOpaqueHint](accelerate/vimagecvimageformat/alphaisopaquehint.md)
