FFmpeg
Data Fields
FFPerlin Struct Reference

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...
 

Detailed Description

Perlin generator context.

This needs to be initialized with the parameters used to generate the Perlin noise.

Definition at line 42 of file perlin.h.

Field Documentation

◆ period

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().

◆ octaves

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().

◆ persistence

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().

◆ permutations

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().

◆ random_mode

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().

◆ random_seed

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().


The documentation for this struct was generated from the following file: