Hi @ll
I want to convert a UIImage object to a CVPixelBufferRef object, but I have absolutly no idea. And I can't find any example code doing anything like this.
Can someone please help me? THX in advance!
C YA
Hi @ll
I want to convert a UIImage object to a CVPixelBufferRef object, but I have absolutly no idea. And I can't find any example code doing anything like this.
Can someone please help me? THX in advance!
C YA
A CVPixelBufferRef is what core video uses for camera input.
You can create similar pixel bitmaps from images using CGBitmapContextCreate and then drawing the image into the bitmap context.