One approach you could take is to use a double buffer technique, where you have two buffers that alternate between being used for image capture and processing/display.
Configure the camera to capture images and transfer them to memory. This can be done in either snapshot or continuous mode depending on your application requirements.Set up the DMA controller to transfer the image data from the camera to a buffer in ...