libavutil/random.h File Reference

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 Documentation

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


Function Documentation

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]

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]

return random in range [0-1] as double

Definition at line 60 of file random.h.


Generated on Sat Sep 6 21:25:20 2008 for ffmpeg by  doxygen 1.5.6