Function

vImageCGImageFormat_IsEqual(_:_:)

Tests two vImage Core Graphics image formats to find out if they're equivalent.

Declaration

func vImageCGImageFormat_IsEqual(_ f1: UnsafePointer<vImage_CGImageFormat>!, _ f2: UnsafePointer<vImage_CGImageFormat>!) -> Bool

Parameters

f1

The first vImage_CGImageFormat structure. If colorSpace is NULL, sRGB is used.

f2

The second vImage_CGImageFormat structure. If colorSpace is NULL, sRGB is used.

Return Value

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

Discussion

If either operand is NULL, the result is false.

See Also

Querying Core Graphics Image Format Attributes

func vImageCGImageFormat_GetComponentCount(UnsafePointer<vImage_CGImageFormat>) -> UInt32

Calculates the number of channels (color and alpha) for a given image format.