# random_noise.cpp File Reference

blehh More...

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

## Defines

#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$

## Define Documentation

#define PI (3.1415927)

Referenced by synfig::ValueNode_Random::operator()(), RandomNoise::operator()(), Random::operator()(), spherify(), and unspherify().

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

Referenced by Warp::accelerated_render(), Layer_Shade::accelerated_render(), RadialBlur::accelerated_render(), Noise::accelerated_render(), Layer_Freetype::accelerated_render(), synfig::ValueNode_DynamicList::ListEntry::amount_at_time(), synfig::Gamma::b_F32_to_U16(), synfig::Gamma::b_F32_to_U8(), blendfunc_DARKEN(), blendfunc_OVERLAY(), blendfunc_SCREEN(), synfig::Surface::blit_to(), convert_surface_frame(), CurveGradient::CurveGradient(), CurveWarp::CurveWarp(), yuv::end_frame(), synfig::Palette::find_closest(), synfig::ValueNode_DynamicList::ListEntry::find_time(), synfig::ValueNode_Animated::find_time(), synfig::ValueNode_DynamicList::ListEntry::find_uid(), synfig::ValueNode_Animated::find_uid(), synfig::Gamma::g_F32_to_U16(), synfig::Gamma::g_F32_to_U8(), Layer_Shade::get_color(), Layer_Bevel::get_color(), 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(), synfig::ValueNode_BLine::operator()(), RandomNoise::operator()(), Random::operator()(), Halftone::operator()(), synfig::Color::operator~(), synfig::optimize_layers(), Outline::Outline(), Plant::Plant(), synfig::Gamma::r_F32_to_U16(), synfig::Gamma::r_F32_to_U8(), 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::Waypoint::Waypoint().

#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))))

Referenced by RandomNoise::operator()(), and Random::operator()().

#define FT | ( | i,
|  | j,
|  | k,
|  | l |  | ) | ((*this)(subseed,i+x,j+y,l)*(R((i)-a)*R(b-(j))*R((k)-c)))

Referenced by RandomNoise::operator()(), and Random::operator()().

#define Z | ( | i,
|  | j |  | ) | ret+=F(i,j)

Referenced by RandomNoise::operator()(), and Random::operator()().

#define ZT | ( | i,
|  | j,
|  | k,
|  | l |  | ) | ret+=FT(i,j,k,l)

Referenced by RandomNoise::operator()(), and Random::operator()().

#define X | ( | i,
|  | j |  | ) |

Referenced by RandomNoise::operator()(), and Random::operator()().

#define XT | ( | i,
|  | j,
|  | k,
|  | l |  | ) |

Referenced by RandomNoise::operator()(), and Random::operator()().