Home
last modified time | relevance | path

Searched refs:av_lfg_get (Results 1 – 25 of 44) sorted by relevance

12

/third_party/ffmpeg/libavutil/tests/
Dlls.c40 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()
Dpca.c44 int pos = av_lfg_get(&prng) % LEN; in main()
45 int v2 = av_lfg_get(&prng) % 101 - 50; in main()
46 v[0] = av_lfg_get(&prng) % 101 - 50; in main()
Dtree.c75 intptr_t j = av_lfg_get(&prng) % 86294; in main()
92 j = av_lfg_get(&prng) % 86294; in main()
Daes.c93 pt[j] = av_lfg_get(&prng); in main()
95 iv[0][j] = iv[1][j] = av_lfg_get(&prng); in main()
Dlfg.c111 x += av_lfg_get(&state); in main()
/third_party/ffmpeg/tools/
Dprobetest.c154 put_bits(&pb, 1, (av_lfg_get(&state) & 0xFFFFFFFF) > p << 20); in main()
159 unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 26; in main()
167 unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 29; in main()
176 c = (av_lfg_get(&state) & 0xFFFFFFFF) >> 24; in main()
/third_party/ffmpeg/libavcodec/tests/
Djpeg2000dwt.c120 arrayf[i] = reff[i] = array[i] = ref[i] = av_lfg_get(&prng) % 2048; in main()
124 border[j>>1][j&1] = av_lfg_get(&prng) % MAX_W; in main()
127 decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS; in main()
Ddct.c128 block[i] = (av_lfg_get(prng) % (2*vals)) -vals; in init_block()
136 j = av_lfg_get(prng) % 10 + 1; in init_block()
138 int idx = av_lfg_get(prng) % 64; in init_block()
139 block[idx] = av_lfg_get(prng) % (2*vals) -vals; in init_block()
143 block[ 0] = av_lfg_get(prng) % (16*vals) - (8*vals); in init_block()
391 block1[i] = av_lfg_get(&prng) % 256 - 128; in idct248_error()
Dcabac.c151 if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7; in main()
164 b[i++] = av_lfg_get(&prng); in main()
165 b[i ] = av_lfg_get(&prng); in main()
Dsnowenc.c52 buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; in main()
63 buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; in main()
Drangecoder.c73 r[i] = av_lfg_get(&prng) % 7; in main()
Dmotion.c52 tab[i] = av_lfg_get(&prng) % 256; in fill_random()
/third_party/ffmpeg/libavutil/
Dlfg.c54 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()
Dlfg.h53 static inline unsigned int av_lfg_get(AVLFG *c){ in av_lfg_get() function
/third_party/ffmpeg/libavdevice/tests/
Dtimefilter.c45 samplet[i] = 10 + i + (av_lfg_get(&prng) < LFG_MAX/2 ? 0 : 0.999); in main()
47 samples[i] = ideal[i] + n0 * (av_lfg_get(&prng) - LFG_MAX / 2) / (LFG_MAX * 10LL); in main()
/third_party/ffmpeg/libavfilter/
Dvf_noise.c69 #define RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0)))
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.c240 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_shufflepixels.c86 int rand = av_lfg_get(c) % nb_blocks; in make_horizontal_map()
124 int rand = av_lfg_get(c) % nb_blocks; in make_vertical_map()
163 int rand = av_lfg_get(c) % nb_blocks; in make_block_map()
Dvf_random.c81 idx = av_lfg_get(&s->lfg) % s->nb_frames; in filter_frame()
Df_perms.c88 case MODE_RANDOM: out_perm = av_lfg_get(&s->lfg) & 1 ? RW : RO; break; in filter_frame()
/third_party/ffmpeg/libavresample/tests/
Davresample.c38 return 2.0 * (av_lfg_get(lfg) / (double)UINT_MAX) - 1.0; in dbl_rand()
131 tabf1[ch] = 100 + av_lfg_get(rnd) % 5000; in audiogen()
132 tabf2[ch] = 100 + av_lfg_get(rnd) % 5000; in audiogen()
/third_party/ffmpeg/libavcodec/
Delbg.c114 r = av_lfg_get(elbg->rand_state) % (unsigned int)elbg->utility_inc[elbg->numCB-1] + 1; in get_high_utility_cell()
116 r = av_lfg_get(elbg->rand_state); in get_high_utility_cell()
117 r = (av_lfg_get(elbg->rand_state) + (r<<32)) % elbg->utility_inc[elbg->numCB-1] + 1; in get_high_utility_cell()
Dnellymoserdec.c98 if (av_lfg_get(&s->random_state) & 1) in nelly_decode_block()
Dcngdec.c144 int r = (av_lfg_get(&p->lfg) & 0xffff) - 0x8000; in cng_decode_frame()
/third_party/ffmpeg/libavresample/
Ddither.c162 noise_buf_ui[i] = av_lfg_get(&state->lfg); in generate_dither_noise()
431 state->seed = av_lfg_get(&seed_gen); in ff_dither_alloc()

12