Richard Spindler just created a new Frei0r filter, that takes 4 points as parameters,
and distorts the image such that its corners fit to those 4 points.
It is propably better explained through the screenshot below (click it for a larger view).

The code is available here:
http://propirate.net/oracle/zipfiles/perspective.c