Function

vImageCVImageFormat_SetUserData(_:_:_:)

Sets the user data of a Core Video image format.

Declaration

func vImageCVImageFormat_SetUserData(_ format: vImageCVImageFormat, _ userData: UnsafeMutableRawPointer!, _ userDataReleaseCallback: ((vImageCVImageFormat?, UnsafeMutableRawPointer?) -> Void)!) -> vImage_Error

Parameters

format

The Core Video image format to update.

userData

The new user data for the format.

userDataReleaseCallback

The callback that's called when the vImageCVImageFormat structure is destroyed, or when the userData pointer is replaced with another one.

Return Value

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

Discussion

See Also

Querying and Setting User Data