Converting RGBA to ARGB (glReadPixels -> AVAssetWriter)

前端 未结 5 1851
时光取名叫无心
时光取名叫无心 2021-01-06 17:37

I want to record images, rendered with OpenGL, into a movie-file with the help of AVAssetWriter. The problem arises, that the only way to access pixels from an

5条回答
  •  感情败类
    2021-01-06 18:08

    What happens if you put an extra 128 bytes of slack on the end of your buffer? It might be that OpenGL is trying to fill 4/8/16/etc bytes at a time for performance, and has a bug when the buffer is non-aligned or something. It wouldn't be the first time a performance optimization in OpenGL had issues on an edge case :)

提交回复
热议问题