Home
last modified time | relevance | path

Searched refs:lfg (Results 1 – 21 of 21) sorted by relevance

/third_party/ffmpeg/libavutil/tests/
Dlls.c31 AVLFG lfg; in main() local
33 av_lfg_init(&lfg, 1); in main()
40 var[0] = (av_lfg_get(&lfg) / (double) UINT_MAX - 0.5) * 2; in main()
41 var[1] = var[0] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; in main()
42 var[2] = var[1] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; in main()
43 var[3] = var[2] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; in main()
D.gitignore29 /lfg
/third_party/ffmpeg/libavfilter/
Dvf_noise.c69 #define RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0)))
74 AVLFG *lfg = &n->param[comp].lfg; in init_noise() local
82 av_lfg_init(&fp->lfg, fp->seed + comp*31415U); in init_noise()
104 x1 = 2.0 * av_lfg_get(lfg) / (float)UINT_MAX - 1.0; in init_noise()
105 x2 = 2.0 * av_lfg_get(lfg) / (float)UINT_MAX - 1.0; in init_noise()
127 fp->prev_shift[i][j] = noise + (av_lfg_get(lfg) & (MAX_SHIFT - 1)); in init_noise()
268 fp->rand_shift[i] = av_lfg_get(&fp->lfg) & (MAX_SHIFT - 1); in filter_frame()
Dvsrc_gradients.c51 AVLFG lfg; member
235 av_lfg_init(&s->lfg, s->seed);
240 s->x0 = av_lfg_get(&s->lfg) % s->w;
242 s->y0 = av_lfg_get(&s->lfg) % s->h;
244 s->x1 = av_lfg_get(&s->lfg) % s->w;
246 s->y1 = av_lfg_get(&s->lfg) % s->h;
Dvf_random.c34 AVLFG lfg; member
62 av_lfg_init(&s->lfg, seed); in init()
81 idx = av_lfg_get(&s->lfg) % s->nb_frames; in filter_frame()
Df_perms.c38 AVLFG lfg; member
68 av_lfg_init(&s->lfg, seed); in init()
88 case MODE_RANDOM: out_perm = av_lfg_get(&s->lfg) & 1 ? RW : RO; break; in filter_frame()
Dvf_elbg.c38 AVLFG lfg; member
79 av_lfg_init(&elbg->lfg, elbg->lfg_seed); in init()
171 elbg->codeword_closest_codebook_idxs, &elbg->lfg); in filter_frame()
174 elbg->codeword_closest_codebook_idxs, &elbg->lfg); in filter_frame()
Dvsrc_sierpinski.c52 AVLFG lfg; member
167 av_lfg_init(&s->lfg, s->seed); in config_output()
180 unsigned int rnd = av_lfg_get(&s->lfg); in draw_sierpinski()
Dvsrc_cellauto.c56 AVLFG lfg; member
192 av_lfg_init(&s->lfg, s->random_seed); in init()
195 double r = (double)av_lfg_get(&s->lfg) / UINT32_MAX; in init()
Dvf_noise.h40 AVLFG lfg; member
Dvsrc_life.c72 AVLFG lfg; member
249 av_lfg_init(&life->lfg, life->random_seed); in init()
252 double r = (double)av_lfg_get(&life->lfg) / UINT32_MAX; in init()
/third_party/ffmpeg/libavutil/
Dlfg.c49 void av_bmg_get(AVLFG *lfg, double out[2]) in av_bmg_get() argument
54 x1 = 2.0 / UINT_MAX * av_lfg_get(lfg) - 1.0; in av_bmg_get()
55 x2 = 2.0 / UINT_MAX * av_lfg_get(lfg) - 1.0; in av_bmg_get()
DMakefile52 lfg.h \
136 lfg.o \
233 lfg \
Dlfg.h78 void av_bmg_get(AVLFG *lfg, double out[2]);
/third_party/ffmpeg/tests/fate/
Dlibavutil.mak103 FATE_LIBAVUTIL += fate-lfg
104 fate-lfg: libavutil/tests/lfg$(EXESUF)
105 fate-lfg: CMD = run libavutil/tests/lfg$(EXESUF)
/third_party/ffmpeg/libavcodec/
Dcngdec.c40 AVLFG lfg; member
75 av_lfg_init(&p->lfg, 0); in cng_decode_init()
144 int r = (av_lfg_get(&p->lfg) & 0xffff) - 0x8000; in cng_decode_frame()
Datrac9dec.c89 AVLFG lfg; member
520 av_bmg_get(&s->lfg, tmp); in fill_with_noise()
905 av_lfg_init(&s->lfg, 0xFBADF00D); in atrac9_decode_init()
/third_party/ffmpeg/libavresample/
Ddither.c46 AVLFG lfg; member
160 av_lfg_init(&state->lfg, state->seed); in generate_dither_noise()
162 noise_buf_ui[i] = av_lfg_get(&state->lfg); in generate_dither_noise()
/third_party/ffmpeg/libavresample/tests/
Davresample.c36 static double dbl_rand(AVLFG *lfg) in dbl_rand() argument
38 return 2.0 * (av_lfg_get(lfg) / (double)UINT_MAX) - 1.0; in dbl_rand()
/third_party/ffmpeg/doc/
DAPIchanges663 2017-01-22 - 76c5a69e26 - lavu 55.44.100 - lfg.h
3107 2010-07-02 - 89eec74 - lavu 50.20.0 - lfg.h
3109 lfg.h.
/third_party/ffmpeg/
DBUILD.gn1551 "//third_party/ffmpeg/libavutil/lfg.c",