Instance Method


Returns a derivative depth data object by replacing the depth data map.


- (instancetype)depthDataByReplacingDepthDataMapWithPixelBuffer:(CVPixelBufferRef)pixelBuffer error:(NSError * _Nullable *)outError;



A pixel buffer containing depth or disparity information in a compatible format.

Return Value

A new depth data object containing the pixel buffer.


If you apply simple transforms to media containing depth data, you can use the depthDataByApplyingExifOrientation: method to apply parallel transforms to the corresponding depth data. More complex transforms and edits require creating a derivative depth map reflecting whatever edits you make to the corresponding image. In such cases, use this depthDataByReplacingDepthDataMapWithPixelBuffer:error: method to create a derivative depth data object.

See Also

Transforming and Processing

- depthDataByApplyingExifOrientation:

Returns a derivative depth data object by mirroring or rotating it to the specified orientation.

- depthDataByConvertingToDepthDataType:

Returns a derivative depth data object by converting the depth data map to the specified data type.


The list of depth data formats to which this depth data can be converted.