/third_party/ffmpeg/libavutil/tests/ |
D | lls.c | 31 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 | .gitignore | 29 /lfg
|
/third_party/ffmpeg/libavfilter/ |
D | vf_noise.c | 69 #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()
|
D | vsrc_gradients.c | 51 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;
|
D | vf_random.c | 34 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()
|
D | f_perms.c | 38 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()
|
D | vf_elbg.c | 38 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()
|
D | vsrc_sierpinski.c | 52 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()
|
D | vsrc_cellauto.c | 56 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()
|
D | vf_noise.h | 40 AVLFG lfg; member
|
D | vsrc_life.c | 72 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/ |
D | lfg.c | 49 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()
|
D | Makefile | 52 lfg.h \ 136 lfg.o \ 233 lfg \
|
D | lfg.h | 78 void av_bmg_get(AVLFG *lfg, double out[2]);
|
/third_party/ffmpeg/tests/fate/ |
D | libavutil.mak | 103 FATE_LIBAVUTIL += fate-lfg 104 fate-lfg: libavutil/tests/lfg$(EXESUF) 105 fate-lfg: CMD = run libavutil/tests/lfg$(EXESUF)
|
/third_party/ffmpeg/libavcodec/ |
D | cngdec.c | 40 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()
|
D | atrac9dec.c | 89 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/ |
D | dither.c | 46 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/ |
D | avresample.c | 36 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/ |
D | APIchanges | 663 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/ |
D | BUILD.gn | 1551 "//third_party/ffmpeg/libavutil/lfg.c",
|