convert

abstract fun convert(pixelFormat: DepthPixelFormat): Depth

Returns a new Depth frame converted to the given pixelFormat, one of availableDepthPixelFormats. The result must be disposed too. This runs synchronously, on the calling thread.