---
title: AVCaptureDepthDataOutput
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avcapturedepthdataoutput
---

# AVCaptureDepthDataOutput

A capture output that records scene depth information on compatible camera devices.

## Declaration

```swift
class AVCaptureDepthDataOutput
```

## Overview

Overview This output type captures AVDepthData objects containing per-pixel depth or disparity information, following a streaming delivery model similar to that used by AVCaptureVideoDataOutput. Alternatively, you can capture depth data alongside photos using AVCapturePhotoOutput (see the AVCapturePhotoSettings isDepthDataDeliveryEnabled property). This object always provides depth data in the format expressed by the source AVCaptureDevice object’s activeDepthDataFormat property. If you wish to receive depth data in another format, choose a new value for that property from those listed in the supportedDepthDataFormats array of the device’s activeFormat object.

## Topics

### Creating a depth data output

- [init()](avfoundation/avcapturedepthdataoutput/init().md)

### Configuring depth data capture

- [alwaysDiscardsLateDepthData](avfoundation/avcapturedepthdataoutput/alwaysdiscardslatedepthdata.md)
- [isFilteringEnabled](avfoundation/avcapturedepthdataoutput/isfilteringenabled.md)

### Receiving captured depth data

- [setDelegate(_:callbackQueue:)](avfoundation/avcapturedepthdataoutput/setdelegate(_:callbackqueue:).md)
- [delegate](avfoundation/avcapturedepthdataoutput/delegate.md)
- [delegateCallbackQueue](avfoundation/avcapturedepthdataoutput/delegatecallbackqueue.md)
- [AVCaptureDepthDataOutputDelegate](avfoundation/avcapturedepthdataoutputdelegate.md)

## Relationships

### Inherits From

- [AVCaptureOutput](avfoundation/avcaptureoutput.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Depth data capture

- [Capturing photos with depth](avfoundation/capturing-photos-with-depth.md)
- [Creating auxiliary depth data manually](avfoundation/creating-auxiliary-depth-data-manually.md)
- [Capturing depth using the LiDAR camera](avfoundation/capturing-depth-using-the-lidar-camera.md)
- [AVCamFilter: Applying filters to a capture stream](avfoundation/avcamfilter-applying-filters-to-a-capture-stream.md)
- [Streaming depth data from the TrueDepth camera](avfoundation/streaming-depth-data-from-the-truedepth-camera.md)
- [Enhancing live video by leveraging TrueDepth camera data](avfoundation/enhancing-live-video-by-leveraging-truedepth-camera-data.md)
- [AVDepthData](avfoundation/avdepthdata.md)
- [AVCameraCalibrationData](avfoundation/avcameracalibrationdata.md)
