#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | AVFifoBuffer |
Functions | |
AVFifoBuffer * | av_fifo_alloc (unsigned int size) |
Initialize an AVFifoBuffer. | |
void | av_fifo_free (AVFifoBuffer *f) |
Free an AVFifoBuffer. | |
void | av_fifo_reset (AVFifoBuffer *f) |
Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied. | |
int | av_fifo_size (AVFifoBuffer *f) |
Return the amount of data in bytes in the AVFifoBuffer, that is the amount of data you can read from it. | |
int | av_fifo_space (AVFifoBuffer *f) |
Return the amount of space in bytes in the AVFifoBuffer, that is the amount of data you can write into it. | |
int | av_fifo_generic_read (AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int)) |
Feed data from an AVFifoBuffer to a user-supplied callback. | |
int | av_fifo_generic_write (AVFifoBuffer *f, void *src, int size, int(*func)(void *, void *, int)) |
Feed data from a user-supplied callback to an AVFifoBuffer. | |
int | av_fifo_realloc2 (AVFifoBuffer *f, unsigned int size) |
Resize an AVFifoBuffer. | |
void | av_fifo_drain (AVFifoBuffer *f, int size) |
Read and discard the specified amount of data from an AVFifoBuffer. | |
static uint8_t | av_fifo_peek (AVFifoBuffer *f, int offs) |
Definition in file fifo.h.
AVFifoBuffer* av_fifo_alloc | ( | unsigned int | size | ) |
Initialize an AVFifoBuffer.
size | of FIFO |
Definition at line 25 of file fifo.c.
Referenced by av_fifo_realloc2(), dv_init_mux(), ff_audio_interleave_init(), flac_parse_init(), init(), mpeg_mux_init(), start_jack(), swf_write_header(), transcode(), and udp_open().
void av_fifo_drain | ( | AVFifoBuffer * | f, | |
int | size | |||
) |
Read and discard the specified amount of data from an AVFifoBuffer.
*f | AVFifoBuffer to read from | |
size | amount of data to read in bytes |
Definition at line 123 of file fifo.c.
Referenced by av_fifo_generic_read(), dv_assemble_frame(), and flac_parse().
void av_fifo_free | ( | AVFifoBuffer * | f | ) |
Free an AVFifoBuffer.
*f | AVFifoBuffer to free |
Definition at line 38 of file fifo.c.
Referenced by dv_delete_mux(), dv_init_mux(), ff_audio_interleave_close(), flac_parse_close(), free_pkt_fifo(), mpeg_mux_end(), swf_write_trailer(), udp_close(), udp_open(), and uninit().
int av_fifo_generic_read | ( | AVFifoBuffer * | f, | |
void * | dest, | |||
int | buf_size, | |||
void(*)(void *, void *, int) | func | |||
) |
Feed data from an AVFifoBuffer to a user-supplied callback.
*f | AVFifoBuffer to read from | |
buf_size | number of bytes to read | |
*func | generic read function | |
*dest | data destination |
Definition at line 105 of file fifo.c.
Referenced by audio_read_packet(), av_fifo_realloc2(), do_audio_out(), ff_interleave_new_audio_packet(), flush_packet(), free_pkt_fifo(), output_packet(), process_callback(), request_frame(), swf_write_video(), udp_read(), and uninit().
int av_fifo_generic_write | ( | AVFifoBuffer * | f, | |
void * | src, | |||
int | size, | |||
int(*)(void *, void *, int) | func | |||
) |
Feed data from a user-supplied callback to an AVFifoBuffer.
*f | AVFifoBuffer to write to | |
*src | data source; non-const since it may be used as a modifiable context by the function defined in func | |
size | number of bytes to write | |
*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. |
Definition at line 82 of file fifo.c.
Referenced by do_audio_out(), dv_assemble_frame(), ff_audio_rechunk_interleave(), flac_parse(), mpeg_mux_write_packet(), process_callback(), start_frame(), supply_new_packets(), and swf_write_audio().
static uint8_t av_fifo_peek | ( | AVFifoBuffer * | f, | |
int | offs | |||
) | [inline, static] |
int av_fifo_realloc2 | ( | AVFifoBuffer * | f, | |
unsigned int | size | |||
) |
Resize an AVFifoBuffer.
*f | AVFifoBuffer to resize | |
size | new AVFifoBuffer size in bytes |
Definition at line 62 of file fifo.c.
Referenced by do_audio_out(), ff_audio_rechunk_interleave(), flac_parse(), and mpeg_mux_write_packet().
void av_fifo_reset | ( | AVFifoBuffer * | f | ) |
Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.
*f | AVFifoBuffer to reset |
Definition at line 46 of file fifo.c.
Referenced by av_fifo_alloc().
int av_fifo_size | ( | AVFifoBuffer * | f | ) |
Return the amount of data in bytes in the AVFifoBuffer, that is the amount of data you can read from it.
*f | AVFifoBuffer to read from |
Definition at line 52 of file fifo.c.
Referenced by av_fifo_realloc2(), av_fifo_space(), do_audio_out(), dv_assemble_frame(), ff_audio_rechunk_interleave(), ff_interleave_new_audio_packet(), find_new_headers(), flac_parse(), flush_packet(), free_pkt_fifo(), get_best_header(), mpeg_mux_end(), mpeg_mux_write_packet(), output_packet(), poll_frame(), process_callback(), request_frame(), swf_write_audio(), swf_write_video(), udp_read(), and uninit().
int av_fifo_space | ( | AVFifoBuffer * | f | ) |
Return the amount of space in bytes in the AVFifoBuffer, that is the amount of data you can write into it.
*f | AVFifoBuffer to write into |
Definition at line 57 of file fifo.c.
Referenced by circular_buffer_task(), poll_frame(), process_callback(), start_frame(), and supply_new_packets().