Contents

photoQualityPrioritization

A setting that indicates how to prioritize photo quality against speed of photo delivery.

Declaration

var photoQualityPrioritization: AVCapturePhotoOutput.QualityPrioritization { get set }

Discussion

AVCapturePhotoOutput applies a variety of techniques to improve photo quality, depending on the source device’s activeFormat. Some of these techniques — which include reducing noise, preserving detail in low light, and freezing motion — can take significant processing time before the system returns a photo to your delegate callback. This property allows you to specify your preferred quality versus speed of delivery.

The default value of this property is AVCapturePhotoOutput.QualityPrioritization.balanced and indicates that speed and quality are of equal importance to you.

When you need to prioritize speed at the expense of quality, use AVCapturePhotoOutput.QualityPrioritization.speed. Use AVCapturePhotoOutput.QualityPrioritization.quality to prioritize the best quality at the expense of speed.

See Also

Configuring photo settings