CVOpenGLESTextureCacheCreateTextureFromImage return -6683(kCVReturnPixelBufferNotOpenGLCompatible)

后端 未结 2 1803
再見小時候
再見小時候 2021-01-11 14:56

I had extract Y U V data from video frame separately and saved them in data[0],data[1],data[2];The frame size is 640*480;Now I creat the pixe

相关标签:
2条回答
  • 2021-01-11 15:23

    Does your source image/video frame have a resolution which is a power of 2? If not, you must resize it before creating the texture.

    0 讨论(0)
  • 2021-01-11 15:37

    Apple details the cause of this exact issue in Technical Q&A 1781

    The issue is that the source pixel buffer must be IOSSurface backed. Specify an empty dictionary as the value in kCVPixelBufferIOSurfacePropertiesKey

    0 讨论(0)
提交回复
热议问题