I have a CIFilter
pipeline.
It currently outputs UIImage
using:
private func renderImage(ciImage: CIImage) -> UIImage?
{
let cgImage = Filter.context.createCGImage(ciImage, from: ciImage.extent)
return cgImage.map(UIImage.init)
}
This UIImage
is later converted to JPEG and stored.
There's now a demand to filter images in bulk and skip the UIImage
format. This needs to be done as fast as possible.
Here are a few ways to do this.
Which way is the fastest?