Conversion

Convert an image to a different format.

Overview

Conversion functions change an image from one image format into another. These functions work with the formats supported by vImage (Planar8, PlanarF, ARGB8888, ARGBFFFF, RGBA8888, and RGBAFFFF) but they can also change between a supported format to one that’s not supported by vImage (such as RGB565). Conversion functions can also fill buffers with a color, overwrite channels, permute channels, flatten data, and clip data.

Conversion functions use a vImage buffer structure (vImage_Buffer—see Data Types and Constants) to receive and supply image data. This buffer contains a pointer to image data, the height and width (in pixels) of the image data, and the number of row bytes. You actually pass a pointer to a vImage buffer structure. For some functions, you can provide a pointer to the same vImage buffer structure for the source images and the destination image because the function “works in place”. That is , the source and destination images can occupy the same memory if the they are strictly aligned pixel for pixel.

Topics

Converting Any-to-Any

You use vImage's vImageConvert_AnyToAny function to convert between Core Video or Core Graphics image data of arbitrary color spaces and bit depths. The source and destination images are described by one or more buffers. For example, a Y'CbCr image may be composed of one buffer containing luminance information and one buffer containing chrominance information.

Building a Basic Conversion Workflow

Learn the fundamentals of the convert-any-to-any function by converting a CMYK image to an RGB image.

vImageConvert_AnyToAny

Converts the pixels in a vImage buffer to another format, using the specified converter.

vImageConverterRef

A description of a conversion from one image format to another.

vImageConverter_CreateWithCGImageFormat

Creates a vImage converter that converts from one vImage Core Graphics image format to another.

vImageConverter_CreateForCGToCVImageFormat

Creates a vImage converter that converts a Core Graphics-formatted image to a Core Video-formatted image.

vImageConverter_CreateForCVToCGImageFormat

Creates a vImage converter that converts a Core Video-formatted image to a Core Graphics-formatted image.

vImageConverter_CreateWithColorSyncCodeFragment

Creates a vImage converter to convert from one vImage Core Graphics image format to another, using custom ColorSync transform.

vImageConverter_Retain

Retains a vImage converter.

vImageConverter_Release

Releases a vImage converter.

vImageConverter_MustOperateOutOfPlace

Determines whether a converter is capable of operating in place.

vImageConverter_GetSourceBufferOrder

Returns a list of vImage source buffer channel names, specifying the order of planes.

vImageConverter_GetDestinationBufferOrder

Returns a list of vImage destination buffer channel names, specifying the order of planes.

vImage Buffer Type Codes

Constants that specify the contents of vImage buffers.

vImageConverter_GetNumberOfSourceBuffers

Returns the number of source buffers consumed by the converter.

vImageConverter_GetNumberOfDestinationBuffers

Returns the number of destination buffers written to by the converter.

Converting from 8-Bit Format

vImageConvert_8to16Q12

Converts an 8-bit format image to a 16Q12 format image.

Converting from 12-Bit Format

vImageConvert_12UTo16U

Converts a 12U format image to a 16U format image.

Converting from 16-Bit Format

vImageConvert_16Fto16U

Converts a 16F format image to a 16U format image.

vImageConvert_16Fto16Q12

Converts a 16F format image to a 16Q12 format image.

vImageConvert_16SToF

Converts an image in a special planar format—in which each pixel value is a 16-bit signed integer—image to a PlanarF format.

vImageConvert_16UToF

Converts an image in a special planar format—in which each pixel value is a 16-bit unsigned integer—image to a PlanarF format.

vImageConvert_16UToPlanar8

Converts an image in a special planar format—in which each pixel value is a 16-bit unsigned integer—image to a Planar8 image.

vImageConvert_16Uto16Q12

Converts a 16U format image to a 16Q12 format image.

vImageConvert_16UTo12U

Converts a 16U format image to a 12U format image.

vImageConvert_16Uto16F

Converts a 16U format image to a 16F format image.

vImageConvert_16Q12toF

