How to apply a Vignette CIFilter to a live camera feed in iOS?

Your step 2 is way too slow to support real-time rendering… and it looks like you’re missing a couple of steps. For your purpose, you would typically: Setup: create a pool of CVPixelBuffer – using CVPixelBufferPoolCreate create a pool of metal textures using CVMetalTextureCacheCreate For each frame: convert CMSampleBuffer > CVPixelBuffer > CIImage Pass that … Read more