FFmpeg
|
Perlin generator context. More...
#include <perlin.h>
Data Fields | |
double | period |
spatial repeat period, if negative it is ignored More... | |
int | octaves |
total number of components making up the noise, each one with doubled frequency More... | |
double | persistence |
ratio used to compute the amplitude of the next octave component with respect to the previous component More... | |
uint8_t | permutations [512] |
permutations array used to compute the Perlin noise hash More... | |
enum FFPerlinRandomMode | random_mode |
define how to compute the permutations array More... | |
unsigned int | random_seed |
when random_mode is set FF_PERLIN_RANDOM_MODE_RANDOM, set random seed used to compute the permutations array More... | |
Perlin generator context.
This needs to be initialized with the parameters used to generate the Perlin noise.
double FFPerlin::period |
spatial repeat period, if negative it is ignored
Definition at line 46 of file perlin.h.
Referenced by ff_perlin_init(), and perlin_get().
int FFPerlin::octaves |
total number of components making up the noise, each one with doubled frequency
Definition at line 52 of file perlin.h.
Referenced by ff_perlin_get(), and ff_perlin_init().
double FFPerlin::persistence |
ratio used to compute the amplitude of the next octave component with respect to the previous component
Definition at line 58 of file perlin.h.
Referenced by ff_perlin_get(), and ff_perlin_init().
uint8_t FFPerlin::permutations[512] |
permutations array used to compute the Perlin noise hash
Definition at line 63 of file perlin.h.
Referenced by ff_perlin_init(), and perlin_get().
enum FFPerlinRandomMode FFPerlin::random_mode |
define how to compute the permutations array
Definition at line 68 of file perlin.h.
Referenced by ff_perlin_init().
unsigned int FFPerlin::random_seed |
when random_mode is set FF_PERLIN_RANDOM_MODE_RANDOM, set random seed used to compute the permutations array
Definition at line 74 of file perlin.h.
Referenced by ff_perlin_init().