Converts a 16Q12 format image to a floating-point format image.

vImageConvert_16Q12to8

Converts a 16Q12 format image to an 8-bit format image.

vImageConvert_16Q12to16F

Converts a 16Q12 format image to a 16F format image.

vImageConvert_16Q12to16U

Converts a 16Q12 format image to a 16U format image.

Converting from 32-Bit Format

vImageConvert_Fto16Q12

Converts a floating-point format image to a 16Q12 format image.

Converting Between Chunky and Planar Formats

These convenience functions allow you to convert between various interleaved (or chunky) formats that vImage does not explicitly support (and that may have less than or more than four channels) and the formats that vImage supports explicitly. You can represent some non-interleaved formats as well. The functions are not fast or vectorized.

vImageConvert_PlanarToChunky8

Combines a collection of planar source images into a single interleaved destination image, with one 8-bit channel for each planar image.

vImageConvert_PlanarToChunkyF

Combines a collection of planar source images into a single interleaved destination image, with one floating-point channel for each planar image.

vImageConvert_ChunkyToPlanar8

Separates a source image into a collection of corresponding planar destination images, one for each 8-bit channel of the original image.

vImageConvert_ChunkyToPlanarF

Separates a source image into a collection of corresponding planar destination images, one for each floating-point channel of the original image.

Converting from Planar Formats

vImageConvert_Planar8ToARGBFFFF

Combines four Planar8 images into one ARGBFFFF image.

vImageConvert_Planar8toARGB1555

Combines four Planar8 images into one ARGB1555 image.

vImageConvert_Planar8toARGB8888

Combines four Planar8 images into one ARGB8888 image.

vImageConvert_Planar8ToBGRX8888

Interleaves three Planar8 images into one BGRX8888 image.

vImageConvert_Planar8ToBGRXFFFF

Combines three Planar8 images into one BGRXFFFF image.

vImageConvert_Planar8toRGB565

Combines three Planar8 images into one RGB565 image.

vImageConvert_Planar8toRGB888

Combines three Planar8 images into one RGB888 image.

vImageConvert_Planar8ToXRGBFFFF

Combines three Planar8 images into one XRGBFFFF image.

vImageConvert_Planar8ToXRGB8888

Interleaves three Planar8 images into one XRGB8888 image.

vImageConvert_Planar8To16U

Converts a Planar8 image to a 16U image .

vImageConvert_Planar8ToRGBXFFFF

Combines three Planar8 images into one RGBXFFFF image.

vImageConvert_Planar8ToRGBX8888

Interleaves three Planar8 images into one RGBX8888 image.

vImageConvert_Planar8toIndexed1

Converts a Planar8 image to an indexed 1-bit image.

vImageConvert_Planar8toIndexed2

Converts a Planar8 image to an indexed 2-bit image.

vImageConvert_Planar8toIndexed4

Converts a Planar8 image to an indexed 4-bit image.

vImageConvert_Planar16Q12toARGB16F

Combines three 16Q12 images into one ARGB16F image.

vImageConvert_Planar16UtoARGB16U

Combines four 16U images into one ARGB16U image.

vImageConvert_Planar16Q12toRGB888

Combines three 16Q12 images into one RGB888 image.

vImageConvert_Planar16Q12toARGB8888

Combines three 16Q12 images into one ARGB8888 image.

vImageConvert_Planar16Q12toRGB16F

Combines three 16Q12 images into one RGB16F image.

vImageConvert_Planar16UtoRGB16U

Combines three 16U images into one RGB16U image.

vImageConvert_FTo16S

Converts a PlanarF image into a special format in which each pixel is a 16-bit signed integer.

vImageConvert_FTo16U

Converts a PlanarF image into a special format in which each pixel is a 16-bit unsigned integer.

vImageConvert_PlanarFtoARGBFFFF

Combines four PlanarF images into one ARGBFFFF image.

vImageConvert_PlanarFToARGB8888

