Format
class Format : NSObject
-
Returns the maximum capable framerate for the desired capture format and minimum, otherwise zero.
Declaration
Swift
public class func maxFrameRate(forFormat format: AVCaptureDevice.Format, minFrameRate: CMTimeScale) -> CMTimeScaleParameters
formatCapture format to evaluate for a specific framerate.
minFrameRateLower bound time scale or minimum desired framerate.
Return Value
Maximum capable framerate within the desired format and minimum constraints.
-
Checks if the specified capture device format supports a desired framerate and dimensions.
Declaration
Swift
public func isSupported(withFrameRate frameRate: CMTimeScale, dimensions: CMVideoDimensions = CMVideoDimensions(width: 0, height: 0)) -> BoolParameters
frameRateDesired frame rate
dimensionsDesired video dimensions
Return Value
trueif the capture device format supports the given criteria, otherwise false
View on GitHub
Format Extension Reference