Converting RGBA to ARGB (glReadPixels -> AVAssetWriter)

前端 未结 5 1754
时光取名叫无心
时光取名叫无心 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 17:54

    You will need to shift bytes by doing a memcpy or other copy operation. Modifying the pointers will leave them unaligned, which may or may not be within the capabilities of any underlying hardware (DMA bus widths, tile granularity, etc.)

提交回复
热议问题