vImage buffers
Use buffers to pass image data to and from vImage operations.
Overview
The vImage_Buffer structure is the fundamental data type for passing image data to and from vImage operations.
A vImage buffer describes a rectangular region of pixels and specifies the width, height, number of bytes in each row, and a pointer to the pixel data memory. However, a buffer doesn’t describe image properties, such as pixel format, color space, and channel ordering.
vImage provides functions that initialize buffers from Core Graphics images and Core Video pixel buffers, generate Core Graphics images, and populate Core Video pixel buffers from vImage buffers.