Companion

expect object Companion

Functions

Link copied to clipboard
expect fun fromBytes(bytes: ByteArray): LiteRtImage

Decodes an image from its encoded byte representation.

Link copied to clipboard
expect fun fromRawRgb(data: ByteArray, width: Int, height: Int): LiteRtImage

Creates a LiteRtImage from raw RGB pixel data.

Link copied to clipboard
expect fun fromVideoFrame(frame: Any, rotation: ImageRotation = ImageRotation.ROTATION_0, flip: ImageFlip = ImageFlip()): LiteRtImage

Creates a LiteRtImage from a platform-specific video frame or image object.