Go to the source code of this file.
Classes | |
| struct | AVFifoBuffer |
Functions | |
| int | av_fifo_init (AVFifoBuffer *f, int size) |
| void | av_fifo_free (AVFifoBuffer *f) |
| int | av_fifo_size (AVFifoBuffer *f) |
| int | av_fifo_read (AVFifoBuffer *f, uint8_t *buf, int buf_size) |
| int | av_fifo_generic_read (AVFifoBuffer *f, int buf_size, void(*func)(void *, void *, int), void *dest) |
| void | av_fifo_write (AVFifoBuffer *f, const uint8_t *buf, int size) |
| void | av_fifo_realloc (AVFifoBuffer *f, unsigned int size) |
| void | av_fifo_drain (AVFifoBuffer *f, int size) |
| static uint8_t | av_fifo_peek (AVFifoBuffer *f, int offs) |
| void av_fifo_drain | ( | AVFifoBuffer * | f, | |
| int | size | |||
| ) |
discard data from the fifo
Definition at line 107 of file fifo.c.
References AVFifoBuffer::buffer, AVFifoBuffer::end, and AVFifoBuffer::rptr.
Referenced by av_fifo_generic_read().
| void av_fifo_free | ( | AVFifoBuffer * | f | ) |
Definition at line 33 of file fifo.c.
References av_free(), and AVFifoBuffer::buffer.
Referenced by av_encode().
| int av_fifo_generic_read | ( | AVFifoBuffer * | f, | |
| int | buf_size, | |||
| void(*)(void *, void *, int) | func, | |||
| void * | dest | |||
| ) |
get data from the fifo (return -1 if not enough data)
Definition at line 87 of file fifo.c.
References av_fifo_drain(), av_fifo_size(), AVFifoBuffer::end, FFMIN, and AVFifoBuffer::rptr.
Referenced by av_fifo_read().
| int av_fifo_init | ( | AVFifoBuffer * | f, | |
| int | size | |||
| ) |
Definition at line 23 of file fifo.c.
References av_malloc(), AVFifoBuffer::buffer, AVFifoBuffer::end, AVFifoBuffer::rptr, and AVFifoBuffer::wptr.
Referenced by av_encode(), and av_fifo_realloc().
| static uint8_t av_fifo_peek | ( | AVFifoBuffer * | f, | |
| int | offs | |||
| ) | [inline, static] |
Definition at line 22 of file fifo.h.
References AVFifoBuffer::buffer, AVFifoBuffer::end, and AVFifoBuffer::rptr.
| int av_fifo_read | ( | AVFifoBuffer * | f, | |
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Get data from the fifo (returns -1 if not enough data).
Definition at line 49 of file fifo.c.
References av_fifo_generic_read(), and NULL.
Referenced by av_fifo_realloc(), do_audio_out(), and output_packet().
| void av_fifo_realloc | ( | AVFifoBuffer * | f, | |
| unsigned int | new_size | |||
| ) |
Resizes a FIFO.
Definition at line 57 of file fifo.c.
References av_fifo_init(), av_fifo_read(), av_fifo_size(), av_free(), AVFifoBuffer::buffer, AVFifoBuffer::end, and AVFifoBuffer::wptr.
| int av_fifo_size | ( | AVFifoBuffer * | f | ) |
Definition at line 38 of file fifo.c.
References AVFifoBuffer::buffer, AVFifoBuffer::end, AVFifoBuffer::rptr, and AVFifoBuffer::wptr.
Referenced by av_fifo_generic_read(), av_fifo_realloc(), do_audio_out(), and output_packet().
| void av_fifo_write | ( | AVFifoBuffer * | f, | |
| const uint8_t * | buf, | |||
| int | size | |||
| ) |
Definition at line 72 of file fifo.c.
References AVFifoBuffer::buffer, AVFifoBuffer::end, FFMIN, and AVFifoBuffer::wptr.
Referenced by do_audio_out().
1.5.6