---
title: "maximumDimensionForSpatialScaleFactor:"
framework: Video Toolbox
role: symbol
role_heading: Type Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "videotoolbox/vtlowlatencyframeinterpolationconfiguration/maximumdimensionforspatialscalefactor:"
---

# maximumDimensionForSpatialScaleFactor:

The maximum value for either dimension of the source frame, in pixels, for a given spatial scale factor.

## Declaration

```occ
+ (NSInteger) maximumDimensionForSpatialScaleFactor:(NSInteger) spatialScaleFactor;
```

## Discussion

Discussion Both frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumPixelCountForSpatialScaleFactor: to determine valid frame dimensions. For example, if maximumDimensionForSpatialScaleFactor: is 1920 and maximumPixelCountForSpatialScaleFactor: corresponds to 1920×1080, then 1920×1080, 1080×1920, and 1440×1440 are all valid, but 1920×1920 is not. Pass 1 for spatialScaleFactor when using the processor for temporal interpolation without spatial scaling. Returns 0 if an unsupported scale factor is provided or if processor is unsupported.
