Function

vImageBuffer_GetSize(_:)

Returns the size, in pixels, of a vImage buffer.

Declaration

func vImageBuffer_GetSize(_ buf: UnsafePointer<vImage_Buffer>) -> CGSize

Parameters

buf

The vImage buffer to query.

Return Value

The size of the buffer.

Discussion

The buffer's width and height are defined as vImagePixelCount values that could be larger than greatestFiniteMagnitude. The returned CGSize width and height are rounded down to the nearest representable CGFloat values that are less than or equal to the size of the buffer.