---
title: vImage_YpCbCrPixelRange
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/vimage_ypcbcrpixelrange
---

# vImage_YpCbCrPixelRange

The description of range and clamping information for YpCbCr pixel formats.

## Declaration

```swift
struct vImage_YpCbCrPixelRange
```

## Overview

Overview Y’CbCr formats frequently don’t use the entire representable range available to them to represent image data. While a full range video format does use the entire range, a video range format often leaves the extrema unused, except perhaps to represent values outside of the standard Y'=[0,1] CbCr = [-0.5,0.5] range. For example, an 8-bit video range format typically uses the range [16,235] for Y’ and [16,240] for Cb and Cr. The following code shows examples of typical Y’CbCr pixel ranges: // The 8-bit pixel range that's unclamped. let pixelRange = vImage_YpCbCrPixelRange(Yp_bias: 16,                                          CbCr_bias: 128,                                          YpRangeMax: 235,                                          CbCrRangeMax: 240,                                          YpMax: 255,                                          YpMin: 0,                                          CbCrMax: 255,                                          CbCrMin: 1)

// The 8-bit pixel range that's clamped to video range. let pixelRange = vImage_YpCbCrPixelRange(Yp_bias: 16,                                          CbCr_bias: 128,                                          YpRangeMax: 265,                                          CbCrRangeMax: 240,                                          YpMax: 235,                                          YpMin: 16,                                          CbCrMax: 240,                                          CbCrMin: 16)          // The 8-bit pixel range that's clamped to full range. let pixelRange = vImage_YpCbCrPixelRange(Yp_bias: 0,                                          CbCr_bias: 128,                                          YpRangeMax: 255,                                          CbCrRangeMax: 255,                                          YpMax: 255,                                          YpMin: 1,                                          CbCrMax: 255,                                          CbCrMin: 0) The bias is the prebias for YUV to RGB and the postbias for RGB to YUV.

## Topics

### Creating a Pixel Range

- [init(Yp_bias:CbCr_bias:YpRangeMax:CbCrRangeMax:YpMax:YpMin:CbCrMax:CbCrMin:)](accelerate/vimage_ypcbcrpixelrange/init(yp_bias:cbcr_bias:yprangemax:cbcrrangemax:ypmax:ypmin:cbcrmax:cbcrmin:).md)
- [init()](accelerate/vimage_ypcbcrpixelrange/init().md)

### Pixel Range Properties

- [Yp_bias](accelerate/vimage_ypcbcrpixelrange/yp_bias.md)
- [CbCr_bias](accelerate/vimage_ypcbcrpixelrange/cbcr_bias.md)
- [YpRangeMax](accelerate/vimage_ypcbcrpixelrange/yprangemax.md)
- [CbCrRangeMax](accelerate/vimage_ypcbcrpixelrange/cbcrrangemax.md)
- [YpMax](accelerate/vimage_ypcbcrpixelrange/ypmax.md)
- [YpMin](accelerate/vimage_ypcbcrpixelrange/ypmin.md)
- [CbCrMax](accelerate/vimage_ypcbcrpixelrange/cbcrmax.md)
- [CbCrMin](accelerate/vimage_ypcbcrpixelrange/cbcrmin.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Generating conversion information

- [vImageConvert_ARGBToYpCbCr_GenerateConversion(_:_:_:_:_:_:)](accelerate/vimageconvert_argbtoypcbcr_generateconversion(_:_:_:_:_:_:).md)
- [vImageYpCbCrType](accelerate/vimageypcbcrtype.md)
- [vImageARGBType](accelerate/vimageargbtype.md)
- [vImage_ARGBToYpCbCrMatrix](accelerate/vimage_argbtoypcbcrmatrix.md)
- [vImage_ARGBToYpCbCr](accelerate/vimage_argbtoypcbcr.md)