Converts four PlanarF images into one ARGB8888 image.

vImageConvert_PlanarFtoRGBFFF

Combines three PlanarF images into one RGBFFF image.

vImageConvert_PlanarFToBGRX8888

Converts three PlanarF images into one BGRX8888 image.

vImageConvert_PlanarFToBGRXFFFF

Converts three PlanarF images into one BGRXFFFF image.

vImageConvert_PlanarFToXRGBFFFF

Converts three PlanarF images into one XRGBFFFF image.

vImageConvert_PlanarFToXRGB8888

Converts three PlanarF images into one XRGB8888 image.

vImageConvert_PlanarFToRGBXFFFF

Converts three PlanarF images into one RGBXFFFF image.

vImageConvert_PlanarFToRGBX8888

Converts three PlanarF images into one RGBX8888 image.

Converting Between Planar Formats

vImageConvert_PlanarFtoPlanar8_dithered

Converts a PlanarF image to a Planar8 image with dithering.

vImageConvert_PlanarFtoPlanar16F

Converts a PlanarF image to a Planar16F image.

vImageConvert_PlanarFtoPlanar8

Converts a PlanarF image to a Planar8 image, clipping values to the provided minimum and maximum values.

vImageConvert_Planar1toPlanar8

Converts a Planar1 image to a Planar8 image.

vImageConvert_Planar2toPlanar8

Converts a Planar2 image to a Planar8 image.

vImageConvert_Planar4toPlanar8

Converts a Planar4 image to a Planar8 image.

vImageConvert_Planar8toPlanarF

Converts a Planar8 image to a PlanarF image.

vImageConvert_Planar8toPlanar16F

Converts a Planar8 image to a Planar16F image.

vImageConvert_Planar8toPlanar1

Converts a Planar8 image to a Planar1 image.

vImageConvert_Planar8toPlanar2

Converts a Planar8 image to a Planar2 image.

vImageConvert_Planar8toPlanar4

Converts a Planar8 image to a Planar4 image.

vImageConvert_Planar16FtoPlanar8

Converts a Planar16F image to a Planar8 image.

vImageConvert_Planar16FtoPlanarF

Separates an ARGB8888 image into four Planar8 images.

vImageConvert_Planar16UtoPlanar8_dithered

Converts a Planar16U image to a Planar8 image with dithering.

vImageConvert_Indexed1toPlanar8

Converts an indexed 1-bit image to a Planar8 image.

vImageConvert_Indexed2toPlanar8

Converts an indexed 2-bit image to a Planar8 image.

vImageConvert_Indexed4toPlanar8

Converts an indexed 4-bit image to a Planar8 image.

Converting from ARGB Formats

vImageConvert_ARGBFFFFtoARGB8888_dithered

Converts and permutes an ARGBFFFF image to an ARGB8888 image with dithering.

vImageConvert_ARGBFFFFtoRGBFFF

Converts a four-channel ARGBFFFF image to a three-channel RGBFFF image by removing the alpha channel.

vImageConvert_ARGBFFFFtoPlanar8

Separates an ARGBFFFF image into four Planar8 images.

vImageConvert_ARGBFFFFtoPlanarF

Separates an ARGBFFFF image into four PlanarF images.

vImageConvert_ARGBFFFFToARGB2101010

Converts an ARGBFFFF format image to an ARGB2101010 format image.

vImageConvert_ARGBFFFFToXRGB2101010

Converts an ARGBFFFF format image to an XRGB2101010 format image.

vImageConvert_ARGB1555toARGB8888

Converts an ARGB1555 image to an ARGB8888 image.

vImageConvert_ARGB1555toRGB565

Converts an ARGB1555 image to an RGB565 image, with loss of alpha.

vImageConvert_ARGB1555toPlanar8

Separates an ARGB1555 image into four Planar8 images.

vImageConvert_ARGB16UtoRGB16U

Converts an ARGB16U image to an RGB16U image.

vImageConvert_ARGB16UtoARGB8888_dithered

