FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | AVLFG |
Typedefs | |
typedef struct AVLFG | AVLFG |
Functions | |
void | av_lfg_init (AVLFG *c, unsigned int seed) |
static unsigned int | av_lfg_get (AVLFG *c) |
Get the next random unsigned 32-bit number using an ALFG. More... | |
static unsigned int | av_mlfg_get (AVLFG *c) |
Get the next random unsigned 32-bit number using a MLFG. More... | |
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... | |
Typedef Documentation
Function Documentation
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.
- Parameters
-
out array where the two generated numbers are placed
Definition at line 47 of file lfg.c.
Referenced by av_bmg_get(), and av_mlfg_get().
|
inlinestatic |
Get the next random unsigned 32-bit number using an ALFG.
Please also consider a simple LCG like state= state*1664525+1013904223, it may be good enough and faster for your specific use case.
Definition at line 38 of file lfg.h.
Referenced by ac3_decode_transform_coeffs_ch(), audiogen(), av_aes_init(), av_bmg_get(), av_evaluate_lls(), av_tree_enumerate(), cng_decode_frame(), dbl_rand(), drand(), ff_dither_alloc(), ff_eac3_apply_spectral_extension(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_init_cabac_states(), ff_pca(), ff_rac_terminate(), ff_timefilter_eval(), fill_random(), filter_frame(), frandom(), generate_dither_noise(), get_high_utility_cell(), http_parse_request(), idct248_error(), idx_to_quant(), init(), init_block(), init_noise(), main(), mkv_write_attachments(), mkv_write_header(), mpc8_decode_frame(), nelly_decode_block(), noise(), rtmp_handshake(), rtsp_cmd_setup(), scalar_dequant_float(), scaled_hb_excitation(), and start_multicast().
Definition at line 30 of file lfg.c.
Referenced by a64multi_init_encoder(), ac3_decode_init(), amrwb_decode_init(), av_aes_init(), av_bmg_get(), av_evaluate_lls(), av_tree_enumerate(), cng_decode_init(), config_input(), cook_decode_init(), dct_error(), decode_init(), encode_init(), ff_dither_alloc(), ff_init_cabac_states(), ff_pca(), ff_rac_terminate(), ff_timefilter_eval(), fill_random(), generate_dither_noise(), idct248_error(), init(), init_noise(), main(), mkv_write_attachments(), mkv_write_header(), mpc7_decode_init(), mpc8_decode_init(), roq_encode_init(), and rtmp_handshake().
|
inlinestatic |
Get the next random unsigned 32-bit number using a MLFG.
Please also consider av_lfg_get() above, it is faster.
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11