<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTOpticalFlowParameters/init(sourceFrame:nextFrame:submissionMode:destinationOpticalFlow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)VTOpticalFlowParameters(im)initWithSourceFrame:nextFrame:submissionMode:destinationOpticalFlow:"
  },
  "title" : "init(sourceFrame:nextFrame:submissionMode:destinationOpticalFlow:)"
}
-->

# init(sourceFrame:nextFrame:submissionMode:destinationOpticalFlow:)

```
init?(sourceFrame: VTFrameProcessorFrame, nextFrame: VTFrameProcessorFrame, submissionMode: VTOpticalFlowParameters.SubmissionMode, destinationOpticalFlow: VTFrameProcessorOpticalFlow)
```

## Parameters

`sourceFrame`

The current source frame. This must be a non-nil value.

`nextFrame`

The next source frame in presentation time order. This value can be set to nil for the last frame.

`submissionMode`

A value describing the processing request in a parameters submission object.

`destinationOpticalFlow`

A user allocated mutable optical flow that will receive the results.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)