summaryrefslogtreecommitdiff
path: root/libavutil/buffer.h
Commit message (Collapse)AuthorAgeFilesLines
* avutil/buffer: constify some function parametersJames Almer2021-09-171-3/+3
| | | | | Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Remove obsolete version.h inclusionsAndreas Rheinhardt2021-07-221-2/+0
| | | | | | | These have mostly been added because of FF_API_*; yet when these were removed, removing the header has been forgotten. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/buffer: Switch AVBuffer API to size_tAndreas Rheinhardt2021-04-271-29/+0
| | | | | | | Announced in 14040a1d913794d9a3fd6406a6d8c2f0e37e0062. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/buffer: change public function and struct size parameter types to size_tJames Almer2021-03-101-0/+32
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/buffer: add a convenience function for replacing buffersAnton Khirnov2020-09-281-0/+16
| | | | | | | A common pattern e.g. in libavcodec is replacing/updating buffer references: unref old one, ref new one. This function allows simplifying such code and avoiding unnecessary refs+unrefs if the references are already equivalent.
* avutil/buffer: avutil/buffer: add a mention that some arguments from ↵James Almer2020-06-051-2/+3
| | | | | | av_buffer_pool_init2() may be NULL Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/buffer: add av_buffer_pool_buffer_get_opaqueMarton Balint2019-12-261-0/+13
| | | | | | | | | | In order to access the original opaque parameter of a buffer in the buffer pool. (The buffer pool implementation overrides the normal opaque parameter but also saves it so it is accessible). v2: add assertion check before dereferencing the BufferPoolEntry. Signed-off-by: Marton Balint <cus@passwd.hu>
* Merge commit 'ec021d48445a414325ad59a73f9cde3212b173e4'Clément Bœsch2017-03-181-3/+4
|\ | | | | | | | | | | | | * commit 'ec021d48445a414325ad59a73f9cde3212b173e4': buffer: fix av_buffer_pool_init2() documentation Merged-by: Clément Bœsch <u@pkh.me>
| * buffer: fix av_buffer_pool_init2() documentationAnton Khirnov2016-08-111-3/+4
| | | | | | | | | | | | A non-existent av_buffer_pool_can_uninit() function is mentioned instead of av_buffer_pool_uninit(). Also, this function is to be called by the caller, not the pool itself.
* | Merge commit '328e9a15c568843580ff3ff490748d545f16def8'Derek Buitenhuis2016-04-131-1/+0
|\ \ | |/ | | | | | | | | | | * commit '328e9a15c568843580ff3ff490748d545f16def8': buffer: drop a reference to a non-existing function from the docs Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * buffer: drop a reference to a non-existing function from the docsAnton Khirnov2016-03-071-1/+0
| | | | | | | | This function only ever existed in the draft versions of the API.
* | Merge commit '721a4efc0545548a241080b53ab480e34f366240'Derek Buitenhuis2016-02-171-0/+17
|\ \ | |/ | | | | | | | | | | * commit '721a4efc0545548a241080b53ab480e34f366240': buffer: add support for pools using caller data in allocation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * buffer: add support for pools using caller data in allocationAnton Khirnov2016-02-141-0/+17
| | | | | | | | | | This should allow using more complex allocators than simple malloc wrappers.
* | Revert "lavu/buffer: add release function"Lukasz Marek2014-03-061-12/+0
| | | | | | | | | | | | This reverts commit 3144440004941aa22ffea9933f5e5dfe826df654. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/buffer: add release functionLukasz Marek2014-02-251-0/+12
| | | | | | | | | | | | | | new function allows to unref buffer and obtain its data. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-011-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * qatar/master: avutil: doxy: Small clarification for av_buffer_create() avcodec: doxy: Clarify how to use buf[] when implementing get_buffer2() avcodec: doxy: Clarify what get_buffer2 must fill in buf[] Conflicts: libavutil/buffer.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: doxy: Small clarification for av_buffer_create()Derek Buitenhuis2013-04-301-1/+1
| | | | | | | | | | | | Explicitly saying it can't hurt. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avutil: add av_buffer_get_ref_count()Michael Niedermayer2013-03-301-0/+2
| | | | | | | | | | | | This function is quite usefull for debuging Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/buffer: add get_opaqueXidorn Quan2013-03-291-1/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1cec0624d0e6f48590283a57169b58b9fe8449d3'Michael Niedermayer2013-03-081-0/+70
|\ \ | |/ | | | | | | | | | | * commit '1cec0624d0e6f48590283a57169b58b9fe8449d3': AVBuffer: add a new API for buffer pools Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVBuffer: add a new API for buffer poolsAnton Khirnov2013-03-081-0/+70
| |
* | Merge commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb'Michael Niedermayer2013-03-081-5/+5
|/ | | | | | | | | | * commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb': lavu: add a new API for reference-counted data buffers. Conflicts: libavutil/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: add a new API for reference-counted data buffers.Anton Khirnov2013-03-081-0/+197