Mercurial > libavutil.hg
comparison random.h @ 689:0b26a018b46f libavutil
Remove all remaining code that was disabled through the major version bump.
author | diego |
---|---|
date | Mon, 09 Mar 2009 10:24:47 +0000 |
parents | 68c2c0caf942 |
children |
comparison
equal
deleted
inserted
replaced
688:91216685a7ae | 689:0b26a018b46f |
---|---|
33 unsigned int mt[AV_RANDOM_N]; ///< the array for the state vector | 33 unsigned int mt[AV_RANDOM_N]; ///< the array for the state vector |
34 int index; ///< Current untempered value we use as the base. | 34 int index; ///< Current untempered value we use as the base. |
35 } AVRandomState; | 35 } AVRandomState; |
36 | 36 |
37 | 37 |
38 #if LIBAVUTIL_VERSION_MAJOR < 50 | |
39 attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state); | |
40 #endif | |
41 attribute_deprecated 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. | 38 attribute_deprecated 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 attribute_deprecated void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop). | 39 attribute_deprecated void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop). |
43 | 40 |
44 /** | 41 /** |
45 * Generates a random number from the interval [0,0xffffffff]. | 42 * Generates a random number from the interval [0,0xffffffff]. |