<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTLowLatencyFrameInterpolationConfiguration/maximumPixelCountForSpatialScaleFactor:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)VTLowLatencyFrameInterpolationConfiguration(cm)maximumPixelCountForSpatialScaleFactor:"
  },
  "title" : "maximumPixelCountForSpatialScaleFactor:"
}
-->

# maximumPixelCountForSpatialScaleFactor:

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

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

## Discussion

The product of `frameWidth` and `frameHeight` must be less than or equal to this value.
Use in conjunction with [`maximumDimensionForSpatialScaleFactor:`](/documentation/VideoToolbox/VTLowLatencyFrameInterpolationConfiguration/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.

---

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)