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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software