ffmpeg.libavutil.fifo

@file a very simple circular buffer FIFO implementation

Members

Functions

av_fifo_alloc
AVFifoBuffer* av_fifo_alloc(uint size)

Initialize an AVFifoBuffer. @param size of FIFO @return AVFifoBuffer or NULL in case of memory allocation failure

av_fifo_alloc_array
AVFifoBuffer* av_fifo_alloc_array(size_t nmemb, size_t size)

Initialize an AVFifoBuffer. @param nmemb number of elements @param size size of the single element @return AVFifoBuffer or NULL in case of memory allocation failure

av_fifo_drain
void av_fifo_drain(AVFifoBuffer* f, int size)

Read and discard the specified amount of data from an AVFifoBuffer. @param f AVFifoBuffer to read from @param size amount of data to read in bytes

av_fifo_free
void av_fifo_free(AVFifoBuffer* f)

Free an AVFifoBuffer. @param f AVFifoBuffer to free

av_fifo_freep
void av_fifo_freep(AVFifoBuffer** f)

Free an AVFifoBuffer and reset pointer to NULL. @param f AVFifoBuffer to free

av_fifo_generic_peek
int av_fifo_generic_peek(AVFifoBuffer* f, void* dest, int buf_size, void function(void*, void*, int) func)

Feed data from an AVFifoBuffer to a user-supplied callback. Similar as av_fifo_gereric_read but without discarding data. @param f AVFifoBuffer to read from @param buf_size number of bytes to read @param func generic read function @param dest data destination

av_fifo_generic_peek_at
int av_fifo_generic_peek_at(AVFifoBuffer* f, void* dest, int offset, int buf_size, void function(void*, void*, int) func)

Feed data at specific position from an AVFifoBuffer to a user-supplied callback. Similar as av_fifo_gereric_read but without discarding data. @param f AVFifoBuffer to read from @param offset offset from current read position @param buf_size number of bytes to read @param func generic read function @param dest data destination

av_fifo_generic_read
int av_fifo_generic_read(AVFifoBuffer* f, void* dest, int buf_size, void function(void*, void*, int) func)

Feed data from an AVFifoBuffer to a user-supplied callback. @param f AVFifoBuffer to read from @param buf_size number of bytes to read @param func generic read function @param dest data destination

av_fifo_generic_write
int av_fifo_generic_write(AVFifoBuffer* f, void* src, int size, int function(void*, void*, int) func)

Feed data from a user-supplied callback to an AVFifoBuffer. @param f AVFifoBuffer to write to @param src data source; non-const since it may be used as a modifiable context by the function defined in func @param size number of bytes to write @param func generic write function; the first parameter is src, the second is dest_buf, the third is dest_buf_size. func must return the number of bytes written to dest_buf, or <= 0 to indicate no more data available to write. If func is NULL, src is interpreted as a simple byte array for source data. @return the number of bytes written to the FIFO

av_fifo_grow
int av_fifo_grow(AVFifoBuffer* f, uint additional_space)

Enlarge an AVFifoBuffer. In case of reallocation failure, the old FIFO is kept unchanged. The new fifo size may be larger than the requested size.

av_fifo_peek2
ubyte* av_fifo_peek2(const(AVFifoBuffer)* f, int offs)

Return a pointer to the data stored in a FIFO buffer at a certain offset. The FIFO buffer is not modified.

av_fifo_realloc2
int av_fifo_realloc2(AVFifoBuffer* f, uint size)

Resize an AVFifoBuffer. In case of reallocation failure, the old FIFO is kept unchanged.

av_fifo_reset
void av_fifo_reset(AVFifoBuffer* f)

Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied. @param f AVFifoBuffer to reset

av_fifo_size
int av_fifo_size(const(AVFifoBuffer)* f)

Return the amount of data in bytes in the AVFifoBuffer, that is the amount of data you can read from it. @param f AVFifoBuffer to read from @return size

av_fifo_space
int av_fifo_space(const(AVFifoBuffer)* f)

Return the amount of space in bytes in the AVFifoBuffer, that is the amount of data you can write into it. @param f AVFifoBuffer to write into @return size

Structs

AVFifoBuffer
struct AVFifoBuffer
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta