Type Method

formatForInputAtIndex:

Method to override for returning the image processing kernel's input pixel format.

Declaration

+ (CIFormat)formatForInputAtIndex:(int)input;

Parameters

input

Index of this image processor in a multi-step workflow.

Return Value

Core Image pixel format CIFormat constant revealing the processor's input pixel format.

Discussion

Override this method and the outputFormat property getter to customize your processor's input and output pixel format.

The format must be one of CIFormat: kCIFormatBGRA8, kCIFormatRGBAh, kCIFormatRGBAf, or kCIFormatR8. If the outputFormat is 0, then the output will be a supported format that best matches the rendering context's workingFormat.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software