问题
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