The output you get from the camera in iOS is a CMSampleBufferRef
, with a CVPixelBufferRef
inside. (See documentation here). iOS from version 5 has CVOpenGLESTextureCache
in the CoreVideo framework, which allows you to create an OpenGL ES texture using a CVPixelBufferRef
, avoiding any copies.
Check the RosyWriter sample in Apple's developer website, it's all there.