[425/906] twirl: get rid of polar coordinates conversion
authorFilippo Argiolas <filippo.argiolas@gmail.com>
Sat, 24 Apr 2010 19:11:35 +0000 (21:11 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:39 +0000 (18:36 +0100)
commit7ee7688ae869a8d73ead7942a7d589cba7f39339
tree85bf4b9a1efaec3867108df8c19a379253e089a7
parent797250d9c25b0832930deec0b0678c3e91dd2d0e
[425/906] twirl: get rid of polar coordinates conversion

Get rid of polar coordinates in the twirl effect. The same can be done
using a rotation matrix, saving alu instructions and, most of all,
avoiding the use of the evil atan() function (which uses IF operators).
Calculate rotation angle in a saner, understandable way.
Works on i915! (Hope it still works elsewhere too as I'm not able to
test at the moment)
gst/gl/effects/gstgleffectssources.c