---
title: "maximumPixelCount(forSpatialScaleFactor:)"
framework: videotoolbox
role: symbol
role_heading: Type Method
path: "videotoolbox/vtlowlatencyframeinterpolationconfiguration/maximumpixelcount(forspatialscalefactor:)"
---

# maximumPixelCount(forSpatialScaleFactor:)

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

## Declaration

```swift
class func maximumPixelCount(forSpatialScaleFactor spatialScaleFactor: Int) -> Int
```

## Discussion

Discussion The product of frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumDimension(forSpatialScaleFactor:) 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.
