CVPixelBufferLockBaseAddress why? Capture still image using AVFoundation
问题 I'm writing an iPhone app that creates still images from the camera using AVFoundation. Reading the programming guide I've found a code that does almost I need to do, so I'm trying to "reverse engineering" and understand it. I'm founding some difficulties to understand the part that converts a CMSampleBuffer into an image. So here is what I understood and later the code. The CMSampleBuffer represent a buffer in the memory where the image with additional data is stored. Later I call the