VTRAWProcessingOutputHandler

Type Alias VTRAWProcessingOutputHandler 

Source
pub type VTRAWProcessingOutputHandler = *mut DynBlock<dyn Fn(i32, *mut CVPixelBuffer)>;
Available on crate features VTRAWProcessingSession and block2 and objc2-core-video only.
Expand description

Block invoked when frame processing is complete.

On successful processing, will return a CVPixelBuffer conforming to the session’s outputPixelBufferAttributes if any were provided.

Parameter status: noErr if processing request was successful; an error code if it was not successful.

Parameter processedPixelBuffer: A CVPixelBuffer containing the processed video frame if processing request was successful; otherwise, NULL.

See also Apple’s documentation