Contents

vImageHorizontalReflect_ARGB16S(_:_:_:)

Reflects a signed 16-bit-per-channel, 4-channel interleaved image horizontally across the center vertical line.

Declaration

func vImageHorizontalReflect_ARGB16S(_ 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.

  • dest:

    A pointer to the destination vImage buffer 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, deallocate the memory to prevent memory leaks.

  • flags:

    The options to use when performing the operation. If your code implements its own tiling or its own multithreading, pass Kvimagedonottile, otherwise, pass Kvimagenoflags.

Return Value

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

Discussion

This function doesn’t scale or resample; instead, it copies unchanged individual pixels to new locations. The source and destination buffers need to have the same height and the same width.

This function doesn’t work in place — that is, the source and destination buffers need to point to different memory.

See Also

Related Documentation

Applying horizontal reflection to 16-bit-per-channel buffers