VTMotionEstimationOutputHandler

Type Alias VTMotionEstimationOutputHandler 

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

A block invoked by motion-estimation session when frame processing is complete.

When the client requests a motion-estimation, the client passes in a callback block that the system invokes for the result of that request. If the VTMotionEstimationSessionCreateMotionEstimation call returns an error, the system does not invoke this block.

  • Parameters:
  • status: noErr if processing request was successful; an error code if motion-estimation was not successful.
  • infoFlags: A bit field that contains information about the processing operation.
  • additionalInfo: Additional processing information about the operation that cannot fit in infoFlags. Currently, the system expects this to be NULL.
  • motionVectorPixelBuffer: A CVPixelBuffer that contains the motion vector information, if processing request was successful; otherwise, NULL.

See also Apple’s documentation