/third_party/ffmpeg/libavutil/tests/ |
D | lls.c | 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 | pca.c | 44 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()
|
D | tree.c | 75 intptr_t j = av_lfg_get(&prng) % 86294; in main() 92 j = av_lfg_get(&prng) % 86294; in main()
|
D | aes.c | 93 pt[j] = av_lfg_get(&prng); in main() 95 iv[0][j] = iv[1][j] = av_lfg_get(&prng); in main()
|
D | lfg.c | 111 x += av_lfg_get(&state); in main()
|
/third_party/ffmpeg/tools/ |
D | probetest.c | 154 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/ |
D | jpeg2000dwt.c | 120 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()
|
D | dct.c | 128 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()
|
D | cabac.c | 151 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()
|
D | snowenc.c | 52 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()
|
D | rangecoder.c | 73 r[i] = av_lfg_get(&prng) % 7; in main()
|
D | motion.c | 52 tab[i] = av_lfg_get(&prng) % 256; in fill_random()
|
/third_party/ffmpeg/libavutil/ |
D | lfg.c | 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 | lfg.h | 53 static inline unsigned int av_lfg_get(AVLFG *c){ in av_lfg_get() function
|
/third_party/ffmpeg/libavdevice/tests/ |
D | timefilter.c | 45 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/ |
D | vf_noise.c | 69 #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()
|
D | vsrc_gradients.c | 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_shufflepixels.c | 86 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()
|
D | vf_random.c | 81 idx = av_lfg_get(&s->lfg) % s->nb_frames; in filter_frame()
|
D | f_perms.c | 88 case MODE_RANDOM: out_perm = av_lfg_get(&s->lfg) & 1 ? RW : RO; break; in filter_frame()
|
/third_party/ffmpeg/libavresample/tests/ |
D | avresample.c | 38 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/ |
D | elbg.c | 114 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()
|
D | nellymoserdec.c | 98 if (av_lfg_get(&s->random_state) & 1) in nelly_decode_block()
|
D | cngdec.c | 144 int r = (av_lfg_get(&p->lfg) & 0xffff) - 0x8000; in cng_decode_frame()
|
/third_party/ffmpeg/libavresample/ |
D | dither.c | 162 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()
|