X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_motionblur.cpp;h=e60cdee1c06ab31f2fab95790ffc532e2fb51c9d;hb=1905325be0aa16501c1a802b70da251fb5657b43;hp=b1782eedc56b7642ce510f78e40ce31134a773a5;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/layer_motionblur.cpp b/synfig-core/trunk/src/synfig/layer_motionblur.cpp index b1782ee..e60cdee 100644 --- a/synfig-core/trunk/src/synfig/layer_motionblur.cpp +++ b/synfig-core/trunk/src/synfig/layer_motionblur.cpp @@ -1,8 +1,8 @@ /* === S Y N F I G ========================================================= */ -/*! \file layer_motionblur.h +/*! \file layer_motionblur.cpp ** \brief Template Header ** -** $Id: layer_motionblur.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -51,11 +51,11 @@ using namespace std; /* === G L O B A L S ======================================================= */ SYNFIG_LAYER_INIT(Layer_MotionBlur); -SYNFIG_LAYER_SET_NAME(Layer_MotionBlur,"MotionBlur"); +SYNFIG_LAYER_SET_NAME(Layer_MotionBlur,"motion_blur"); SYNFIG_LAYER_SET_LOCAL_NAME(Layer_MotionBlur,_("Motion Blur")); SYNFIG_LAYER_SET_CATEGORY(Layer_MotionBlur,_("Blurs")); SYNFIG_LAYER_SET_VERSION(Layer_MotionBlur,"0.1"); -SYNFIG_LAYER_SET_CVS_ID(Layer_MotionBlur,"$Id: layer_motionblur.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $"); +SYNFIG_LAYER_SET_CVS_ID(Layer_MotionBlur,"$Id$"); /* === M E M B E R S ======================================================= */ @@ -64,12 +64,12 @@ Layer_MotionBlur::Layer_MotionBlur(): aperture (0) { } - + bool Layer_MotionBlur::set_param(const String ¶m, const ValueBase &value) { - IMPORT(aperture); + IMPORT(aperture); return Layer_Composite::set_param(param,value); } @@ -77,10 +77,10 @@ ValueBase Layer_MotionBlur::get_param(const String ¶m)const { EXPORT(aperture); - + EXPORT_NAME(); EXPORT_VERSION(); - + return Layer_Composite::get_param(param); } @@ -106,7 +106,7 @@ Layer_MotionBlur::get_color(Context context, const Point &pos)const Time time(time_cur); time+=(Vector::value_type)( (signed)(RAND_MAX/2)-(signed)rand() )/(Vector::value_type)(RAND_MAX) *aperture -aperture*0.5; context.set_time(time, pos); - } + } */ return context.get_color(pos); } @@ -116,12 +116,12 @@ Layer_MotionBlur::get_param_vocab()const { Layer::Vocab ret; //ret=Layer_Composite::get_param_vocab(); - + ret.push_back(ParamDesc("aperture") - .set_local_name(_("Aperature")) + .set_local_name(_("Aperture")) .set_description(_("Shutter Time")) ); - + return ret; } @@ -163,18 +163,18 @@ Layer_MotionBlur::accelerated_render(Context context,Surface *surface,int qualit samples=3; break; case 10: // Rough Quality - default: + default: samples=1; break; - + } - + Surface tmp; int i; surface->set_wh(renddesc.get_w(),renddesc.get_h()); surface->clear(); - + for(i=0;i