+typedef struct _gfxfilterchain {
+ gfxfilterbase_t*filter;
+ struct _gfxfilterchain*next;
+} gfxfilterchain_t;
+
+gfxfilterchain_t* gfxfilterchain_parse(const char*filterexpr);
+gfxdevice_t* gfxfilterchain_apply(gfxfilterchain_t*chain, gfxdevice_t*dev);
+void gfxfilterchain_destroy(gfxfilterchain_t*chain);
+
+#define wrap_filter(dev, name, args...) \
+ {gfxfilter_t f_##name; \
+ gfxfilter_##name##_init(&f_##name, ## args); \
+ dev = gfxfilter_apply(&f_##name, dev); \
+ }
+
+#define wrap_filter2(dev, name, args...) \
+ {gfxtwopassfilter_t f_##name; \
+ gfxtwopassfilter_##name##_init(&f_##name, ## args); \
+ dev = gfxtwopassfilter_apply(&f_##name, dev); \
+ }
+
+/* known filters */
+void gfxfilter_maketransparent_init(gfxfilter_t*f, U8 alpha);
+void gfxtwopassfilter_remove_font_transforms_init(gfxtwopassfilter_t*f);
+void gfxtwopassfilter_one_big_font_init(gfxtwopassfilter_t*f);
+void gfxtwopassfilter_vectors_to_glyphs_init(gfxtwopassfilter_t*f);
+
+