aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/error.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-30 19:56:11 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-07 00:30:22 +0100
commit7329b22c058cf271e9ea3aa6e8ab2bb1c462d99f (patch)
treec896d62d2557f4166dbdf84b57730fe5de2ebe48 /libavutil/error.c
parent5939c8d3616a559fb5994e570c96e1a0ecad528b (diff)
downloadffmpeg-7329b22c058cf271e9ea3aa6e8ab2bb1c462d99f.tar.gz
lavu/fifo: Add new AVFifo API based upon the notion of element size
Many AVFifoBuffer users operate on fixed-size elements (e.g. pointers), but the current FIFO API deals exclusively in bytes, requiring extra complexity in all these callers. Add a new AVFifo API creating a FIFO with an element size that may be larger than a byte. All operations on such a FIFO then operate on complete elements. This API does not reuse AVFifoBuffer and its API at all, but instead uses an opaque struct called AVFifo. The AVFifoBuffer API will be deprecated in a future commit once all of its users have been switched to the new API. Not reusing AVFifoBuffer also allowed to use the full range of size_t from the beginning.
Diffstat (limited to 'libavutil/error.c')
0 files changed, 0 insertions, 0 deletions