Re: [FFmpeg-devel] [PATCH 03/35] lavu/fifo: introduce the notion of element size

2022-01-13 Thread James Almer
On 1/11/2022 5:45 PM, Anton Khirnov wrote: +/** + * Allocate and initialize an AVFifoBuffer with a given element size. + * + * @param f pointer to the newly-allocated FIFO will be written here on success + * @param nb_elems initial number of elements that can be stored in the FIFO + * @param e

Re: [FFmpeg-devel] [PATCH 03/35] lavu/fifo: introduce the notion of element size

2022-01-13 Thread Andreas Rheinhardt
Anton Khirnov: > 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 AVFifoBuffer constructor creating a FIFO with an element size > that may be larger than a

[FFmpeg-devel] [PATCH 03/35] lavu/fifo: introduce the notion of element size

2022-01-11 Thread Anton Khirnov
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 AVFifoBuffer constructor creating a FIFO with an element size that may be larger than a byte. All operations on su