CVOpenGLESTextureCacheCreateTextureFromImage fails to create IOSurface

前端 未结 2 1888
梦如初夏
梦如初夏 2021-01-04 00:39

For my current project I\'m reading the main camera output of the iPhone. I\'m then converting the pixelbuffer to a cached OpenGL texture through the method: CVOpenGLE

2条回答
  •  清酒与你
    2021-01-04 01:09

    We can't cast a still image texture to a CVOpenGLESTextureCacheRef. Core Video lets you map video frames directly to OpenGL textures. Using a video buffer where Core Video creates the textures and gives them to us, already in video memory.

    To create the opengles texture this link may help you Link

提交回复
热议问题