---
title: "vImageCVImageFormat_GetChannelNames(_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagecvimageformat_getchannelnames(_:)"
---

# vImageCVImageFormat_GetChannelNames(_:)

Returns the names of the channels of a Core Video image format.

## Declaration

```swift
func vImageCVImageFormat_GetChannelNames(_ format: vImageConstCVImageFormat) -> UnsafePointer<vImageBufferTypeCode>!
```

## Parameters

- `format`: The Core Video image format to query.

## Return Value

Return Value A pointer to an array that contains the vImageBufferTypeCode elements that correspond to the names of the channels in the image.

## Discussion

Discussion The functions that create Core Video image formats, such as vImageCVImageFormat_CreateWithCVPixelBuffer(_:), return a vImageCVImageFormat. The following code shows how you create a vImageConstCVImageFormat representation of a vImageCVImageFormat instance to pass to vImageCVImageFormat_GetChannelNames(_:): let channelNames = withUnsafeBytes(of: cvImageFormat) { bytes in     let format = bytes.assumingMemoryBound(         to: vImageConstCVImageFormat.self).first!          return vImageCVImageFormat_GetChannelNames(format) }

## See Also

### Related Documentation

- [channels](accelerate/vimagecvimageformat/channels.md)

### Querying and setting channel information

- [vImageCVImageFormat_GetChannelCount(_:)](accelerate/vimagecvimageformat_getchannelcount(_:).md)
- [vImageCVImageFormat_GetChannelDescription(_:_:)](accelerate/vimagecvimageformat_getchanneldescription(_:_:).md)
- [vImageCVImageFormat_CopyChannelDescription(_:_:_:)](accelerate/vimagecvimageformat_copychanneldescription(_:_:_:).md)
- [vImageChannelDescription](accelerate/vimagechanneldescription.md)
