|
FFmpeg
|
#include <inttypes.h>#include <limits.h>#include <math.h>#include "lfg.h"#include "crc.h"#include "md5.h"#include "error.h"#include "intreadwrite.h"#include "attributes.h"Go to the source code of this file.
Functions | |
| av_cold void | av_lfg_init (AVLFG *c, unsigned int seed) |
| void | av_bmg_get (AVLFG *lfg, double out[2]) |
| Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg. More... | |
| int | av_lfg_init_from_data (AVLFG *c, const uint8_t *data, unsigned int length) |
| Seed the state of the ALFG using binary data. More... | |
Definition at line 32 of file lfg.c.
Referenced by a64multi_encode_init(), ac3_decode_flush(), ac3_decode_init(), amrwb_decode_init(), atrac9_decode_init(), cinepak_encode_init(), cng_decode_init(), config_input(), config_output(), config_props(), cook_decode_init(), dct_error(), decode_init(), deshake_opencl_init(), encode_init(), ff_perlin_init(), fill_random(), idct248_error(), init(), init_noise(), initialize(), main(), mkv_init(), mpc7_decode_init(), mpc8_decode_init(), roq_encode_init(), rtmp_handshake(), and test_apv_entropy_decode_block().
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.
| lfg | pointer to the context structure |
| out | array where the two generated numbers are placed |
Definition at line 49 of file lfg.c.
Referenced by fill_with_noise(), and main().
| int av_lfg_init_from_data | ( | AVLFG * | c, |
| const uint8_t * | data, | ||
| unsigned int | length | ||
| ) |
Seed the state of the ALFG using binary data.
Definition at line 64 of file lfg.c.
Referenced by ac3_decode_frame().
1.8.17