public class CIFilter extends NSObject implements NSSecureCoding, NSCopying
The CIFilter class produces a CIImage object as output. Typically, a filter takes one or more images as input. Some filters, however, generate an image based on other types of input parameters. The parameters of a CIFilter object are set and retrieved through the use of key-value pairs. You use the CIFilter object in conjunction with the CIImage, CIContext, CIVector, CIImageAccumulator, and CIColor objects to take advantage of the built-in Core Image filters when processing images. CIFilter objects are also used along with CIKernel, CISampler, and CIFilterShape objects to create custom filters.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CIFilter(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static CIFilter |
alloc() |
static CIFilter |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSDictionary<java.lang.String,?> |
attributes()
Returns a dictionary containing key/value pairs describing the filter.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static NSArray<? extends CIFilter> |
filterArrayFromSerializedXMPInputImageExtentError(NSData xmpData,
CGRect extent,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Return an array of CIFilters de-serialized from XMP data.
|
static NSArray<java.lang.String> |
filterNamesInCategories(NSArray<java.lang.String> categories)
Returns an array containing all published filter names that belong to all listed categories.
|
static NSArray<java.lang.String> |
filterNamesInCategory(java.lang.String category)
Returns an array containing all published filter names in a category.
|
static CIFilter |
filterWithCVPixelBufferPropertiesOptions(CVBufferRef pixelBuffer,
NSDictionary<?,?> properties,
NSDictionary<java.lang.String,?> options)
Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage".
|
static CIFilter |
filterWithImageDataOptions(NSData data,
NSDictionary<java.lang.String,?> options)
Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage".
|
static CIFilter |
filterWithImageURLOptions(NSURL url,
NSDictionary<java.lang.String,?> options)
Returns a CIFilter that will in turn return a properly processed CIImage as "outputImage".
|
static CIFilter |
filterWithName(java.lang.String name)
Creates a new filter of type 'name'.
|
static CIFilter |
filterWithNameKeysAndValues(java.lang.String name,
java.lang.Object key0,
java.lang.Object... varargs)
Creates a new filter of type 'name'.
|
static CIFilter |
filterWithNameWithInputParameters(java.lang.String name,
NSDictionary<java.lang.String,?> params)
Creates a new filter of type 'name'.
|
static long |
hash_static() |
CIFilter |
init() |
CIFilter |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSArray<java.lang.String> |
inputKeys()
Returns an array containing the names of all inputs in the filter.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static java.lang.String |
localizedDescriptionForFilterName(java.lang.String filterName)
Returns the localized description of a filter for display in the UI.
|
static java.lang.String |
localizedNameForCategory(java.lang.String category)
Returns the localized name of a category for display in the UI.
|
static java.lang.String |
localizedNameForFilterName(java.lang.String filterName)
Returns the localized name of a filter for display in the UI.
|
static NSURL |
localizedReferenceDocumentationForFilterName(java.lang.String filterName)
Returns the URL to the localized reference documentation describing the filter.
|
java.lang.String |
name() |
static CIFilter |
new_objc() |
CIImage |
outputImage() |
NSArray<java.lang.String> |
outputKeys()
Returns an array containing the names of all outputs in the filter.
|
static void |
registerFilterNameConstructorClassAttributes(java.lang.String name,
CIFilterConstructor anObject,
NSDictionary<java.lang.String,?> attributes)
Publishes a new filter called 'name'.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static NSData |
serializedXMPFromFiltersInputImageExtent(NSArray<? extends CIFilter> filters,
CGRect extent)
Given an array of filters, serialize the filters' parameters
into XMP form that is suitable for embedding in to an image.
|
void |
setDefaults()
Sets all inputs to their default values (where default values are defined, other inputs are left as-is).
|
void |
setName(java.lang.String aString) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static NSArray<java.lang.String> |
supportedRawCameraModels()
Returns a NSArray containing the names of all supported RAW cameras.
|
static boolean |
supportsSecureCoding() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CIFilter alloc()
public static CIFilter allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static NSArray<? extends CIFilter> filterArrayFromSerializedXMPInputImageExtentError(NSData xmpData, CGRect extent, org.moe.natj.general.ptr.Ptr<NSError> outError)
public static NSArray<java.lang.String> filterNamesInCategories(NSArray<java.lang.String> categories)
public static NSArray<java.lang.String> filterNamesInCategory(java.lang.String category)
public static CIFilter filterWithCVPixelBufferPropertiesOptions(CVBufferRef pixelBuffer, NSDictionary<?,?> properties, NSDictionary<java.lang.String,?> options)
Note that when using this initializer, you should pass in a CVPixelBufferRef with one of the following Raw pixel format types kCVPixelFormatType_14Bayer_GRBG, kCVPixelFormatType_14Bayer_RGGB, kCVPixelFormatType_14Bayer_BGGR, kCVPixelFormatType_14Bayer_GBRG as well as the root properties attachment from the CMSampleBufferRef.
public static CIFilter filterWithImageDataOptions(NSData data, NSDictionary<java.lang.String,?> options)
Note that when using this initializer, you should pass in a source type identifier hint (kCGImageSourceTypeIdentifierHint) key/value pair in order to help the decoder determine the file type, as otherwise confusion and incorrect results are possible.
public static CIFilter filterWithImageURLOptions(NSURL url, NSDictionary<java.lang.String,?> options)
public static CIFilter filterWithName(java.lang.String name)
public static CIFilter filterWithNameKeysAndValues(java.lang.String name, java.lang.Object key0, java.lang.Object... varargs)
public static CIFilter filterWithNameWithInputParameters(java.lang.String name, NSDictionary<java.lang.String,?> params)
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static java.lang.String localizedDescriptionForFilterName(java.lang.String filterName)
public static java.lang.String localizedNameForCategory(java.lang.String category)
public static java.lang.String localizedNameForFilterName(java.lang.String filterName)
public static NSURL localizedReferenceDocumentationForFilterName(java.lang.String filterName)
The URL can be a local file or a remote document on a webserver. It is possible, that this method returns nil (like filters that predate this feature). A client of this API has to handle this case gracefully.
public static CIFilter new_objc()
public static void registerFilterNameConstructorClassAttributes(java.lang.String name,
CIFilterConstructor anObject,
NSDictionary<java.lang.String,?> attributes)
The constructor object 'anObject' should implement the filterWithName: method. That method will be invoked with the name of the filter to create. The class attributes must have a kCIAttributeFilterCategories key associated with a set of categories.
attributes - Dictionary of the registration attributes of the filter. See below for attribute keys.public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static NSData serializedXMPFromFiltersInputImageExtent(NSArray<? extends CIFilter> filters, CGRect extent)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public NSDictionary<java.lang.String,?> attributes()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic CIFilter initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSArray<java.lang.String> inputKeys()
public java.lang.String name()
public CIImage outputImage()
public NSArray<java.lang.String> outputKeys()
public void setDefaults()
public void setName(java.lang.String aString)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic static NSArray<java.lang.String> supportedRawCameraModels()