Global Variable


A flag that prevents vImage from allocating additional storage.


var kvImageNoAllocate: Int { get }


When you set this flag, vImage uses the memory provided to the buffer rather than allocating new memory. For example, instead of overwriting a buffer's data property with a newly allocated pointer to memory, vImage uses the memory pointed to by the data property directly. In other cases, it may cause the function to assume ownership of a buffer, rather than allocating a copy. You are responsible for making sure the buffer that you allocate is large enough to hold the image. Most vImage functions do not allocate memory and assume that the buffer's data is already allocated, and, in the case of source image buffers, contain valid pixel data.