Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top