FFmpeg
|
Go to the source code of this file.
Functions | |
static int | inc (int num, int period) |
static double | grad (int hash, double x, double y, double z) |
static double | fade (double t) |
static double | lerp (double a, double b, double x) |
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... | |
static double | perlin_get (FFPerlin *perlin, double x, double y, double z) |
double | ff_perlin_get (FFPerlin *perlin, double x, double y, double z) |
Compute Perlin noise given the x, y, z coordinates. More... | |
Variables | |
static uint8_t | ken_permutations [] |
Perlin Noise generator, based on code from: https://adrianb.io/2014/08/09/perlinnoise.html
Original article from Ken Perlin: http://mrl.nyu.edu/~perlin/paper445.pdf
Definition in file perlin.c.
|
inlinestatic |
Definition at line 34 of file perlin.c.
Referenced by abs_level_gt1_flag_ts_decode(), abs_level_gtx_flag_decode(), abs_level_gtx_flag_ts_decode(), amvr_precision_idx(), apply_tns(), av_add_stable(), av_fifo_grow2(), build_table(), coeff_abs_level_greater1_flag_decode(), coeff_abs_level_greater2_flag_decode(), coeff_sign_flag_ts_decode(), draw_sono(), evaluate_utility_inc(), ff_aac_apply_tns(), ff_hevc_cu_qp_delta_abs(), ff_hevc_hls_residual_coding(), ff_hevc_skip_flag_decode(), ff_hevc_split_coding_unit_flag_decode(), ff_vvc_alf_ctb_cc_idc(), ff_vvc_alf_ctb_flag(), ff_vvc_cu_skip_flag(), ff_vvc_inter_affine_flag(), ff_vvc_intra_mip_flag(), ff_vvc_lfnst_idx(), ff_vvc_merge_subblock_flag(), ff_vvc_non_inter_flag(), ff_vvc_pred_flag(), ff_vvc_pred_mode_flag(), ff_vvc_pred_mode_ibc_flag(), ff_vvc_regular_merge_flag(), ff_vvc_sbt_flag(), ff_vvc_sbt_horizontal_flag(), ff_vvc_split_cu_flag(), ff_vvc_transform_skip_flag(), ff_vvc_tu_y_coded_flag(), fifo_check_space(), flac_fifo_grow(), get_gtx_flag_inc(), if(), mpegaudio_parse(), mpsub_probe(), mtt_split_cu_binary_flag_decode(), mtt_split_cu_vertical_flag_decode(), par_level_flag_decode(), par_level_flag_ts_decode(), perlin_get(), pnm_parse(), postProcess_TMPL(), residual_coding_subblock(), sb_coded_flag_decode(), sig_coeff_flag_decode(), significant_coeff_flag_decode(), significant_coeff_group_flag_decode(), split_qt_flag_decode(), svg_probe(), update_counters(), and waves_synth().
Definition at line 42 of file perlin.c.
Referenced by alf_classify(), calculate_blockiness(), and perlin_get().
Definition at line 66 of file perlin.c.
Referenced by perlin_get().
Definition at line 75 of file perlin.c.
Referenced by perlin_get().
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().
Definition at line 141 of file perlin.c.
Referenced by ff_perlin_get().
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().
|
static |
Definition at line 82 of file perlin.c.
Referenced by ff_perlin_init().