Converts and permutes an ARGB16U image to an ARGB8888 image with dithering.

vImageConvert_ARGB16UToARGB2101010

Converts an ARGB16U format image to an ARGB2101010 format image.

vImageConvert_ARGB16UToRGBA1010102

Converts an ARGB16U format image to an RGBA1010102 format image.

vImageConvert_ARGB16UToXRGB2101010

Converts an ARGB16U format image to an XRGB2101010 format image.

vImageConvert_ARGB16UToARGB8888

Converts and permutes an ARGB16U image to an ARGB8888 image.

vImageConvert_ARGB16UtoPlanar16U

Separates an ARGB16U image into four Planar16U images.

vImageConvert_ARGB16Q12ToARGB2101010

Converts an ARGB16Q12 format image to an ARGB2101010 format image.

vImageConvert_ARGB16Q12ToXRGB2101010

Converts an ARGB16Q12 format image to an XRGB2101010 format image.

vImageConvert_ARGB16Q12ToRGBA1010102

Converts an ARGB16Q12 format image to an RGBA1010102 format image.

vImageConvert_ARGB2101010ToARGB16F

Converts an ARGB2101010 format image to an ARGB16F format image.

vImageConvert_ARGB2101010ToARGB16Q12

Converts an ARGB2101010 format image to an ARGB16Q12 format image.

vImageConvert_ARGB2101010ToARGB16U

Converts an ARGB2101010 format image to an ARGB16U format image.

vImageConvert_ARGB2101010ToARGB8888

Converts an ARGB2101010 format image to an ARGB8888 format image.

vImageConvert_ARGB2101010ToARGBFFFF

Converts an ARGB2101010 format image to an ARGBFFFF format image.

vImageConvert_ARGB8888toARGB1555

Converts an ARGB8888 image into an ARGB1555 image.

vImageConvert_ARGB8888ToRGB16U

Converts and permutes an ARGB8888 image into an RGB16U image.

vImageConvert_ARGB8888toPlanar8

Separates an ARGB8888 image into four Planar8 images.

vImageConvert_ARGB8888toPlanarF

Separates an ARGB8888 image into four PlanarF images.

vImageConvert_ARGB8888toRGB565

Converts an ARGB8888 image into an RGB565 image.

vImageConvert_ARGB8888toRGB888

Converts a four-channel ARGB8888 image to a three-channel RGB888 image by removing the alpha channel..

vImageConvert_ARGB8888toPlanar16Q12

Separates an ARGB8888 image into four Planar16Q12 images.

vImageConvert_ARGB8888toARGB1555_dithered

Converts an ARGB8888 image to an ARGB1555 image with dithering.

vImageConvert_ARGB8888toRGB565_dithered

Converts an ARGB8888 image to an RGB565 image with dithering.

vImageConvert_ARGB8888ToRGBA1010102

Converts an ARGB8888 format image to an RGBA1010102 format image.

vImageConvert_ARGB8888ToARGB2101010

Converts an ARGB8888 format image to an ARGB2101010 format image.

vImageConvert_ARGB8888ToXRGB2101010

Converts an ARGB8888 format image to an XRGB2101010 format image.

vImageConvert_ARGB8888ToARGB16U

Converts and permutes an ARGB8888 image to an ARGB16U image.

Converting from XRGB Formats

vImageConvert_XRGBFFFFToPlanarF

Separates an XRGBFFFF image into three planar buffers for red, green, and blue, discarding the fourth channel.

vImageConvert_XRGB8888ToPlanar8

Separates an XRGB8888 image into three planar buffers for red, green, and blue, discarding the fourth channel.

vImageConvert_XRGB2101010ToARGB16F

Converts an XRGB2101010 format image to an ARGB16F format image.

vImageConvert_XRGB2101010ToARGB16Q12

Converts an XRGB2101010 format image to an ARGB16Q12 format image.

vImageConvert_XRGB2101010ToARGB16U

