Class CIFilter

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
CIRAWFilter

public class CIFilter
extends NSObject
implements NSSecureCoding
  • Constructor Details

  • Method Details

    • getOutputImage

      public CIImage getOutputImage()
    • getName

      public String getName()
    • setName

      public void setName​(String v)
    • getInputKeys

      public NSArray<NSString> getInputKeys()
    • getOutputKeys

      public NSArray<NSString> getOutputKeys()
    • getAttributes

      public NSDictionary<NSString,​?> getAttributes()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • create

      protected static long create​(String name, Object... inputParameters)
      Creates a new CIFilter with the specified name. You can specify the input parameters as key-value pairs (String <-> Object). Currently a maximum of 10 key-value pairs is supported. The key of a key-value pair needs to be of type String or NSString. The value of a key-value pair needs to be a String, a Number or a subtype of NSObject.
      Parameters:
      name -
      inputParameters -
      Returns:
    • setDefaults

      public void setDefaults()
    • create

      protected static long create​(String name)
    • create

      protected static long create​(String name, CIFilterInputParameters params)
    • getFilterNames

      public static List<String> getFilterNames​(CIFilterCategory category)
    • getFilterNames

      public static List<String> getFilterNames​(List<CIFilterCategory> categories)
    • register

      public static void register​(String name, CIFilterConstructor anObject, NSDictionary<NSString,​?> attributes)
      Since:
      Available in iOS 9.0 and later.
    • localizedNameForFilterName

      public static String localizedNameForFilterName​(String filterName)
      Since:
      Available in iOS 9.0 and later.
    • localizedNameForCategory

      public static String localizedNameForCategory​(String category)
      Since:
      Available in iOS 9.0 and later.
    • localizedDescriptionForFilterName

      public static String localizedDescriptionForFilterName​(String filterName)
      Since:
      Available in iOS 9.0 and later.
    • localizedReferenceDocumentationForFilterName

      public static NSURL localizedReferenceDocumentationForFilterName​(String filterName)
      Since:
      Available in iOS 9.0 and later.
    • serializeToXMP

      public static NSData serializeToXMP​(NSArray<CIFilter> filters, CGRect extent)
    • deserializeFromXMP

      public static NSArray<CIFilter> deserializeFromXMP​(NSData xmpData, CGRect extent) throws NSErrorException
      Throws:
      NSErrorException
    • create

      @Deprecated protected static long create​(NSURL url, CIRAWFilterOptions options)
      Deprecated.
      Use new CIRAWFilter class instead.
      Since:
      Available in iOS 10.0 and later.
    • create

      @Deprecated protected static long create​(NSData data, CIRAWFilterOptions options)
      Deprecated.
      Use new CIRAWFilter class instead.
      Since:
      Available in iOS 10.0 and later.
    • create

      @Deprecated protected static long create​(CVPixelBuffer pixelBuffer, NSDictionary<?,​?> properties, CIRAWFilterOptions options)
      Deprecated.
      Use new CIRAWFilter class instead.
      Since:
      Available in iOS 10.0 and later.
    • supportedRawCameraModels

      @Deprecated public static NSArray<NSString> supportedRawCameraModels()
      Deprecated.
      Use new CIRAWFilter class instead.
      Since:
      Available in iOS 13.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)