Cloning CVPixelBuffer - how to?

喜夏-厌秋 提交于 2019-12-10 22:16:46

问题


Say I have some pixel buffer associated with variable:

CVPixelBufferRef a;

I want to clone that buffer with all it contents and assign the cloned one to another variable. What is the most correct and fast way to do that?


回答1:


So far I did not find a better solution than memcpy(). Hope it copies all the needed data.



来源:https://stackoverflow.com/questions/10677107/cloning-cvpixelbuffer-how-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!