Converts an XRGB2101010 format image to an ARGB16U format image.

vImageConvert_XRGB2101010ToARGB8888

Converts an XRGB2101010 format image to an ARGB8888 format image.

vImageConvert_XRGB2101010ToARGBFFFF

Converts an XRGB2101010 format image to an ARGBFFFF format image.

Converting from BGRA Formats

vImageConvert_BGRAFFFFtoRGBFFF

Converts a four-channel BGRAFFFF image to a three-channel RGBFFF image by removing the alpha channel.

vImageConvert_BGRXFFFFToPlanarF

Separates a BGRXFFFF image into three planar buffers for red, green, and blue, discarding the fourth channel.

vImageConvert_BGRA16UtoRGB16U

Converts a BGRA16 image to an RGB16U image.

vImageConvert_BGRA8888toRGB888

Converts a four-channel BGRA8888 image to a three-channel RGB888 image by removing the alpha channel.

vImageConvert_BGRX8888ToPlanar8

Separates a BGRX8888 image into three planar buffers for red, green, and blue, discarding the fourth channel.

vImageConvert_BGRA8888toRGB565_dithered

Converts a BGRA8888 image to an RGB565 image with dithering.

vImageConvert_BGRA8888toRGB565

Converts a BGRA8888 image into an RGB565 image.

Converting from RGBA Formats

vImageConvert_BGRA8888toBGR888

Converts a four-channel BGRA8888 image to a three-channel BGR888 image by removing the alpha channel.

vImageConvert_RGBA8888toBGR888

Converts a four-channel RGBA8888 image to a three-channel BGR888 image by removing the alpha channel.

vImageConvert_RGBAFFFFtoRGBFFF

Converts a four-channel RGBAFFFF image to a three-channel RGBFFF image by removing the alpha channel.

vImageConvert_RGBA1010102ToARGB16Q12

Converts an RGBA1010102 format image to an ARGB16Q12 format image.

vImageConvert_RGBA1010102ToARGB16U

Converts an RGBA1010102 format image to an ARGB16U format image.

vImageConvert_RGBA1010102ToARGB8888

Converts an RGBA1010102 format image to an ARGB8888 format image.

vImageConvert_RGBA16UtoRGB16U

Converts an RGBA16U image to an RGB16U image.

vImageConvert_RGBA5551toRGB565

Converts an RGBA5551 image to an RGB565 image, with loss of alpha.

vImageConvert_RGBA5551toRGBA8888

Converts an RGBA5551 image to an RGBA8888 image.

vImageConvert_RGBA8888toRGB888

Converts a four-channel RGBA8888 image to a three-channel RGB888 image by removing the alpha channel.

vImageConvert_RGBA8888toRGBA5551_dithered

Converts an RGBA8888 image to an RGBA5551 image with dithering.

vImageConvert_RGBA8888toRGB565_dithered

Converts an RGBA8888 image to an RGB565 image with dithering.

vImageConvert_RGBA8888toRGB565

Converts an RGBA8888 image into an RGB565 image.

vImageConvert_RGBA8888toRGBA5551

Converts an RGBA8888 image into an RGBA5551 image.

Converting from RGB Formats

vImageConvert_BGR888toBGRA8888

Converts a three-channel BGR888 image to a four-channel BGRA8888 image, with optional premultiplication.

vImageConvert_BGR888toRGBA8888

Converts a three-channel BGR888 image to a four-channel RGBA8888 image, with optional premultiplication.

vImageConvert_RGBFFFtoPlanarF

Separates an RGBFFF image into three PlanarF images.

vImageConvert_RGBFFFtoRGB888_dithered

Converts an RGBFFFF image to an RGB8888 image with dithering.

vImageConvert_RGB16UToARGB8888

Converts and permutes an RGB16U image into an ARGB8888 image.

vImageConvert_RGB16UtoARGB16U

Converts an RGB16U image to an ARGB16U image.

vImageConvert_RGB16UtoRGBA16U

