[FFmpeg-devel] [PATCH] lavu/fifo: add alloc functions
Michael Niedermayer
michaelni at gmx.at
Sat May 10 01:06:09 CEST 2014
On Tue, May 06, 2014 at 11:53:05PM +0200, Lukasz Marek wrote:
> TODO: minor bump and doc/APIchanges update
>
> Allows to alloc fifo with predefined buffer or by
> passing number of elements and size of element.
>
> Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> ---
> libavutil/fifo.c | 31 ++++++++++++++++++++++++++-----
> libavutil/fifo.h | 19 ++++++++++++++++++-
> 2 files changed, 44 insertions(+), 6 deletions(-)
>
> diff --git a/libavutil/fifo.c b/libavutil/fifo.c
> index fabf35e..f1571e8 100644
> --- a/libavutil/fifo.c
> +++ b/libavutil/fifo.c
> @@ -24,16 +24,37 @@
> #include "common.h"
> #include "fifo.h"
>
> -AVFifoBuffer *av_fifo_alloc(unsigned int size)
> +AVFifoBuffer *av_fifo_alloc_buffer(void *buffer, size_t size)
i understand why a _array function would be useful but can you
explain the usecase of this function ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Old school: Use the lowest level language in which you can solve the problem
conveniently.
New school: Use the highest level language in which the latest supercomputer
can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140510/5ea9497a/attachment.asc>
More information about the ffmpeg-devel
mailing list