Filters

From Gnash Project Wiki

Jump to: navigation, search

filters namespace

ActionScript Class Test Case Status Notes
BevelFilter Completed. Properly tests the existence and return values of methods and properties for all versions of flash.
BitmapFilterQuality Completed. Tests that this class creates an object.
BitmapFilterType Completed. Tests that this class creates an object.
BitmapFilter Completed. Tests that this class creates an object.
BlurFilter Completed. Tests that this class creates an object and has the correct number types (int, float, uint).
ColorMatrixFilter Completed. Tests that this class creates an object and is passed an array as an argument.
ConvolutionFilter Completed. Tests that this class creates an object and arguments are of the correct type.
DisplacementMapFilterMode Completed. Tests that this class creates an object.
DisplacementMapFilter Completed. Tests that the arguments are of the correct type and that the object is created.
DropShadowFilter Completed. Tests that the arguments are of the correct type and that the object is created.
GlowFilter Completed. Tests that the arguments are of the correct type and that the object is created.
GradientBevelFilter Completed. Tests that the arguments are of the correct type and that the object is created.
GradientGlowFilter Completed. Tests that the arguments are of the correct type and that the objected is created.

SWF (starting at version 8) allows bitmap filters to be applied to display objects, that is, character instances (gnash::character). Adding filters implies that the display object will be cached as a bitmap.

I ("JucaBlues") have implemented some of the SVG Filters in Inkscape, which are similar to the ones defined in SWF spec. One of the renderers used by gnash is Cairo. From my experience in Inkscape I can tell that currently (September 2008) Cairo does not render filter primitives. All filtering code was written in Inkscape itself.

The ideal strategy would be to port Inkscape's filtering routines to libcairo and then use it in Gnash through its cairo renderer.

contact

Felipe CorrĂȘa da Silva Sanches
<felipe.sanches@gmail.com>
JucaBlues at #inkscape irc.freenode.net