<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/1399056-vimage-buffer-type-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "vImage Buffer Type Codes"
}
-->

# vImage Buffer Type Codes

Constants that specify the contents of vImage buffers.

## Topics

### Type

[`typealias vImageBufferTypeCode`](/documentation/Accelerate/vImageBufferTypeCode)

Type codes, such as chrominance or luminance, for the contents of a vImage buffer.

### Constants

[`var kvImageBufferTypeCode_Alpha: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Alpha)

The buffer contains the alpha channel.

[`var kvImageBufferTypeCode_CGFormat: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CGFormat)

The buffer contains data describable as a vImage Core Graphics image format as a single buffer.

[`var kvImageBufferTypeCode_CMYK_Black: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CMYK_Black)

If the image has a CMYK color model, the buffer contains the black channel.

[`var kvImageBufferTypeCode_CMYK_Cyan: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CMYK_Cyan)

If the image has a CMYK color model, the buffer contains the cyan channel.

[`var kvImageBufferTypeCode_CMYK_Magenta: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CMYK_Magenta)

If the image has a CMYK color model, the buffer contains the magenta channel.

[`var kvImageBufferTypeCode_CMYK_Yellow: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CMYK_Yellow)

If the image has a CMYK color model, the buffer contains the yellow channel.

[`var kvImageBufferTypeCode_CVPixelBuffer_YCbCr: Int`](/documentation/Accelerate/kvImageBufferTypeCode_CVPixelBuffer_YCbCr)

The buffer contains luminance and both chroma channels interleaved according to the [`vImageConstCVImageFormat`](/documentation/Accelerate/vImageConstCVImageFormat) image type.

[`var kvImageBufferTypeCode_Cb: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Cb)

The buffer contains the blue chrominance channel.

[`var kvImageBufferTypeCode_Chroma: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Chroma)

The buffer contains both chrominance channels, interleaved.

[`var kvImageBufferTypeCode_Chunky: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Chunky)

The buffer contains chunky data not describable as a vImage Core Graphics image format.

[`var kvImageBufferTypeCode_ColorSpaceChannel1: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel1)

[`var kvImageBufferTypeCode_ColorSpaceChannel10: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel10)

[`var kvImageBufferTypeCode_ColorSpaceChannel11: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel11)

[`var kvImageBufferTypeCode_ColorSpaceChannel12: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel12)

[`var kvImageBufferTypeCode_ColorSpaceChannel13: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel13)

[`var kvImageBufferTypeCode_ColorSpaceChannel14: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel14)

[`var kvImageBufferTypeCode_ColorSpaceChannel15: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel15)

[`var kvImageBufferTypeCode_ColorSpaceChannel16: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel16)

[`var kvImageBufferTypeCode_ColorSpaceChannel2: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel2)

[`var kvImageBufferTypeCode_ColorSpaceChannel3: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel3)

[`var kvImageBufferTypeCode_ColorSpaceChannel4: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel4)

[`var kvImageBufferTypeCode_ColorSpaceChannel5: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel5)

[`var kvImageBufferTypeCode_ColorSpaceChannel6: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel6)

[`var kvImageBufferTypeCode_ColorSpaceChannel7: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel7)

[`var kvImageBufferTypeCode_ColorSpaceChannel8: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel8)

[`var kvImageBufferTypeCode_ColorSpaceChannel9: Int`](/documentation/Accelerate/kvImageBufferTypeCode_ColorSpaceChannel9)

[`var kvImageBufferTypeCode_Cr: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Cr)

The buffer contains the red chrominance channel.

[`var kvImageBufferTypeCode_EndOfList: Int`](/documentation/Accelerate/kvImageBufferTypeCode_EndOfList)

End of list marker.

[`var kvImageBufferTypeCode_Indexed: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Indexed)

The buffer contains data in an indexed colorspace.

[`var kvImageBufferTypeCode_LAB_A: Int`](/documentation/Accelerate/kvImageBufferTypeCode_LAB_A)

If the image has a LAB color model, the buffer contains the *a** channel.

[`var kvImageBufferTypeCode_LAB_B: Int`](/documentation/Accelerate/kvImageBufferTypeCode_LAB_B)

If the image has a LAB color model, the buffer contains the *b** channel.

[`var kvImageBufferTypeCode_LAB_L: Int`](/documentation/Accelerate/kvImageBufferTypeCode_LAB_L)

If the image has a LAB color model, the buffer contains the *L** channel.

[`var kvImageBufferTypeCode_Luminance: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Luminance)

The buffer contains only luminance data.

[`var kvImageBufferTypeCode_Monochrome: Int`](/documentation/Accelerate/kvImageBufferTypeCode_Monochrome)

The buffer contains a single color channel.

[`var kvImageBufferTypeCode_RGB_Blue: Int`](/documentation/Accelerate/kvImageBufferTypeCode_RGB_Blue)

If the image has a RGB color model, the buffer contains the blue channel.

[`var kvImageBufferTypeCode_RGB_Green: Int`](/documentation/Accelerate/kvImageBufferTypeCode_RGB_Green)

If the image has a RGB color model, the buffer contains the green channel.

[`var kvImageBufferTypeCode_RGB_Red: Int`](/documentation/Accelerate/kvImageBufferTypeCode_RGB_Red)

If the image has a RGB color model, the buffer contains the red channel.

[`var kvImageBufferTypeCode_UniqueFormatCount: Int`](/documentation/Accelerate/kvImageBufferTypeCode_UniqueFormatCount)

[`var kvImageBufferTypeCode_XYZ_X: Int`](/documentation/Accelerate/kvImageBufferTypeCode_XYZ_X)

If the image has a XYZ color model, the buffer contains the *X* channel.

[`var kvImageBufferTypeCode_XYZ_Y: Int`](/documentation/Accelerate/kvImageBufferTypeCode_XYZ_Y)

If the image has a XYZ color model, the buffer contains the *Y* channel.

[`var kvImageBufferTypeCode_XYZ_Z: Int`](/documentation/Accelerate/kvImageBufferTypeCode_XYZ_Z)

If the image has a XYZ color model, the buffer contains the *Z* channel.



---

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)