av_lfg_get 531 libavcodec/ac3dec.c mantissa = (((av_lfg_get(&s->dith_state)>>8)*181)>>8) - 5931008; av_lfg_get 899 libavcodec/amrwbdec.c hb_exc[i] = 32768.0 - (uint16_t) av_lfg_get(&ctx->prng); av_lfg_get 144 libavcodec/cngdec.c int r = (av_lfg_get(&p->lfg) & 0xffff) - 0x8000; av_lfg_get 538 libavcodec/cook.c if (av_lfg_get(&q->random_state) < 0x80000000) av_lfg_get 144 libavcodec/eac3dec.c float noise = nscale * (int32_t)av_lfg_get(&s->dith_state); av_lfg_get 242 libavcodec/eac3dec.c s->pre_mantissa[ch][bin][blk] = (av_lfg_get(&s->dith_state) & 0x7FFFFF) - 0x400000; av_lfg_get 114 libavcodec/elbg.c r = av_lfg_get(elbg->rand_state) % (unsigned int)elbg->utility_inc[elbg->numCB-1] + 1; av_lfg_get 116 libavcodec/elbg.c r = av_lfg_get(elbg->rand_state); av_lfg_get 117 libavcodec/elbg.c r = (av_lfg_get(elbg->rand_state) + (r<<32)) % elbg->utility_inc[elbg->numCB-1] + 1; av_lfg_get 148 libavcodec/mpc7.c *dst++ = (av_lfg_get(&c->rnd) & 0x3FC) - 510; av_lfg_get 359 libavcodec/mpc8.c c->Q[ch][off + j] = (av_lfg_get(&c->rnd) & 0x3FC) - 510; av_lfg_get 97 libavcodec/nellymoserdec.c if (av_lfg_get(&s->random_state) & 1) av_lfg_get 126 libavcodec/tests/cabac.c if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7; av_lfg_get 139 libavcodec/tests/cabac.c b[i++] = av_lfg_get(&prng); av_lfg_get 140 libavcodec/tests/cabac.c b[i ] = av_lfg_get(&prng); av_lfg_get 127 libavcodec/tests/dct.c block[i] = (av_lfg_get(prng) % (2*vals)) -vals; av_lfg_get 135 libavcodec/tests/dct.c j = av_lfg_get(prng) % 10 + 1; av_lfg_get 137 libavcodec/tests/dct.c int idx = av_lfg_get(prng) % 64; av_lfg_get 138 libavcodec/tests/dct.c block[idx] = av_lfg_get(prng) % (2*vals) -vals; av_lfg_get 142 libavcodec/tests/dct.c block[ 0] = av_lfg_get(prng) % (16*vals) - (8*vals); av_lfg_get 390 libavcodec/tests/dct.c block1[i] = av_lfg_get(&prng) % 256 - 128; av_lfg_get 200 libavcodec/tests/fft.c return (int16_t) av_lfg_get(prng) / 32768.0 * RANGE; av_lfg_get 120 libavcodec/tests/jpeg2000dwt.c arrayf[i] = reff[i] = array[i] = ref[i] = av_lfg_get(&prng) % 2048; av_lfg_get 124 libavcodec/tests/jpeg2000dwt.c border[j>>1][j&1] = av_lfg_get(&prng) % MAX_W; av_lfg_get 127 libavcodec/tests/jpeg2000dwt.c decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS; av_lfg_get 52 libavcodec/tests/motion.c tab[i] = av_lfg_get(&prng) % 256; av_lfg_get 47 libavcodec/tests/rangecoder.c r[i] = av_lfg_get(&prng) % 7; av_lfg_get 52 libavcodec/tests/snowenc.c buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; av_lfg_get 63 libavcodec/tests/snowenc.c buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; av_lfg_get 45 libavdevice/tests/timefilter.c samplet[i] = 10 + i + (av_lfg_get(&prng) < LFG_MAX/2 ? 0 : 0.999); av_lfg_get 47 libavdevice/tests/timefilter.c samples[i] = ideal[i] + n0 * (av_lfg_get(&prng) - LFG_MAX / 2) / (LFG_MAX * 10LL); av_lfg_get 228 libavfilter/asrc_anoisesrc.c white = s->amplitude * ((2 * ((double) av_lfg_get(&s->c) / 0xffffffff)) - 1); av_lfg_get 88 libavfilter/f_perms.c case MODE_RANDOM: out_perm = av_lfg_get(&s->lfg) & 1 ? RW : RO; break; av_lfg_get 314 libavfilter/vf_deshake_opencl.c return (av_lfg_get(alfg) % (high - low)) + low; av_lfg_get 103 libavfilter/vf_drawtext.c return min + (max-min) / UINT_MAX * av_lfg_get(opaque); av_lfg_get 69 libavfilter/vf_noise.c #define RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) av_lfg_get 104 libavfilter/vf_noise.c x1 = 2.0 * av_lfg_get(lfg) / (float)UINT_MAX - 1.0; av_lfg_get 105 libavfilter/vf_noise.c x2 = 2.0 * av_lfg_get(lfg) / (float)UINT_MAX - 1.0; av_lfg_get 127 libavfilter/vf_noise.c fp->prev_shift[i][j] = noise + (av_lfg_get(lfg) & (MAX_SHIFT - 1)); av_lfg_get 268 libavfilter/vf_noise.c fp->rand_shift[i] = av_lfg_get(&fp->lfg) & (MAX_SHIFT - 1); av_lfg_get 81 libavfilter/vf_random.c idx = av_lfg_get(&s->lfg) % s->nb_frames; av_lfg_get 195 libavfilter/vsrc_cellauto.c double r = (double)av_lfg_get(&s->lfg) / UINT32_MAX; av_lfg_get 234 libavfilter/vsrc_gradients.c s->x0 = av_lfg_get(&s->lfg) % s->w; av_lfg_get 236 libavfilter/vsrc_gradients.c s->y0 = av_lfg_get(&s->lfg) % s->h; av_lfg_get 238 libavfilter/vsrc_gradients.c s->x1 = av_lfg_get(&s->lfg) % s->w; av_lfg_get 240 libavfilter/vsrc_gradients.c s->y1 = av_lfg_get(&s->lfg) % s->h; av_lfg_get 252 libavfilter/vsrc_life.c double r = (double)av_lfg_get(&life->lfg) / UINT32_MAX; av_lfg_get 180 libavfilter/vsrc_sierpinski.c unsigned int rnd = av_lfg_get(&s->lfg); av_lfg_get 2643 libavformat/matroskaenc.c uid = (uint64_t)av_lfg_get(c) << 32; av_lfg_get 2644 libavformat/matroskaenc.c uid |= av_lfg_get(c); av_lfg_get 2697 libavformat/matroskaenc.c mkv->segment_uid[i] = av_lfg_get(&c); av_lfg_get 1219 libavformat/rtmpproto.c tosend[i] = av_lfg_get(&rnd) >> 24; av_lfg_get 1316 libavformat/rtmpproto.c tosend[i] = av_lfg_get(&rnd) >> 24; av_lfg_get 162 libavresample/dither.c noise_buf_ui[i] = av_lfg_get(&state->lfg); av_lfg_get 431 libavresample/dither.c state->seed = av_lfg_get(&seed_gen); av_lfg_get 38 libavresample/tests/avresample.c return 2.0 * (av_lfg_get(lfg) / (double)UINT_MAX) - 1.0; av_lfg_get 131 libavresample/tests/avresample.c tabf1[ch] = 100 + av_lfg_get(rnd) % 5000; av_lfg_get 132 libavresample/tests/avresample.c tabf2[ch] = 100 + av_lfg_get(rnd) % 5000; av_lfg_get 54 libavutil/lfg.c x1 = 2.0 / UINT_MAX * av_lfg_get(lfg) - 1.0; av_lfg_get 55 libavutil/lfg.c x2 = 2.0 / UINT_MAX * av_lfg_get(lfg) - 1.0; av_lfg_get 93 libavutil/tests/aes.c pt[j] = av_lfg_get(&prng); av_lfg_get 95 libavutil/tests/aes.c iv[0][j] = iv[1][j] = av_lfg_get(&prng); av_lfg_get 111 libavutil/tests/lfg.c x += av_lfg_get(&state); av_lfg_get 39 libavutil/tests/lls.c var[0] = (av_lfg_get(&lfg) / (double) UINT_MAX - 0.5) * 2; av_lfg_get 40 libavutil/tests/lls.c var[1] = var[0] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; av_lfg_get 41 libavutil/tests/lls.c var[2] = var[1] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; av_lfg_get 42 libavutil/tests/lls.c var[3] = var[2] + av_lfg_get(&lfg) / (double) UINT_MAX - 0.5; av_lfg_get 44 libavutil/tests/pca.c int pos = av_lfg_get(&prng) % LEN; av_lfg_get 45 libavutil/tests/pca.c int v2 = av_lfg_get(&prng) % 101 - 50; av_lfg_get 46 libavutil/tests/pca.c v[0] = av_lfg_get(&prng) % 101 - 50; av_lfg_get 75 libavutil/tests/tree.c intptr_t j = av_lfg_get(&prng) % 86294; av_lfg_get 92 libavutil/tests/tree.c j = av_lfg_get(&prng) % 86294; av_lfg_get 424 libswscale/tests/swscale.c rgb_data[ x + y * 4 * W] = av_lfg_get(&rand); av_lfg_get 107 tests/checkasm/checkasm.h #define rnd() av_lfg_get(&checkasm_lfg) av_lfg_get 154 tools/probetest.c put_bits(&pb, 1, (av_lfg_get(&state) & 0xFFFFFFFF) > p << 20); av_lfg_get 159 tools/probetest.c unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 26; av_lfg_get 167 tools/probetest.c unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 29; av_lfg_get 176 tools/probetest.c c = (av_lfg_get(&state) & 0xFFFFFFFF) >> 24;