Converts an RGB16U image to an RGBA16U image.

vImageConvert_RGB16UtoBGRA16U

Converts an RGB16U image to an BGRA16U image.

vImageConvert_RGB16UtoRGB888_dithered

Converts an RGB16U image to an RGB888 image with dithering.

vImageConvert_RGB16UtoPlanar16U

Separates an RGB16U image into three Planar16U images.

vImageConvert_RGB565toPlanar8

Separates an RGB565 image into three Planar8 images.

vImageConvert_RGB565toRGB888

Converts an RGB565 image to an RGB888 image.

vImageConvert_RGB565toRGBA5551

Converts an RGB565 image to an RGBA5551 image with dithering, setting destination alpha to one.

vImageConvert_RGB565toRGBA8888

Converts an RGB565 image into an RGBA8888 image, using the provided 8-bit alpha value.

vImageConvert_RGB565toARGB8888

Converts an RGB565 image into an ARGB8888 image, using the provided 8-bit alpha value.

vImageConvert_RGB565toARGB1555

Converts an RGB565 image to an ARGB1555 image with dithering, setting destination alpha to one.

vImageConvert_RGB565toBGRA8888

Converts an RGB565 image into a BGRA8888 image, using the provided 8-bit alpha value.

vImageConvert_RGB888toARGB8888

Converts an RGB888 image into an ARGB8888 image, using the provided alpha value (either as planar or pixel data).

vImageConvert_RGB888toBGRA8888

Converts a three-channel RGB888 image to a four-channel BGRA8888 image, with optional premultiplication.

vImageConvert_RGB888toRGBA8888

Converts a three-channel RGB888 image to a four-channel RGBA8888 image, with optional premultiplication.

vImageConvert_RGB888toPlanar8

Separates an RGB888 image into three Planar8 images.

vImageConvert_RGB888toPlanar16Q12

Separates an RGB888 image into three 16Q12 images.

vImageConvert_RGB888toRGB565_dithered

Converts an RGB888 image to an RGB565 image with dithering.

vImageConvert_RGBFFFtoARGBFFFF

Converts a three-channel RGBFFF image to a four-channel ARGBFFFF image, with optional premultiplication.

vImageConvert_RGBFFFtoBGRAFFFF

Converts a three-channel RGBFFF image to a four-channel BGRAFFFF image, with optional premultiplication.

vImageConvert_RGBFFFtoRGBAFFFF

Converts a three-channel RGBFFF image to a four-channel RGBAFFFF image, with optional premultiplication.

Converting from YUV Formats

vImageConvert_420Yp8_Cb8_Cr8ToARGB8888

Converts a YUV 420Yp8_Cb8_Cr8 format image to an ARGB8888 format image.

vImageConvert_420Yp8_CbCr8ToARGB8888

Converts a YUV 420Yp8_CbCr8 format image to an ARGB8888 format image.

vImageConvert_422CbYpCrYp16ToARGB16U

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

vImageConvert_422CbYpCrYp16ToARGB8888

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

vImageConvert_422CbYpCrYp8_AA8ToARGB8888

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

vImageConvert_422CbYpCrYp8ToARGB8888

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

vImageConvert_422CrYpCbYpCbYpCbYpCrYpCrYp10ToARGB16Q12

Converts a YUV 422CrYpCbYpCbYpCbYpCrYpCrYp10 format image to an ARGB16Q12 format image.

vImageConvert_422CrYpCbYpCbYpCbYpCrYpCrYp10ToARGB8888

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

vImageConvert_422YpCbYpCr8ToARGB8888

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

vImageConvert_444AYpCbCr16ToARGB16U

Converts a YUV 444AYpCbCr16 format image to an ARGB16U format image.

vImageConvert_444AYpCbCr16ToARGB8888

Converts a YUV 444AYpCbCr16 format image to an ARGB8888 format image.

vImageConvert_444AYpCbCr8ToARGB8888

Converts a YUV 444AYpCbCr8 format image to an ARGB8888 format image.

