Function VTCompressionSessionInvalidate

Source
pub unsafe extern "C-unwind" fn VTCompressionSessionInvalidate(
    session: &VTCompressionSession,
)
Available on crate feature VTCompressionSession only.
Expand description

Tears down a compression session.

When you are done with a compression session you created, call VTCompressionSessionInvalidate to tear it down and then CFRelease to release your object reference. When a compression 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 VTCompressionSessionInvalidate ensures a deterministic, orderly teardown.