Lines Matching defs:state
33 unsigned int mt[AV_RANDOM_N]; ///< the array for the state vector
39 attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state);
41 void av_random_init(AVRandomState *state, unsigned int seed); ///< To be inlined, the struct must be visible. So it does not make sense to try and keep it opaque with malloc/free-like calls.
42 void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).
48 * generator from lfg.c/h or a simple LCG like state = state*1664525+1013904223.
52 static inline unsigned int av_random(AVRandomState *state)
57 if (state->index >= AV_RANDOM_N)
58 av_random_generate_untempered_numbers(state);
61 y = state->mt[state->index++];
73 static inline double av_random_real1(AVRandomState *state)
76 return av_random(state) * (1.0 / 4294967296.0);