summaryrefslogtreecommitdiffstats
path: root/libavutil/fifo.c
Commit message (Collapse)AuthorAgeFilesLines
* avutil: remove FF_CONST_AVUTIL53, its no longer neededMichael Niedermayer2014-11-241-2/+2
| | | | | | version is 54 already Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/fifo: add av_fifo_alloc_array functionLukasz Marek2014-05-201-6/+21
| | | | | | | Allows to alloc fifo buffer by passing number of elements and size of element. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* avutil/fifo: delay addition of const from ↵Michael Niedermayer2014-05-141-2/+2
| | | | | | | | 78d3453c4a2efef9bc079e8f3458653beafcf990 until next major ABI bump This unbreaks API, for example audacity has more build errors due to this Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/fifo: add av_fifo_freep functionLukasz Marek2014-05-071-0/+8
| | | | | | Function allows to free fifo and reset freed pointer. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavu/fifo: add const to argumentsLukasz Marek2014-05-051-2/+2
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/fifo: assert that theres enough data in the fifo on drain calls.Michael Niedermayer2013-09-031-0/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '6516632967da5e6bd7d6136e8678f826669ed26e'Michael Niedermayer2013-07-071-16/+19
|\ | | | | | | | | | | | | | | | | | | | | | | * commit '6516632967da5e6bd7d6136e8678f826669ed26e': tests: Only run noproxy test if networking is enabled fifo: K&R formatting cosmetics Conflicts: libavformat/Makefile libavutil/fifo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * fifo: K&R formatting cosmeticsLuca Barbato2013-07-061-24/+28
| |
* | Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer2012-12-051-2/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-041-2/+0
| |
* | fifo: add av_fifo_grow()Michael Niedermayer2012-05-151-0/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | fifo: Make writes atomic.Michael Niedermayer2011-12-231-7/+12
| | | | | | | | | | | | | | Prior to this a X bytes write could be seen as less than X bytes being available if the check was done at an unfortunate moment. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-08-261-0/+36
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: fifo: add FIFO API test program, and fate test fifo: add av_fifo_peek2(), and deprecate av_fifo_peek() postprocess.c: filter name needs to be double 0 terminated doxygen: fix wrong comment syntax, //< vs. ///< doxygen: drop pointless star from pointer variable names Replace deprecated av_find_stream_info() by avformat_find_stream_info(). xmv: eliminate superfluous zeroing of zero data configure: fix typo in avconv dependency list Conflicts: configure doc/APIchanges libavutil/Makefile libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * fifo: add FIFO API test program, and fate testStefano Sabatini2011-08-261-0/+36
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()Stefano Sabatini2011-08-141-1/+1
| |
* | fifo: apply misc cosmetic fixesStefano Sabatini2011-08-141-10/+11
| |
* | fifo: use av_freep()Michael Niedermayer2011-05-091-1/+1
|/ | | | | | | With this change libavutil uses av_freep() everywhere where it makes sense. Remaining av_free() use in it has the used pointer become inaccessible quickly soo zeroing makes no sense. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Clarify non constness of src in av_fifo_generic_write()Michael Niedermayer2010-02-231-0/+1
| | | | Originally committed as revision 21997 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_fifo_space().Olivier Guilyardi2009-04-021-0/+5
| | | | | | Patch by Olivier Guilyardi list et samalyse DOT c0m. Originally committed as revision 18321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reorder arguments for av_fifo_generic_read to be more logical andReimar Döffinger2009-03-091-2/+2
| | | | | | consistent with av_fifo_generic_write. Originally committed as revision 17914 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_fifo_reset function to completely reset fifo state, which makesReimar Döffinger2009-03-091-1/+7
| | | | | | it easier to reuse the fifo. Originally committed as revision 17901 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2009-03-091-2/+2
| | | | Originally committed as revision 17897 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove more functions disabled by major version bump.Reimar Döffinger2009-03-081-13/+0
| | | | Originally committed as revision 17876 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all uses of the replaced av_fifo_read by av_fifo_generic_readReimar Döffinger2009-03-081-1/+1
| | | | Originally committed as revision 17873 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove av_fifo_read, API is already broken and major version will be bumped ↵Reimar Döffinger2009-03-081-5/+0
| | | | | | soon. Originally committed as revision 17870 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate AVFifoBuffer through the fifo API to reduce future API/ABI issues.Michael Niedermayer2009-03-081-10/+16
| | | | | | | Yes this breaks ABI/API but ive already broken it and will bump avutil major soon. Originally committed as revision 17869 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Comments to indicate where memory barriers may be needed.Michael Niedermayer2009-03-081-0/+3
| | | | Originally committed as revision 17867 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to fix the 1 byte cannot be used issue.Michael Niedermayer2009-03-071-6/+6
| | | | Originally committed as revision 17865 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IDiego Biurrun2009-01-281-2/+2
| | | | Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop deprecated av_fifo_write function with the next libavutil version bump.Diego Biurrun2009-01-251-0/+2
| | | | Originally committed as revision 16782 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: remove a redundant and misplaced doxy.Stefano Sabatini2008-08-191-3/+0
| | | | Originally committed as revision 14856 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.Stefano Sabatini2008-08-191-0/+2
| | | | Originally committed as revision 14855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_fifo_realloc2().Stefano Sabatini2008-08-191-1/+7
| | | | Originally committed as revision 14846 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Ensure that one can store X bytes in a fifo of size X.Michael Niedermayer2008-05-251-2/+3
| | | | | | Fixed issue417. Originally committed as revision 13405 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_fifo*_read() ignore the available amount of data.Michael Niedermayer2008-05-251-8/+0
| | | | | | | | | | | | This is more efficient as in practice the check is redundant most of the time. Callers which do not know if enough data is available have to check it with av_fifo_size(). Doing the check in *read() means the caller has no choice to skip the check when its known to be redundant. Also the return value was never documented in a public header so changing it should not break the API. Besides this fixes the case where read() failed on a 100% full fifo. Originally committed as revision 13404 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics (by Björn Axelsson)Benoit Fouet2008-04-091-4/+4
| | | | Originally committed as revision 12774 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a generic write function to av_fifo.Björn Axelsson2008-04-091-1/+13
| | | | | | | | Patch by Björn Axelsson: bjorn axelsson intinor se Original thread: [FFmpeg-devel] [RFC][PATCH] av_fifo_write_from_bytestream() Date: 04/03/2008 12:14 PM Originally committed as revision 12773 to svn://svn.ffmpeg.org/ffmpeg/trunk
* change while loops to do-while as the condition is true the first time and ↵Michael Niedermayer2007-01-181-4/+4
| | | | | | the check just wastes cpu cycles Originally committed as revision 7576 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simpler branch structure in init (16 bytes smaller object file)Michael Niedermayer2007-01-171-1/+1
| | | | Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* doxygenizeMichael Niedermayer2007-01-171-2/+2
| | | | Originally committed as revision 7574 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avoid code duplicationMichael Niedermayer2007-01-171-3/+1
| | | | Originally committed as revision 7573 to svn://svn.ffmpeg.org/ffmpeg/trunk
* better to set things to NULL instead of random in case of out of memMichael Niedermayer2007-01-171-1/+1
| | | | Originally committed as revision 7572 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify av_fifo_realloc()Michael Niedermayer2007-01-171-11/+7
| | | | Originally committed as revision 7571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove near duplicate functionMichael Niedermayer2007-01-171-15/+6
| | | | Originally committed as revision 7570 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplifyMichael Niedermayer2007-01-171-8/+3
| | | | Originally committed as revision 7569 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplifyMichael Niedermayer2007-01-171-5/+2
| | | | Originally committed as revision 7568 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-071-4/+6
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* * Moving FifoBuffer out of libavformat/avformat.h andRoman Shaposhnik2006-09-211-0/+135
libavformat/utils.c into libavutil Originally committed as revision 6310 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud