---
title: "maximumPixelCountForSpatialScaleFactor:"
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/maximumpixelcountforspatialscalefactor:"
---

# maximumPixelCountForSpatialScaleFactor:

The maximum total number of pixels in the source frame for a given spatial scale factor.

## Declaration

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

## Discussion

Discussion The product of frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumDimensionForSpatialScaleFactor: to determine valid frame dimensions. 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.
