Function

vImageHorizontalReflect_ARGB16U(_:_:_:)

Reflects an ARGB16U source image left to right across the center vertical line of the image.

Declaration

func vImageHorizontalReflect_ARGB16U(_ src: UnsafePointer<vImage_Buffer>, _ dest: UnsafePointer<vImage_Buffer>, _ flags: vImage_Flags) -> vImage_Error

Parameters

src

A pointer to a vImage buffer structure that contains the source image whose data you want to reflect.

dest

A pointer to a vImage buffer data structure. You're responsible for filling out the height, width, and rowBytes fields of this structure, and for allocating a data buffer of the appropriate size. On return, the data buffer this structure points to contains the destination image data. When you no longer need the data buffer, you must deallocate the memory.

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 it returns one of the error codes described in Data Types and Constants.

Discussion

This function does not scale or resample. The source and destination buffers must have the same height and the same width.

See Also

Horizontal Reflection

func vImageHorizontalReflect_ARGBFFFF(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects an ARGBFFFF source image left to right across the center vertical line of the image.

func vImageHorizontalReflect_ARGB8888(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects an ARGB8888 source image left to right across the center vertical line of the image.

func vImageHorizontalReflect_ARGB16S(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects an ARGB16S source image left to right across the center vertical line of the image.

func vImageHorizontalReflect_PlanarF(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects a PlanarF source image left to right across the center vertical line of the image, placing the result in a destination buffer.

func vImageHorizontalReflect_Planar8(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects a Planar8 source image left to right across the center vertical line of the image.

func vImageHorizontalReflect_Planar16U(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error

Reflects a Planar16U source image left to right across the center vertical line of the image.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software