KMM Creating Pixel Buffer from UIImage
Hello there,
I am trying to solve an issue I’m having with creating a pixel buffer from a UIImage in Kotlin multiplatform.
My current system is setup with Kotlin as a common shared business logic (Core) and then swift running on top of it to handle the UI.
I am working with image processing on the Kotlin (core) layer.
During a capture session, I am sending frames into Core as UIImage’s.
I’m trying to create a CVPixelBuffer from the UIImage, but am getting stuck on creating the actual buffer...