Go to the documentation of this file.
19 #ifndef AVCODEC_CONTAINER_FIFO_H
20 #define AVCODEC_CONTAINER_FIFO_H
89 #endif // AVCODEC_CONTAINER_FIFO_H
void(* container_free)(void *obj)
ContainerFifo * ff_container_fifo_alloc_avframe(unsigned flags)
Allocate a ContainerFifo instance for AVFrames.
int ff_container_fifo_read(ContainerFifo *pf, void *obj)
Read the next available object from the FIFO into obj.
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
ContainerFifo is a FIFO for "containers" - dynamically allocated reusable structs (e....
void ff_container_fifo_free(ContainerFifo **pf)
Free a ContainerFifo and everything in it.
int(* fifo_write)(void *dst, void *src)
int(* fifo_read)(void *dst, void *src)
int ff_container_fifo_write(ContainerFifo *pf, void *obj)
Write the contents of obj to the FIFO.
ContainerFifo * ff_container_fifo_alloc(void *(*container_alloc)(void), void(*container_reset)(void *obj), void(*container_free)(void *obj), int(*fifo_write)(void *dst, void *src), int(*fifo_read)(void *dst, void *src))
Allocate a new ContainerFifo for the container type defined by provided callbacks.
#define flags(name, subs,...)
void *(* container_alloc)(void)
size_t ff_container_fifo_can_read(ContainerFifo *pf)
void(* container_reset)(void *obj)