Instance Property

activeDepthDataMinFrameDuration

The minimum frame duration of depth data.

Declaration

var activeDepthDataMinFrameDuration: CMTime { get set }

Discussion

This property allows you to set the maximum depth frame rate of your capture device. Set the property as a duration, not a rate, by calling CMTimeMake(1, yourDesiredFrameRate).

Depth can be delivered only as an even fraction of the video frame rate. By setting a maximum depth frame rate, you ensure that the depth rate doesn’t climb above a certain threshold. For instance, if you need only intermittent depth data buffers, at a maximum of 10 fps, you can set activeDepthDataMinFrameDuration to CMTimeMake(1, 10). If you’re using a high fps video format, such as the 720p60 format that supports depth, you can get video at a high rate of 60 and still get depth at the low rate of 10.

See Also

Examining Depth Capture Attributes

var supportedDepthDataFormats: [AVCaptureDevice.Format]

The list of data formats compatible with this video format.

var isPortraitEffectsMatteStillImageDeliverySupported: Bool

A Boolean indicating whether the device supports portrait matte effects in still-image capture.

var videoMinZoomFactorForDepthDataDelivery: CGFloat

The minimum zoom factor supported when the device is configured for depth data delivery.

var videoMaxZoomFactorForDepthDataDelivery: CGFloat

The maximum zoom factor supported when the device is configured for depth data delivery.

enum AVCaptureDevice.LensStabilizationStatus

Constants that indicate the status of optical image stabilization hardware during a bracketed photo capture.