vImageConvert_444CbYpCrA8ToARGB8888

Converts a YUV 444CbYpCrA8 format image to an ARGB8888 format image.

vImageConvert_444CrYpCb10ToARGB8888

Converts a YUV 444CrYpCb10 format image to an ARGB8888 format image.

vImageConvert_444CrYpCb8ToARGB8888

Converts a YUV 444CrYpCb8 format image to an ARGB8888 format image.

vImageConvert_444CrYpCb10ToARGB16Q12

Converts a YUV 444CrYpCb10 format image to an ARGB16Q12 format image.

vImageConvert_YpCbCrToARGB_GenerateConversion

Generates the conversion from YpCbCr to ARGB pixel format.

vImageYpCbCrType

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

vImageARGBType

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

vImage_YpCbCrToARGBMatrix

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

vImage_YpCbCrToARGB

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

vImage_YpCbCrPixelRange

Range and clamping information for Y'CbCr pixel formats.

Converting to YUV Formats

vImageConvert_ARGB16Q12To422CrYpCbYpCbYpCbYpCrYpCrYp10

Converts an ARGB16Q12 format image to a YUV 422CrYpCbYpCbYpCbYpCrYpCrYp10 format image.

vImageConvert_ARGB16Q12To444CrYpCb10

Converts an ARGB16Q12 format image to a YUV 444CrYpCb10 format image.

vImageConvert_ARGB16UTo422CbYpCrYp16

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

vImageConvert_ARGB16UTo444AYpCbCr16

Converts an ARGB16U format image to a YUV 444AYpCbCr16 format image.

vImageConvert_ARGB8888To420Yp8_Cb8_Cr8

Converts an ARGB8888 format image to a YUV 420Yp8_Cb8_Cr8 format image.

vImageConvert_ARGB8888To420Yp8_CbCr8

Converts an ARGB8888 format image to a YUV 420Yp8_CbCr8 format image.

vImageConvert_ARGB8888To422CbYpCrYp16

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

vImageConvert_ARGB8888To422CbYpCrYp8

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

vImageConvert_ARGB8888To422CbYpCrYp8_AA8

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

vImageConvert_ARGB8888To422CrYpCbYpCbYpCbYpCrYpCrYp10

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

vImageConvert_ARGB8888To422YpCbYpCr8

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

vImageConvert_ARGB8888To444AYpCbCr16

Converts an ARGB8888 format image to a YUV 444AYpCbCr16 format image.

vImageConvert_ARGB8888To444AYpCbCr8

Converts an ARGB8888 format image to a YUV 444AYpCbCr8 format image.

vImageConvert_ARGB8888To444CbYpCrA8

Converts an ARGB8888 format image to a YUV 444CbYpCrA8 format image.

vImageConvert_ARGB8888To444CrYpCb10

Converts an ARGB8888 format image to a YUV 444CrYpCb10 format image.

vImageConvert_ARGB8888To444CrYpCb8

Converts an ARGB8888 format image to a YUV 444CrYpCb8 format image.

vImageConvert_ARGBToYpCbCr_GenerateConversion

Generates the conversion from ARGB to YpCbCr pixel format.

vImageYpCbCrType

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

vImageARGBType

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

vImage_ARGBToYpCbCrMatrix

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

vImage_ARGBToYpCbCr

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

vImage_YpCbCrPixelRange

Range and clamping information for Y'CbCr pixel formats.

See Also

Conversion Between Image Formats

Building a Basic Conversion Workflow

Learn the fundamentals of the convert-any-to-any function by converting a CMYK image to an RGB image.

Converting Color Images to Grayscale

Convert a color image to grayscale using matrix multiplication.

Standardizing Arbitrary Image Formats for Processing

Convert assets with disparate color spaces and bit depths to a standard working format for applying vImage operations.

Converting Luminance and Chrominance Planes to an ARGB Image

Create a displayable ARGB image from the luminance and chrominance information supplied by your device’s camera.