For executable filters, only the version number, filter class, and filter name are read from the Description.plist file. You provide a list of attributes for the filter in your code (see “Write a Custom Attributes Method”). You need to check the Description.plist file provided in the image unit template to make sure the filter name is correct and to enter the version number.
For CPU–nonexecutable filters, the image unit host reads the Description.plist file to obtain information about the filter attributes listed inTable 4-1. You need to modify the Description.plist file so that it contains the appropriate information. (For information about filter keys, see also Core Image Reference Collection.)
Key | Associated values |
|---|---|
| A dictionary of filter dictionaries. If this key is present, it indicates that there is at least one Core Image filter defined in the image unit. |
| The localized filter name available in the |
| The class name in the binary that contains the filter implementation, if available. |
| The filename of the filter kernel in the bundle, if available. Use this key to define a nonexecutable filter. |
| A dictionary of attributes that describe the filter. This is the same as the attributes dictionary that you provided when you wrote the filter. |
| An array of input keys and associated attributes. The input keys must be in the same order as the parameters of the kernel function. Each attribute must contain its parameter class (see Table 4-2) and name. |
| Reserved for future use. |
| None. Use this key to specify that the filter has a custom user interface. The host provides a view for the user interface. |
| The version of the CIPlugIn architecture, which is 1.0. |
Table 4-2 lists the input parameter classes and the value associated with each class. For a nonexecutable filter, you provide the parameter class for each input and output parameter.
Input parameter class | Associated value |
|---|---|
CIColor | A string that specifies a color. |
CIVector | A string that specifies a vector. See |
CIImage | An |
All scalar types | An |
Figure 4-4 shows the contents of a description.plist file for a color generator filter. You may want to use the Property List Editor to modify a description.plist file. The Property List Editor application is located in Developer/Applications/Utilities/.
Last updated: 2008-06-09