Instance Property

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 nose, preserving detail in low light, and freezing motion—can take significant processing time before the photo is returned to your delegate callback. This property allows you to specify your preferred quality versus speed of delivery.

By default, speed and quality are of equal importance. Specifying AVCapturePhotoOutput.QualityPrioritization.speed indicates that you are prioritizing speed at the expense of quality. Likewise, when you choose AVCapturePhotoOutput.QualityPrioritization.quality, you indicate that you are prioritizing the very best quality at the expense of speed, and your readiness to wait longer (perhaps significantly so) for the photo to be returned to your delegate.

The default value for this property is AVCapturePhotoOutput.QualityPrioritization.balanced.

See Also

Configuring Photo Settings

var flashMode: AVCaptureDevice.FlashMode

A setting for whether to fire the flash when capturing photos.

var isAutoRedEyeReductionEnabled: Bool

A Boolean value that determines whether to use auto red-eye reduction on flash captures.

var isHighResolutionPhotoEnabled: Bool

A Boolean value that specifies whether to capture still images at the highest resolution supported by the active device and format.

var isCameraCalibrationDataDeliveryEnabled: Bool

A Boolean value that determines whether a dual photo capture also delivers camera calibration data.

var isAutoVirtualDeviceFusionEnabled: Bool

A Boolean value that specifies whether to use automatic virtual-device image fusion.

var virtualDeviceConstituentPhotoDeliveryEnabledDevices: [AVCaptureDevice]

The constituent devices for which the virtual device should deliver photos.

var isAutoStillImageStabilizationEnabled: Bool

A Boolean value that specifies whether captures use automatic image stabilization.

Deprecated
var isAutoDualCameraFusionEnabled: Bool

A Boolean value that specifies whether captures automatically combine data from a dual camera device.

Deprecated
var isDualCameraDualPhotoDeliveryEnabled: Bool

A Boolean value that determines whether a dual camera device delivers images from both cameras.

Deprecated