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

# init(sourceFrame:previousFrame:previousOutputFrame:opticalFlow:submissionMode:destinationFrame:)

Creates a new super-resolution scaler parameters instance.

```
init?(sourceFrame: VTFrameProcessorFrame, previousFrame: VTFrameProcessorFrame?, previousOutputFrame: VTFrameProcessorFrame?, opticalFlow: VTFrameProcessorOpticalFlow?, submissionMode: VTSuperResolutionScalerParameters.SubmissionMode, destinationFrame: VTFrameProcessorFrame)
```

## Parameters

`sourceFrame`

Current source frame; must be non `nil`.

`previousFrame`

The previous source frame in presentation time order. For the first frame you can set this to `nil`.

`previousOutputFrame`

The previous output frame in presentation time order. For the first frame you can set this to `nil`.

`opticalFlow`

Optional `VTFrameProcessorOpticalFlow` object that contains forward and backward optical flow between the `sourceFrame` and `previousFrame`. You only need this if optical flow is pre-computed.

`submissionMode`

Provides a hint to let the processor know whether you are submitting frames in presentation
sequence. For more information about supported modes see [`VTSuperResolutionScalerParameters.SubmissionMode`](/documentation/VideoToolbox/VTSuperResolutionScalerParameters/SubmissionMode-swift.enum).

`destinationFrame`

User-allocated pixel buffer that receives the results.

## Discussion

Returns `nil` if `sourceFrame` or `destinationFrame` is `nil`, or if `sourceFrame` and reference frames have different pixel formats.

---

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)