HybridFrameConverter

The platform's FrameConverter (V5's HybridFrameConverter).

Functions

Link copied to clipboard
open override fun convertDepthToImage(depth: Depth): Image

Converts the given depth frame to an Image, with its orientation and mirroring applied. The resulting image is a grey-scale RGB image, where black pixels are far away and white pixels are close by.

Link copied to clipboard
open suspend override fun convertDepthToImageAsync(depth: Depth): Image

Same as convertDepthToImage, but runs on a background dispatcher. The depth must not be disposed before this returns.

Link copied to clipboard
open override fun convertFrameToImage(frame: Frame): Image

Converts the given frame to an Image, with its orientation and mirroring applied. This performs a CPU copy, synchronously on the calling thread.

Link copied to clipboard
open suspend override fun convertFrameToImageAsync(frame: Frame): Image

Same as convertFrameToImage, but runs on a background dispatcher. The frame must not be disposed before this returns.