motionVectorSize
TypeScriptget motionVectorSize(): VTMotionEstimationSession_BlockSizeSwift declarationfinal var motionVectorSize: VTMotionEstimationSession.BlockSize { get throws }class · iOS 26.0+ · SDK 27.1
final class VTMotionEstimationSessionget motionVectorSize(): VTMotionEstimationSession_BlockSizeSwift declarationfinal var motionVectorSize: VTMotionEstimationSession.BlockSize { get throws }get useMultiPassSearch(): booleanSwift declarationfinal var useMultiPassSearch: Bool { get }get sourcePixelBufferAttributes(): Record<string, SDKHandle>Swift declarationfinal var sourcePixelBufferAttributes: [String : any Sendable] { get }get label(): (string) | nullSwift declarationfinal var label: String? { get }static init(width: number, height: number, motionVectorSize?: VTMotionEstimationSession_BlockSize, useMultiPassSearch?: boolean, label?: (string) | null): VTMotionEstimationSessionSwift declarationinit(width: UInt32, height: UInt32, motionVectorSize: VTMotionEstimationSession.BlockSize = .blockSize16x16, useMultiPassSearch: Bool = false, label: String? = nil) throwsmotion(currentImage: _CoreVideo_CVReadOnlyPixelBuffer, referenceImage: _CoreVideo_CVReadOnlyPixelBuffer, flags?: VTMotionEstimationSession_FrameFlags): Promise<VTMotionEstimationSession_Motion>Swift declarationfinal func motion(of currentImage: CVReadOnlyPixelBuffer, comparedTo referenceImage: CVReadOnlyPixelBuffer, flags: VTMotionEstimationSession.FrameFlags = .init(rawValue:0)) async throws -> VTMotionEstimationSession.MotionNo declarations were skipped in this snapshot.