VTMotionEstimationSession.EstimateMotionVectors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compute estimated motion vectors between to pixel buffers.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public VideoToolbox.VTStatus EstimateMotionVectors(CoreVideo.CVPixelBuffer referenceImage, CoreVideo.CVPixelBuffer currentImage, VideoToolbox.VTMotionEstimationFrameFlags motionEstimationFrameFlags, Foundation.NSDictionary? additionalFrameOptions, VideoToolbox.VTMotionEstimationOutputHandler outputHandler);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.EstimateMotionVectors : CoreVideo.CVPixelBuffer * CoreVideo.CVPixelBuffer * VideoToolbox.VTMotionEstimationFrameFlags * Foundation.NSDictionary * VideoToolbox.VTMotionEstimationOutputHandler -> VideoToolbox.VTStatus
Parameters
- referenceImage
- CVPixelBuffer
The reference image to use for the computation.
- currentImage
- CVPixelBuffer
The current image to use for the computation.
- motionEstimationFrameFlags
- VTMotionEstimationFrameFlags
Any flags for the operation.
- additionalFrameOptions
- NSDictionary
Any additional frame options for the operation.
- outputHandler
- VTMotionEstimationOutputHandler
The callback that will be called with the result of the operation.
Returns
Ok if successful, or an error code otherwise.
- Attributes