toUIImageOrientation

fun CameraOrientation.toUIImageOrientation(isMirrored: Boolean = false): UIImageOrientation

Converts this CameraOrientation to a UIImageOrientation, mirrored if isMirrored.

This is an extension point for plugin modules, e.g. to orient a NativeFrame's buffer for Vision or ML Kit.