Contents

dictionaryRepresentation(forAuxiliaryDataType:)

Returns a dictionary representation of the depth data suitable for writing into an image file.

Declaration

func dictionaryRepresentation(forAuxiliaryDataType outAuxDataType: AutoreleasingUnsafeMutablePointer<NSString?>?) -> [AnyHashable : Any]?

Parameters

Discussion

When using CGImageDestination functions to write depth data (along with image data) to a HEIF, JPEG, or DNG file, you can use this method to obtain a dictionary of primitive depth map information, then use the CGImageDestinationAddAuxiliaryDataInfo(_:_:_:) function to embed that data into the output file.

See Also

Creating depth data