maximumDimension(forSpatialScaleFactor:)
The maximum value for either dimension of the source frame, in pixels, for a given spatial scale factor.
Declaration
class func maximumDimension(forSpatialScaleFactor spatialScaleFactor: Int) -> IntDiscussion
Both frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumPixelCount(forSpatialScaleFactor:) to determine valid frame dimensions. For example, if maximumDimension(forSpatialScaleFactor:) is 1920 and maximumPixelCount(forSpatialScaleFactor:) 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.