IOSurface

From iPhone Development Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

IOSurface is an object encompassing a kernel-managed rectangular pixel buffer in the IOSurface framework. It is a thin wrapper on top of an IOSurfaceClient object which actually interfaces with the kernel.

Converting IOSurfaces into normal images

Signature CGImageRef UICreateCGImageFromIOSurface(IOSurfaceRef ioSurface);
Available in 3.0 –
Signature -(id)initWithIOSurface:(IOSurfaceRef)ioSurface; // UIImage method.
Available in 3.0 –

In UIKit there are functions to convert an IOSurface to CGImage and UIImage.

References