<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCVImageFormat/channels",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So22vImageCVImageFormatRefa10AccelerateE8channelsSayAC01vA0O10BufferTypeOGvp"
  },
  "title" : "channels"
}
-->

# channels

The channels of the Core Video image format.

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

## Discussion

For example, the following code prints the channels in a <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_420YpCbCr8Planar> Core Video image format:

```swift
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

[`func vImageCVImageFormat_GetChannelNames(vImageConstCVImageFormat) -> UnsafePointer<vImageBufferTypeCode>!`](/documentation/Accelerate/vImageCVImageFormat_GetChannelNames(_:))

Returns the names of the channels of a 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)