---
title: "init(frameWidth:frameHeight:spatialScaleFactor:)"
framework: videotoolbox
role: symbol
role_heading: Initializer
path: "videotoolbox/vtlowlatencyframeinterpolationconfiguration/init(framewidth:frameheight:spatialscalefactor:)"
---

# init(frameWidth:frameHeight:spatialScaleFactor:)

Creates a new low-latency frame interpolation configuration for spatial scaling and temporal scaling.

## Declaration

```swift
init?(frameWidth: Int, frameHeight: Int, spatialScaleFactor: Int)
```

## Parameters

- `frameWidth`: Width of source frame in pixels.
- `frameHeight`: Height of source frame in pixels.
- `spatialScaleFactor`: The requested spatial scale factor as an integer. Currently, the processor supports only 2x spatial scaling.

## Discussion

Discussion When you configure the processor for spatial scaling, the low-latency frame interpolation processor only supports 2x spatial upscaling and a single frame of temporal interpolation at a 0.5 interpolation phase.

## See Also

### Creating a frame interpolation configuration

- [init(frameWidth:frameHeight:numberOfInterpolatedFrames:)](videotoolbox/vtlowlatencyframeinterpolationconfiguration/init(framewidth:frameheight:numberofinterpolatedframes:).md)
