How to write a filter
Write a GEGL operation (a.k.a. GEGL plug-ins)