FFmpeg
|
Go to the source code of this file.
Functions | |
AVFifoBuffer * | av_fifo_alloc (unsigned int size) |
Initialize an AVFifoBuffer. More... | |
void | av_fifo_free (AVFifoBuffer *f) |
Free an AVFifoBuffer. More... | |
void | av_fifo_reset (AVFifoBuffer *f) |
Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied. More... | |
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. More... | |
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. More... | |
int | av_fifo_realloc2 (AVFifoBuffer *f, unsigned int new_size) |
Resize an AVFifoBuffer. More... | |
int | av_fifo_grow (AVFifoBuffer *f, unsigned int size) |
Enlarge an AVFifoBuffer. More... | |
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. More... | |
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. More... | |
void | av_fifo_drain (AVFifoBuffer *f, int size) |
Discard data from the FIFO. More... | |
Function Documentation
AVFifoBuffer* av_fifo_alloc | ( | unsigned int | size | ) |
Initialize an AVFifoBuffer.
- Parameters
-
size of FIFO
- Returns
- AVFifoBuffer or NULL in case of memory allocation failure
Definition at line 25 of file libavutil/fifo.c.
Referenced by av_audio_fifo_alloc(), av_fifo_drain(), av_fifo_realloc2(), common_init(), dv_init_mux(), ff_audio_interleave_init(), ff_frame_thread_encoder_init(), flac_parse_init(), init(), init_audio(), init_input_threads(), init_video(), mpeg_mux_init(), oggvorbis_encode_init(), start_jack(), swf_write_header(), and udp_open().
void av_fifo_drain | ( | AVFifoBuffer * | f, |
int | size | ||
) |
Discard data from the FIFO.
Read and discard the specified amount of data from an AVFifoBuffer.
Definition at line 142 of file libavutil/fifo.c.
Referenced by av_audio_fifo_drain(), av_fifo_generic_read(), dv_assemble_frame(), flac_parse(), and udp_read().
void av_fifo_free | ( | AVFifoBuffer * | f | ) |
Free an AVFifoBuffer.
- Parameters
-
f AVFifoBuffer to free
Definition at line 38 of file libavutil/fifo.c.
Referenced by av_audio_fifo_free(), av_fifo_drain(), dv_delete_mux(), dv_init_mux(), ff_audio_interleave_close(), ff_frame_thread_encoder_free(), flac_parse_close(), free_input_threads(), free_pkt_fifo(), mpeg_mux_end(), oggvorbis_encode_close(), 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.
- Parameters
-
f AVFifoBuffer to read from buf_size number of bytes to read func generic read function dest data destination
Definition at line 124 of file libavutil/fifo.c.
Referenced by audio_read_packet(), av_audio_fifo_read(), av_buffersink_get_frame_flags(), av_fifo_drain(), av_fifo_realloc2(), ff_interleave_new_audio_packet(), filter_frame(), flush_fifo(), flush_packet(), free_input_threads(), free_pkt_fifo(), get_input_packet_mt(), oggvorbis_encode_frame(), process_callback(), request_frame(), swf_write_video(), udp_read(), uninit(), and worker().
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.
- Parameters
-
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.
- Returns
- the number of bytes written to the FIFO
Definition at line 96 of file libavutil/fifo.c.
Referenced by add_buffer_ref(), av_audio_fifo_write(), av_buffersrc_add_frame_internal(), av_fifo_drain(), dv_assemble_frame(), ff_audio_rechunk_interleave(), ff_thread_video_encode_frame(), flac_parse(), input_thread(), mpeg_mux_write_packet(), oggvorbis_encode_frame(), process_callback(), supply_new_packets(), swf_write_audio(), udp_get_file_handle(), and write_to_fifo().
int av_fifo_grow | ( | AVFifoBuffer * | f, |
unsigned int | 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.
- Parameters
-
f AVFifoBuffer to resize additional_space the amount of space in bytes to allocate in addition to av_fifo_size()
- Returns
- <0 for failure, >=0 otherwise
Definition at line 82 of file libavutil/fifo.c.
int av_fifo_realloc2 | ( | AVFifoBuffer * | f, |
unsigned int | size | ||
) |
Resize an AVFifoBuffer.
In case of reallocation failure, the old FIFO is kept unchanged.
- Parameters
-
f AVFifoBuffer to resize size new AVFifoBuffer size in bytes
- Returns
- <0 for failure, >=0 otherwise
Definition at line 62 of file libavutil/fifo.c.
Referenced by add_buffer_ref(), av_audio_fifo_realloc(), av_buffersrc_add_frame_internal(), av_fifo_grow(), ff_audio_rechunk_interleave(), flac_parse(), mpeg_mux_write_packet(), and write_to_fifo().
void av_fifo_reset | ( | AVFifoBuffer * | f | ) |
Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.
- Parameters
-
f AVFifoBuffer to reset
Definition at line 46 of file libavutil/fifo.c.
Referenced by av_audio_fifo_reset(), and 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.
- Parameters
-
f AVFifoBuffer to read from
- Returns
- size
Definition at line 52 of file libavutil/fifo.c.
Referenced by add_buffer_ref(), av_buffersink_get_frame_flags(), av_buffersink_poll_frame(), av_buffersrc_add_frame_internal(), av_fifo_drain(), av_fifo_grow(), av_fifo_realloc2(), av_fifo_space(), dv_assemble_frame(), ff_audio_rechunk_interleave(), ff_interleave_new_audio_packet(), filter_frame(), find_new_headers(), flac_parse(), flush_fifo(), flush_packet(), free_input_threads(), free_pkt_fifo(), get_best_header(), get_input_packet_mt(), mpeg_mux_end(), mpeg_mux_write_packet(), oggvorbis_encode_frame(), output_packet(), poll_frame(), process_callback(), request_frame(), swf_write_audio(), swf_write_video(), udp_read(), uninit(), worker(), and write_to_fifo().
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.
- Parameters
-
f AVFifoBuffer to write into
- Returns
- size
Definition at line 57 of file libavutil/fifo.c.
Referenced by add_buffer_ref(), av_buffersrc_add_frame_internal(), av_fifo_drain(), flac_parse(), input_thread(), oggvorbis_encode_frame(), process_callback(), supply_new_packets(), udp_get_file_handle(), and write_to_fifo().
Generated on Tue Jan 21 2025 06:52:33 for FFmpeg by 1.8.11