-/*! ========================================================================
-** Synfig
-** Template File
-** $Id: radialblur.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $
+/* === S Y N F I G ========================================================= */
+/*! \file radialblur.cpp
+** \brief Template Header
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** This package is free software; you can redistribute it and/or
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** This package is free software; you can redistribute it and/or
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details.
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details.
ret.push_back(ParamDesc("origin")
.set_local_name(_("Origin"))
.set_description(_("Point where you want the origin to be"))
ret.push_back(ParamDesc("origin")
.set_local_name(_("Origin"))
.set_description(_("Point where you want the origin to be"))
if(!context.accelerated_render(surface,quality,renddesc,cb))
return false;
tmp_surface=*surface;
if(!context.accelerated_render(surface,quality,renddesc,cb))
return false;
tmp_surface=*surface;
if(quality>=9)steps=20;
else if(quality>=5)steps=30;
else if(quality>=4)steps=60;
else if(quality>=3)steps=100;
else steps=120;
if(quality>=9)steps=20;
else if(quality>=5)steps=30;
else if(quality>=4)steps=60;
else if(quality>=3)steps=100;
else steps=120;
for(y=0,pos[1]=tl[1];y<h;y++,apen.inc_y(),apen.dec_x(x),pos[1]+=ph)
for(x=0,pos[0]=tl[0];x<w;x++,apen.inc_x(),pos[0]+=pw)
{
for(y=0,pos[1]=tl[1];y<h;y++,apen.inc_y(),apen.dec_x(x),pos[1]+=ph)
for(x=0,pos[0]=tl[0];x<w;x++,apen.inc_x(),pos[0]+=pw)
{
int x0(round_to_int(begin[0])),
y0(round_to_int(begin[1])),
x1(round_to_int(end[0])),
y1(round_to_int(end[1]));
int x0(round_to_int(begin[0])),
y0(round_to_int(begin[1])),
x1(round_to_int(end[0])),
y1(round_to_int(end[1]));
int i;
int steep = 1;
int sx, sy; /* step positive or negative (1 or -1) */
int dx, dy; /* delta (difference in X and Y between points) */
int e;
int w(tmp_surface.get_w()),h(tmp_surface.get_h());
int i;
int steep = 1;
int sx, sy; /* step positive or negative (1 or -1) */
int dx, dy; /* delta (difference in X and Y between points) */
int e;
int w(tmp_surface.get_w()),h(tmp_surface.get_h());