AVCaptureDeviceTypeBuiltInDualWideCamera

Static AVCaptureDeviceTypeBuiltInDualWideCamera 

Source
pub unsafe static AVCaptureDeviceTypeBuiltInDualWideCamera: &'static AVCaptureDeviceType
Available on crate feature AVCaptureDevice only.
Expand description

A device that consists of two fixed focal length cameras, one ultra wide and one wide angle. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].

A device of this device type supports the following features:

  • Auto switching from one camera to the other when zoom factor, light level, and focus position allow this.
  • Depth data delivery by measuring the disparity of matched features between the ultra wide and wide cameras.
  • Delivery of photos from constituent devices (ultra wide and wide) via a single photo capture request.

A device of this device type does not support the following features:

  • AVCaptureExposureModeCustom and manual exposure bracketing.
  • Locking focus with a lens position other than AVCaptureLensPositionCurrent.
  • Locking auto white balance with device white balance gains other than AVCaptureWhiteBalanceGainsCurrent.

Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.

See also Apple’s documentation