<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 8.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCVImageFormat_Create(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCVImageFormat_Create"
  },
  "title" : "vImageCVImageFormat_Create(_:_:_:_:_:)"
}
-->

# vImageCVImageFormat_Create(_:_:_:_:_:)

Creates the description of image encoding in a Core Video pixel buffer from the specified properties.

```
func vImageCVImageFormat_Create(_ imageFormatType: UInt32, _ matrix: UnsafePointer<vImage_ARGBToYpCbCrMatrix>!, _ cvImageBufferChromaLocation: CFString!, _ baseColorspace: CGColorSpace!, _ alphaIsOneHint: Int32) -> Unmanaged<vImageCVImageFormat>!
```

## Parameters

`imageFormatType`

The format type of the image. See <doc://com.apple.documentation/documentation/CoreVideo/pixel-format-identifiers>.

`matrix`

A [`vImage_ARGBToYpCbCrMatrix`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix) that describes the conversion from RGB to the YpCbCr format.

`cvImageBufferChromaLocation`

The chrominance location.

`baseColorspace`

The color space of RGB and monochrome images. For YpCbCr images, this is the color space of the RGB image before conversion to YpCbCr using the ARGB-to-YpCbCr conversion matrix. The YpCbCr format RGB primaries and transfer function define the color space.

`alphaIsOneHint`

A hint that indicates that the function interprets an image with an alpha channel as opaque.

## Return Value

A [`vImageCVImageFormat`](/documentation/Accelerate/vImageCVImageFormat) instance encoded with the function’s parameters.

## Discussion

This function derives values that parameters from the image format type don’t specify, such as the number of channels, channel names, and channel descriptions.

## See Also

[`make(format:matrix:chromaSiting:colorSpace:alphaIsOpaqueHint:)`](/documentation/Accelerate/vImageCVImageFormat/make(format:matrix:chromaSiting:colorSpace:alphaIsOpaqueHint:))

Creates the description of image encoding in a Core Video pixel buffer from the specified properties.



---

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)