pub unsafe extern "C-unwind" fn VTPixelTransferSessionInvalidate(
session: &VTPixelTransferSession,
)Available on crate feature
VTPixelTransferSession only.Expand description
Tears down a pixel transfer session.
When you are done with a pixel transfer session you created, call VTPixelTransferSessionInvalidate to tear it down and then CFRelease to release your object reference. When a pixel transfer session’s retain count reaches zero, it is automatically invalidated, but since sessions may be retained by multiple parties, it can be hard to predict when this will happen. Calling VTPixelTransferSessionInvalidate ensures a deterministic, orderly teardown.