CIImageProcessorOutput
A container for writing image data and information produced by a custom image processor.
Declaration
protocol CIImageProcessorOutputOverview
Your app does not define classes that adopt this protocol; Core Image provides an object of this type when applying a custom image processor you create with a CIImageProcessorKernel subclass.
In your image processor class’ process(with:arguments:output:) method, use an appropriate property of the provided CIImageProcessorOutput object to return processed pixel data to Core Image. For example, if you process the image using a Metal shader, bind the metalTexture property as an attachment in a render pass or as an output texture in a compute pass. Or, if you process the image using a CPU-based routine, write processed pixel data to memory using the baseAddress pointer. You must provide rendered output to one (and only one) of the properties listed in Providing Output Image Data.
To access input pixel data in your image processor block, see the CIImageProcessorInput class.