VideoCaptureFormat
@objcMembers
public class VideoCaptureFormat : NSObject
VideoCaptureFormatdescribes a given capture format that may be possible to apply to a VideoCaptureSource.
Note that VideoCaptureSource implementations may ignore or adjust unsupported values.
-
Capture width in pixels.
Declaration
Swift
public let width: Int -
Capture height in pixels.
Declaration
Swift
public let height: Int -
Max frame rate. When used as input this implies the desired frame rate as well.
Declaration
Swift
public let maxFrameRate: Int -
Declaration
Swift
public init(width: Int, height: Int, maxFrameRate: Int) -
Declaration
Swift
override public func isEqual(_ object: Any?) -> Bool -
Helper function to convert
AVCaptureDevice.FormattoVideoCaptureFormatDeclaration
Swift
public static func fromAVCaptureDeviceFormat(format: AVCaptureDevice.Format) -> VideoCaptureFormatParameters
formatformat from the
AVCaptureDevice