|
FFmpeg
|
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | FFPerlin |
| Perlin generator context. More... | |
Enumerations | |
| enum | FFPerlinRandomMode { FF_PERLIN_RANDOM_MODE_RANDOM, FF_PERLIN_RANDOM_MODE_KEN, FF_PERLIN_RANDOM_MODE_SEED, FF_PERLIN_RANDOM_MODE_NB } |
Functions | |
| 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. More... | |
| double | ff_perlin_get (FFPerlin *perlin, double x, double y, double z) |
| Compute Perlin noise given the x, y, z coordinates. More... | |
Perlin Noise generator
Definition in file perlin.h.
| enum FFPerlinRandomMode |
| 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.
| perlin | Perlin noise generator context |
| period | spatial repeat period, if negative it is ignored |
| octaves | total number of components making up the noise, each one with doubled frequency |
| persistence | define ratio used to compute the amplitude of the next octave component with respect to the previous component |
| random_mode | define how to compute the permutations array |
| random_seed | when random_mode is set to FF_PERLIN_RANDOM_MODE_RANDOM, set random seed used to compute the permutations array |
Definition at line 101 of file perlin.c.
Referenced by init().
Compute Perlin noise given the x, y, z coordinates.
| perlin | Perlin noise generator context |
Definition at line 208 of file perlin.c.
Referenced by request_frame().
1.8.17