Function

vImageConvert_422CbYpCrYp16ToARGB8888(_:_:_:_:_:_:)

Converts a YUV 422CbYpCrYp16 format image to an ARGB8888 format image.

Declaration

func vImageConvert_422CbYpCrYp16ToARGB8888(_ src: UnsafePointer<vImage_Buffer>, _ dest: UnsafePointer<vImage_Buffer>, _ info: UnsafePointer<vImage_YpCbCrToARGB>, _ permuteMap: UnsafePointer<UInt8>!, _ alpha: UInt8, _ flags: vImage_Flags) -> vImage_Error

Parameters

srcYp

A pointer to the vImage buffer that references the source 422CbYpCrYp16 pixels.

dest

A pointer to the vImage buffer that references 8-bit ARGB interleaved destination pixels.

info

A pointer to vImage_YpCbCrToARGB, which contains info coefficient and prebias values.

permuteMap

An array of four 8-bit integers with the values 0, 1, 2, and 3, in some order. Each value specifies a channel from the source image that should be copied to that channel in the destination image. 0 denotes the alpha channel, 1 the red channel, 2 the green channel, and 3 the blue channel. 

alpha

A value for the alpha channel in dest.

flags

The options to use when performing the operation. If you plan to perform your own tiling or use multithreading, pass kvImageDoNotTile.

Return Value

kvImageNoError; otherwise, one of the error codes described in Data Types and Constants.

See Also

Converting from YUV Formats

struct vImageYpCbCrType

Constants indicating the encoding of a YUV image format type to be used with RGB / Y'CbCr conversions.

struct vImageARGBType

Constants indicating the encoding of an ARGB image format type to be used with RGB / Y'CbCr conversions.

struct vImage_YpCbCrToARGBMatrix

A 3 x 3 matrix for converting Y'CbCr signals to RGB.

struct vImage_YpCbCrToARGB

An opaque representation of a 3 x 3 matrix for converting Y'CbCr signals to RGB.

struct vImage_YpCbCrPixelRange

Range and clamping information for Y'CbCr pixel formats.