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) -> CMTimeScale
Parameters
format
Capture format to evaluate for a specific framerate.
minFrameRate
Lower 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)) -> Bool
Parameters
frameRate
Desired frame rate
dimensions
Desired video dimensions
Return Value
true
if the capture device format supports the given criteria, otherwise false