Pixel formats, CVPixelBufferRefs and glReadPixels

后端 未结 5 2042
太阳男子
太阳男子 2020-12-15 13:16

I\'m using glReadPixels to read data into a CVPixelBufferRef. I use the CVPixelBufferRef as the input into an AVAssetWriter

5条回答
  •  再見小時候
    2020-12-15 13:55

    It's kind of a shot in the dark, but have you tried GL_BGRA for glReadPixels with kCVPixelFormatType_32BGRA for CVPixelBufferCreate?

    I suggest this because Technical Q&A QA1501 doesn't list any RGBA format as supported.

提交回复
热议问题