random.c File Reference

Go to the source code of this file.

Functions

void av_init_random (unsigned int seed, AVRandomState *state)
 initializes mt[AV_RANDOM_N] with a seed
void av_random_generate_untempered_numbers (AVRandomState *state)
 generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't)
void av_benchmark_random (void)


Function Documentation

void av_init_random ( unsigned int  seed,
AVRandomState state 
)

initializes mt[AV_RANDOM_N] with a seed

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  ) 

generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't)

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().

void av_benchmark_random ( void   ) 

Definition at line 85 of file random.c.


Generated on Sat Dec 18 05:15:55 2010 for MythTV by  doxygen 1.5.5