CVPixelBuffer cloning - how?

Say I have a pixel buffer associated with a variable:

CVPixelBufferRef a;

I want to clone this buffer with all the contents and assign the cloned one to another. What is the best and fastest way to do this?

+3
source share
1 answer

So far I have not found a better solution than memcpy (). I hope he copies all the necessary data.

+2
source

All Articles