A container for writing image data and information produced by a custom image processor.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- Core Image
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
In your image processor class'
process(with: method, use an appropriate property of the provided
CIImage object to return processed pixel data to Core Image. For example, if you process the image using a Metal shader, bind the
metal 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 the
base 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