@@ -72,7 +72,7 @@ Each filter in a filter chain, is described by the filter name, a name identifie
...
@@ -72,7 +72,7 @@ Each filter in a filter chain, is described by the filter name, a name identifie
}
}
```
```
In the above json example, the core image filter to be created is a Core Image Unsharp Mask filter. The filter is given the identifier "com.yvs.documentation.renderingfilterchain.unsharpmask" and the filter takes three inputs. These are the input radius, which takes a numeric value, the input intensity which also takes a numeric value and an input image which takes a dictionary/json object which describes how to obtain the image.
In the above json example, the core image filter to be created is a Core Image Unsharp Mask filter. The filter is given the identifier "com.zukini.documentation.renderingfilterchain.unsharpmask" and the filter takes three inputs. These are the input radius, which takes a numeric value, the input intensity which also takes a numeric value and an input image which takes a dictionary/json object which describes how to obtain the image.
When an input is an image, then the input value is a way to obtain the image and is a json object. The image can be sourced as the output image of a previous filter in the filter chain and if that was the case then the key in the object would be "cifilterindex" and the value is an index to an earlier filter in the filter chain or a key "mifiltername" and the value would be a string which is the name identifier of the earlier filter. If the image is sourced from a bitmap context then the key in the object would be "objectreference" as in the above example which refers to a base object with reference 0. The image can also come from an image importer object in which case the "objectreference" key is also used but that a "imageindex" key should also be supplied specifying the index of the image in the image file. If "imageindex" is not specified and the object reference refers to an image importer object then "imageindex" defaults to 0. When obtaining an image from an object like an image importer, bitmap context, or movie importer the objecttype/objectname combination can be used in place of objectreference to obtain the object to obtain the image from.
When an input is an image, then the input value is a way to obtain the image and is a json object. The image can be sourced as the output image of a previous filter in the filter chain and if that was the case then the key in the object would be "cifilterindex" and the value is an index to an earlier filter in the filter chain or a key "mifiltername" and the value would be a string which is the name identifier of the earlier filter. If the image is sourced from a bitmap context then the key in the object would be "objectreference" as in the above example which refers to a base object with reference 0. The image can also come from an image importer object in which case the "objectreference" key is also used but that a "imageindex" key should also be supplied specifying the index of the image in the image file. If "imageindex" is not specified and the object reference refers to an image importer object then "imageindex" defaults to 0. When obtaining an image from an object like an image importer, bitmap context, or movie importer the objecttype/objectname combination can be used in place of objectreference to obtain the object to obtain the image from.
...
@@ -93,7 +93,7 @@ When a filter takes a numeric input, then the "cifiltervalueclass" key is not ne
...
@@ -93,7 +93,7 @@ When a filter takes a numeric input, then the "cifiltervalueclass" key is not ne
The above filter description, was generated from the following ruby script:
The above filter description, was generated from the following ruby script: