Go to the source code of this file.
Classes | |
| struct | AVRandomState |
Functions | |
| void | av_init_random (unsigned int seed, AVRandomState *state) |
| to be inlined, the struct must be visible, so it doesn't make sense to try and keep it opaque with malloc/free like calls | |
| void | av_random_generate_untempered_numbers (AVRandomState *state) |
| Regenerate the untempered numbers (must be done every 624 iterations, or it will loop). | |
| static unsigned int | av_random (AVRandomState *state) |
| generates a random number on [0,0xffffffff]-interval | |
| static double | av_random_real1 (AVRandomState *state) |
| return random in range [0-1] as double | |
| void | av_benchmark_random (void) |
| void av_init_random | ( | unsigned int | seed, | |
| AVRandomState * | state | |||
| ) |
to be inlined, the struct must be visible, so it doesn't make sense to try and keep it opaque with malloc/free like calls
Definition at line 46 of file random.c.
Referenced by ac3_decode_init(), av_benchmark_random(), cook_decode_init(), decode_init(), mpc7_decode_init(), mpc8_decode_init(), and roq_encode_init().
| void av_random_generate_untempered_numbers | ( | AVRandomState * | state | ) |
Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).
Definition at line 66 of file random.c.
Referenced by av_random().
| static unsigned int av_random | ( | AVRandomState * | state | ) | [inline, static] |
generates a random number on [0,0xffffffff]-interval
Definition at line 39 of file random.h.
Referenced by av_benchmark_random(), av_random_real1(), get_high_utility_cell(), get_transform_coeffs_ch(), idx_to_quant(), mpc8_decode_frame(), nelly_decode_block(), and scalar_dequant_float().
| static double av_random_real1 | ( | AVRandomState * | state | ) | [inline, static] |
1.5.5