26#ifndef AVFILTER_PERLIN_H
27#define AVFILTER_PERLIN_H
int ff_perlin_init(FFPerlin *perlin, double period, int octaves, double persistence, enum FFPerlinRandomMode random_mode, unsigned int random_seed)
Initialize the Perlin noise generator with parameters.
double ff_perlin_get(FFPerlin *perlin, double x, double y, double z)
Compute Perlin noise given the x, y, z coordinates.
@ FF_PERLIN_RANDOM_MODE_NB
@ FF_PERLIN_RANDOM_MODE_RANDOM
@ FF_PERLIN_RANDOM_MODE_SEED
@ FF_PERLIN_RANDOM_MODE_KEN
Perlin generator context.
unsigned int random_seed
when random_mode is set FF_PERLIN_RANDOM_MODE_RANDOM, set random seed used to compute the permutation...
double period
spatial repeat period, if negative it is ignored
enum FFPerlinRandomMode random_mode
define how to compute the permutations array
double persistence
ratio used to compute the amplitude of the next octave component with respect to the previous compone...
uint8_t permutations[512]
permutations array used to compute the Perlin noise hash
int octaves
total number of components making up the noise, each one with doubled frequency