<!--
{
  "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/channelDescription(bufferType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So22vImageCVImageFormatRefa10AccelerateE18channelDescription10bufferTypeSo01va7ChannelG0VSgAC01vA0O06BufferI0O_tF"
  },
  "title" : "channelDescription(bufferType:)"
}
-->

# channelDescription(bufferType:)

Returns the range and clamp limits for a specified channel in a Core Video image format.

```
func channelDescription(bufferType: vImage.BufferType) -> vImageChannelDescription?
```

## Parameters

`bufferType`

The source buffer type.

## Return Value

A [`vImageChannelDescription`](/documentation/Accelerate/vImageChannelDescription) structure that describes the range and clamp limits for the specified channel.

## Discussion

Use this function to return the [`vImageChannelDescription`](/documentation/Accelerate/vImageChannelDescription) description for a specified channel in a Core Video format.

For example, the following code prints the description of each channel 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:
//    luminance   vImageChannelDescription(min: 0.0, zero: 16.0, full: 235.0, max: 255.0)
//    Cb          vImageChannelDescription(min: 0.0, zero: 128.0, full: 240.0, max: 255.0)
//    Cr          vImageChannelDescription(min: 0.0, zero: 128.0, full: 240.0, max: 255.0)
for channel in cvImageFormat.channels {
    let desc = cvImageFormat.channelDescription(bufferType: channel)!
    print("\(channel) \t\t \(desc)")
}
```

## See Also

[`func vImageCVImageFormat_CopyChannelDescription(vImageCVImageFormat, UnsafePointer<vImageChannelDescription>, vImageBufferTypeCode) -> vImage_Error`](/documentation/Accelerate/vImageCVImageFormat_CopyChannelDescription(_:_:_:))

Copies the channel description for a particular channel type to an 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)