<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage_YpCbCrToARGBMatrix",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@S@vImage_YpCbCrToARGBMatrix"
  },
  "title" : "vImage_YpCbCrToARGBMatrix"
}
-->

# vImage_YpCbCrToARGBMatrix

The 3 x 3 matrix that the vImage library uses to convert from YpCbCr to RGB.

```
struct vImage_YpCbCrToARGBMatrix
```

## Overview

The vImage library uses this matrix to convert from YpCbCr to RGB using the following multiplication:

```
                    | R |   | Yp    0     Cr_R |   | Y' |
                    | G | = | Yp   Cb_G   Cr_G | * | Cb |
                    | B |   | Yp   Cb_B     0  |   | Cr |
```

## Topics

### Creating a conversion matrix

[`init(Yp:Cr_R:Cr_G:Cb_G:Cb_B:)`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/init(Yp:Cr_R:Cr_G:Cb_G:Cb_B:))

Creates a 3 x 3 matrix for converting Y’CbCr signals to RGB.

[`init()`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/init())

Creates a 3 x 3 zero matrix for converting Y’CbCr signals to RGB.

### Conversion matrix elements

[`Yp`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/Yp)

The *Yp* value in the conversion matrix.

[`Cr_R`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/Cr_R)

The *Cr_R* value in the conversion matrix.

[`Cr_G`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/Cr_G)

The *Cr_G* value in the conversion matrix.

[`Cb_G`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/Cb_G)

The *Cb_G* value in the conversion matrix.

[`Cb_B`](/documentation/Accelerate/vImage_YpCbCrToARGBMatrix/Cb_B)

The *Cb_B* value in the conversion matrix.

### Conversion matrices

[`kvImage_YpCbCrToARGBMatrix_ITU_R_601_4`](/documentation/Accelerate/kvImage_YpCbCrToARGBMatrix_ITU_R_601_4)

Y’CbCr-to-RGB conversion matrix for ITU Recommendation BT.601-4.

[`kvImage_YpCbCrToARGBMatrix_ITU_R_709_2`](/documentation/Accelerate/kvImage_YpCbCrToARGBMatrix_ITU_R_709_2)

Y’CbCr-to-RGB conversion matrix for ITU Recommendation BT.709-2.



---

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)