aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/container_fifo.h
Commit message (Collapse)AuthorAgeFilesLines
* lavc/container_fifo: move to lavu and make publicAnton Khirnov2024-12-151-89/+0
| | | | | | | | | | | | | | This can be useful in other places, e.g. it can replace objpool in fftools. The API is modified in the following nontrivial ways: * opaque pointers can be passed through to all user callbacks * read and write were previously separate callbacks in order to accomodate the caller wishing to write a new reference to the FIFO and keep the original one; the two callbacks are now merged into one, and a flags argument is added that allows to request such behaviour on a per-call basis * new peek and drain functions
* avcodec/container_fifo: add missing stddef.h includeJames Almer2024-08-211-0/+2
| | | | | | Fixes make checkheaders Signed-off-by: James Almer <jamrial@gmail.com>
* lavc: add private container FIFO APIAnton Khirnov2024-08-191-0/+87
It provides a FIFO for "container" objects like AVFrame/AVPacket and features an integrated FFRefStructPool-based pool to avoid allocating an freeing them repeatedly.