synfig-core  1.0.3
Macros
random_noise.cpp File Reference

blehh More...

#include <synfig/general.h>
#include "random_noise.h"
#include <synfig/quick_rng.h>
#include <cmath>
#include <cstdlib>

Macros

#define PI   (3.1415927)
#define f(j, i, k)   ((*this)(subseed,i,j,k))
#define P(x)   (((x)>0)?((x)*(x)*(x)):0.0f)
#define R(x)   ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)
#define F(i, j)   ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))
#define FT(i, j, k, l)   ((*this)(subseed,i+x,j+y,l)*(R((i)-a)*R(b-(j))*R((k)-c)))
#define Z(i, j)   ret+=F(i,j)
#define ZT(i, j, k, l)   ret+=FT(i,j,k,l)
#define X(i, j)
#define XT(i, j, k, l)

Detailed Description

blehh

$Id$

Macro Definition Documentation

#define PI   (3.1415927)
#define f (   j,
  i,
 
)    ((*this)(subseed,i,j,k))

Referenced by synfig::Layer_SolidColor::accelerated_cairorender(), RadialBlur::accelerated_cairorender(), SimpleCircle::accelerated_cairorender(), ConicalGradient::accelerated_cairorender(), RadialGradient::accelerated_cairorender(), synfig::Layer_Bitmap::accelerated_cairorender(), LinearGradient::accelerated_cairorender(), Warp::accelerated_cairorender(), Layer_Shade::accelerated_render(), RadialBlur::accelerated_render(), Noise::accelerated_render(), Warp::accelerated_render(), Layer_Freetype::accelerated_render(), Advanced_Outline::Advanced_Outline(), synfig::ValueNode_DynamicList::ListEntry::amount_at_time(), synfig::Gamma::b_F32_to_U16(), synfig::Gamma::b_F32_to_U8(), synfig::Surface::blit_to(), synfig::CairoSurface::blit_to(), synfig::CairoListImporter::CairoListImporter(), CurveGradient::CurveGradient(), CurveWarp::CurveWarp(), yuv::end_frame(), synfig::Palette::find_closest(), synfig::ValueNode_Animated::find_time(), synfig::ValueNode_DynamicList::ListEntry::find_time(), synfig::ValueNode_Animated::find_uid(), synfig::ValueNode_DynamicList::ListEntry::find_uid(), synfig::Gamma::g_F32_to_U16(), synfig::Gamma::g_F32_to_U8(), synfig::get_binary_path(), Layer_Shade::get_color(), Layer_Bevel::get_color(), synfig::FileSystemNative::get_read_stream(), synfig::FileSystemNative::get_write_stream(), synfig::Color::gray(), synfig::Palette::grayscale(), dv_trgt::init(), laguer(), synfig::Layer::Layer(), synfig::Layer_Clamp::Layer_Clamp(), line_intersection(), synfig::ListImporter::ListImporter(), Halftone::mask(), RandomNoise::operator()(), Random::operator()(), Halftone::operator()(), synfig::ValueNode_DIList::operator()(), synfig::ValueNode_WPList::operator()(), synfig::ValueNode_BLine::operator()(), synfig::Oscillator::operator()(), synfig::CairoColor::operator/=(), synfig::Color::operator~(), Outline::Outline(), Plant::Plant(), synfig::Gamma::r_F32_to_U16(), synfig::Gamma::r_F32_to_U8(), png_trgt_spritesheet::read_png_file(), synfig::Color::real2hex(), synfig::Gamma::refresh_gamma_b(), synfig::Gamma::refresh_gamma_g(), synfig::Gamma::refresh_gamma_r(), Region::Region(), synfig::RendDesc::RendDesc(), synfig::Gamma::set_gamma(), Outline::sync(), synfig::ColorPrep::uncook(), and synfig::widthpoint_interpolate().

#define P (   x)    (((x)>0)?((x)*(x)*(x)):0.0f)
#define R (   x)    ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)
#define F (   i,
 
)    ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))
#define FT (   i,
  j,
  k,
 
)    ((*this)(subseed,i+x,j+y,l)*(R((i)-a)*R(b-(j))*R((k)-c)))
#define Z (   i,
 
)    ret+=F(i,j)
#define ZT (   i,
  j,
  k,
 
)    ret+=FT(i,j,k,l)
#define X (   i,
 
)
#define XT (   i,
  j,
  k,
 
)