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

# vImage_ARGBToYpCbCrMatrix

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

```
struct vImage_ARGBToYpCbCrMatrix
```

## Overview

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

```
        | Y' |   | R_Yp        G_Yp   B_Yp      |   | R |
        | Cb | = | R_Cb        G_Cb   B_Cb_R_Cr | * | G |
        | Cr |   | B_Cb_R_Cr   G_Cr   B_Cr      |   | B |
```

## Topics

### Creating a conversion matrix

[`init(R_Yp:G_Yp:B_Yp:R_Cb:G_Cb:B_Cb_R_Cr:G_Cr:B_Cr:)`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/init(R_Yp:G_Yp:B_Yp:R_Cb:G_Cb:B_Cb_R_Cr:G_Cr:B_Cr:))

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

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

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

### Conversion matrix elements

[`R_Yp`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/R_Yp)

The *R_Yp* value in the conversion matrix.

[`G_Yp`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/G_Yp)

The *G_Yp* value in the conversion matrix.

[`B_Yp`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/B_Yp)

The *B_Yp* value in the conversion matrix.

[`R_Cb`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/R_Cb)

The *R_Cb* value in the conversion matrix.

[`G_Cb`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/G_Cb)

The *G_Cb* value in the conversion matrix.

[`B_Cb_R_Cr`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/B_Cb_R_Cr)

The *B_Cb_R_Cr* value in the conversion matrix.

[`G_Cr`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/G_Cr)

The *G_Cr* value in the conversion matrix.

[`B_Cr`](/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix/B_Cr)

The *B_Cr* value in the conversion matrix.

### Conversion matrices

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

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

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

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



---

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)