summaryrefslogtreecommitdiff
path: root/libavutil/lfg.h
Commit message (Collapse)AuthorAgeFilesLines
* avutil/lfg: Minor doxy improvementsMarvin Scholz2022-10-171-2/+2
| | | | Use inline code for sizeof and use proper @return directive.
* avutil/lfg: Add doxy for missing argumentMarvin Scholz2022-10-171-0/+1
|
* avutil/lfg: fix comment typoRémi Denis-Courmont2022-09-151-1/+1
|
* avutil/lfg: Correct index increment type to avoid undefined behaviorMichael Niedermayer2019-11-241-3/+6
| | | | | | | | Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' Fixes: 18333/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_COMFORTNOISE_fuzzer-5668481831272448 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/lfg: Document the AVLFG structMichael Niedermayer2019-11-091-0/+6
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavutil: add av_lfg_init_from_data() functionJonathan Campbell2017-01-221-0/+9
| | | | | | seeds an AVLFG from binary data. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-061-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: yuv4mpeg: return proper error codes. Give all anonymously typedeffed structs in headers a name fate: Add parseutils test parseutils-test: Drop random colors from parsing test vf_pad/scale: use double precision for aspect ratios. build: error on variable-length arrays ppc: swscale: rework yuv2planeX_altivec() ppc: fmtconvert: kill VLA in float_to_int16_interleave_altivec() x86: dsputil: kill VLA in gmc_mmx() libspeexenc: Updated commentary to reflect recent changes libspeexenc: Add an option for enabling DTX doc/APIchanges: fill in missing dates and hashes. lavr: bump major to 1 and declare it stable. lavr: change the type of the data buffers to uint8_t**. lavc: deprecate the audio resampling API. Conflicts: cmdutils.h configure doc/APIchanges ffplay.c libavcodec/dwt.h libavcodec/libspeexenc.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavformat/asf.h tests/fate/libavutil.mak tests/ref/fate/parseutils Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Give all anonymously typedeffed structs in headers a nameDiego Biurrun2012-10-061-1/+1
| | | | | | | | Anonymous structs cannot be forward declared and have no benefit.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-041-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (40 commits) H.264: template left MB handling H.264: faster fill_decode_caches H.264: faster write_back_* H.264: faster fill_filter_caches H.264: make filter_mb_fast support the case of unavailable top mb Do not include log.h in avutil.h Do not include pixfmt.h in avutil.h Do not include rational.h in avutil.h Do not include mathematics.h in avutil.h Do not include intfloat_readwrite.h in avutil.h Remove return statements following infinite loops without break RTSP: Doxygen comment cleanup doxygen: Escape '\' in Doxygen documentation. md5: cosmetics md5: use AV_WL32 to write result md5: add fate test md5: include correct headers md5: fix test program doxygen: Drop array size declarations from Doxygen parameter names. doxygen: Fix parameter names to match the function prototypes. ... Conflicts: libavcodec/x86/dsputil_mmx.c libavformat/flvenc.c libavformat/oggenc.c libavformat/wtv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Drop array size declarations from Doxygen parameter names.Diego Biurrun2011-07-031-1/+1
| | | | | | | | Adding [] to a Doxygen parameter name clashes with Doxygen syntax.
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Restore array sizes in doxygen parameter names.Diego Biurrun2010-07-081-1/+1
| | | | Originally committed as revision 24108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid square brackets in Doxygen comments; Doxygen chokes on them.Diego Biurrun2010-07-021-1/+1
| | | | Originally committed as revision 23979 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-3/+3
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_bmg_next(), a Box-Muller Gaussian random generator.Stefano Sabatini2009-12-121-0/+8
| | | | | | | See the thread: "[FFmpeg-devel] [PATCH] Box-Muller gaussian generator". Originally committed as revision 20808 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IDiego Biurrun2009-01-281-3/+3
| | | | Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-311-3/+3
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1000l typo my new PRNG converged to -1.Michael Niedermayer2008-07-301-1/+1
| | | | Originally committed as revision 14479 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a multiplicative LFG for those thinking the additive is not goodMichael Niedermayer2008-07-301-1/+12
| | | | | | enough, just 4 lines of code. Originally committed as revision 14478 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Document av_lfg_get().Michael Niedermayer2008-07-281-0/+6
| | | | Originally committed as revision 14461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simple lagged fibonacci PRNG.Michael Niedermayer2008-07-281-0/+37
3.5 times faster than our mersene twister. 10 times less memory needed. (=less cache trashing) Originally committed as revision 14458 to svn://svn.ffmpeg.org/ffmpeg/trunk