Go to the source code of this file.
Data Structures | |
struct | AVRandomState |
Defines | |
#define | AV_RANDOM_N 624 |
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) |
#define AV_RANDOM_N 624 |
Definition at line 27 of file random.h.
Referenced by av_init_random(), av_random(), and av_random_generate_untempered_numbers().
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(), cook_decode_init(), decode_init(), main(), mpc7_decode_init(), mpc8_decode_init(), and roq_encode_init().
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_random_real1(), get_high_utility_cell(), get_transform_coeffs_ch(), http_parse_request(), idx_to_quant(), mpc8_decode_frame(), nelly_decode_block(), rtsp_cmd_setup(), scalar_dequant_float(), and start_multicast().
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 double av_random_real1 | ( | AVRandomState * | state | ) | [inline, static] |