process(with:arguments:output:)
Override this class method to implement your Core Image Processor Kernel subclass.
Declaration
class func process(with inputs: [any CIImageProcessorInput]?, arguments: [String : Any]?, output: any CIImageProcessorOutput) throwsParameters
- inputs:
An array of
id<CIImageProcessorInput>that the class consumes to produce its output. Theinput.regionmay be larger than the rect returned by Roi(forinput:arguments:outputrect:). - arguments:
The arguments dictionary that was passed to Apply(withextent:inputs:arguments:).
- output:
The
id<CIImageProcessorOutput>that theCIImageProcessorKernelmust provide results to.
Discussion
When a CIImage containing your CIImageProcessorKernel class is rendered, your class’ implementation of this method will be called as needed for that render. The method may be called more than once if Core Image needs to tile to limit memory usage.
When your implementation of this class method is called, use the provided inputs and arguments objects to return processed pixel data to Core Image via output.