Initializes a vImage buffer of a specified size.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A valid empty
vstructure. On return, all fields are initialized.
The height of the image.
The width of the image.
The number of bits in a pixel of image data. If
pixelisn't divisible by 8, vImage pads the scanline out to a multiple of a byte so that two scanlines can't share the same byte, and all scanlines start at the beginning of a byte.
The options to use when performing this operation. The following flags are supported:
buf->datais initialized to NULL. A preferred alignment suitable for use with posix_memalign(_:_:_:) is returned and
buf->rowis set to the preferred
row. A negative value returned by the function represents an error code, not a size.
Prints a debug message if the operation fails.
This function is a convenience method to help you initialize a
v structure with a buffer sized and is aligned for best performance. It initializes the
row fields, and allocates the pixel storage for you. You're responsible for releasing the memory pointed to by
buf->data back to the system when you're done with it, using