FFmpeg
|
Go to the source code of this file.
Functions | |
static AVFifoBuffer * | fifo_alloc_common (void *buffer, size_t size) |
AVFifoBuffer * | av_fifo_alloc (unsigned int size) |
Initialize an AVFifoBuffer. More... | |
AVFifoBuffer * | av_fifo_alloc_array (size_t nmemb, size_t size) |
Initialize an AVFifoBuffer. More... | |
void | av_fifo_free (AVFifoBuffer *f) |
Free an AVFifoBuffer. More... | |
void | av_fifo_freep (AVFifoBuffer **f) |
Free an AVFifoBuffer and reset pointer to NULL. 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 (const 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 (const 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_peek_at (AVFifoBuffer *f, void *dest, int offset, int buf_size, void(*func)(void *, void *, int)) |
Feed data at specific position from an AVFifoBuffer to a user-supplied callback. More... | |
int | av_fifo_generic_peek (AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int)) |
Feed data from an AVFifoBuffer to a user-supplied callback. 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... | |
|
static |
Definition at line 27 of file fifo.c.
Referenced by av_fifo_alloc(), and av_fifo_alloc_array().
AVFifoBuffer* av_fifo_alloc | ( | unsigned int | size | ) |
Initialize an AVFifoBuffer.
size | of FIFO |
Definition at line 43 of file fifo.c.
Referenced by amf_load_library(), av_audio_fifo_alloc(), av_fifo_realloc2(), av_thread_message_queue_alloc(), avcodec_open2(), cuvid_decode_init(), DEF_CHOOSE_FORMAT(), ff_qsv_enc_init(), init_input_filter(), libvorbis_encode_init(), main(), mpeg_mux_init(), new_output_stream(), nvenc_setup_surfaces(), packet_queue_init(), qsv_decode_init(), qsv_decode_preinit(), ring_init(), swf_write_header(), transcode_subtitles(), and udp_open().
AVFifoBuffer* av_fifo_alloc_array | ( | size_t | nmemb, |
size_t | size | ||
) |
Initialize an AVFifoBuffer.
nmemb | number of elements |
size | size of the single element |
Definition at line 49 of file fifo.c.
Referenced by deshake_opencl_init(), dv_init_mux(), flac_parse_init(), and start_jack().
void av_fifo_free | ( | AVFifoBuffer * | f | ) |
Free an AVFifoBuffer.
f | AVFifoBuffer to free |
Definition at line 55 of file fifo.c.
Referenced by av_fifo_freep(), ff_qsv_enc_close(), main(), qsv_decode_close(), and qsv_decode_close_qsvcontext().
void av_fifo_freep | ( | AVFifoBuffer ** | f | ) |
Free an AVFifoBuffer and reset pointer to NULL.
f | AVFifoBuffer to free |
Definition at line 63 of file fifo.c.
Referenced by av_audio_fifo_free(), av_thread_message_queue_free(), avcodec_close(), avcodec_open2(), cuvid_decode_end(), deshake_opencl_uninit(), dv_deinit(), ff_amf_encode_close(), ff_nvenc_encode_close(), ffmpeg_cleanup(), flac_parse_close(), free_debug_matches(), free_pkt_fifo(), libvorbis_encode_close(), mpeg_mux_deinit(), packet_queue_destroy(), ring_destroy(), swf_deinit(), udp_close(), and udp_open().
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 71 of file fifo.c.
Referenced by av_audio_fifo_reset(), avcodec_flush_buffers(), ff_nvenc_encode_flush(), fifo_alloc_common(), main(), and ring_reset().
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.
f | AVFifoBuffer to read from |
Definition at line 77 of file fifo.c.
Referenced by amf_copy_buffer(), av_fifo_drain(), av_fifo_grow(), av_fifo_realloc2(), av_fifo_space(), av_thread_message_flush(), av_thread_message_queue_nb_elems(), avcodec_close(), avcodec_flush_buffers(), check_init_output_file(), configure_filtergraph(), cuvid_is_buffer_full(), cuvid_output_frame(), decode_receive_frame_internal(), dv_assemble_frame(), extract_packet_props(), ff_qsv_enc_close(), ff_qsv_encode(), ffmpeg_cleanup(), find_new_headers(), flac_parse(), flush_packet(), free_debug_matches(), free_pkt_fifo(), get_best_header(), get_free_frame(), ifilter_send_frame(), libvorbis_encode_frame(), main(), mpeg_mux_end(), mpeg_mux_write_packet(), nvenc_send_frame(), output_packet(), output_ready(), packet_queue_flush(), packet_queue_get(), process_callback(), qsv_clear_buffers(), qsv_decode(), qsv_decode_close_qsvcontext(), qsv_decode_frame(), qsv_fifo_size(), ring_size(), swf_write_audio(), swf_write_video(), timestamp_queue_dequeue(), transcode_subtitles(), udp_read(), and write_packet().
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.
f | AVFifoBuffer to write into |
Definition at line 82 of file fifo.c.
Referenced by activate(), extract_packet_props(), flac_parse(), ifilter_send_frame(), libvorbis_encode_frame(), main(), packet_queue_put_private(), process_callback(), qsv_decode_frame(), ring_space(), ringbuf_float_at(), supply_new_packets(), timestamp_queue_enqueue(), transcode_subtitles(), udp_write(), and write_packet().
int av_fifo_realloc2 | ( | AVFifoBuffer * | f, |
unsigned int | size | ||
) |
Resize an AVFifoBuffer.
In case of reallocation failure, the old FIFO is kept unchanged.
f | AVFifoBuffer to resize |
size | new AVFifoBuffer size in bytes |
Definition at line 87 of file fifo.c.
Referenced by av_audio_fifo_realloc(), av_fifo_grow(), flac_parse(), ifilter_send_frame(), mpeg_mux_write_packet(), qsv_decode_frame(), transcode_subtitles(), and write_packet().
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.
f | AVFifoBuffer to resize |
additional_space | the amount of space in bytes to allocate in addition to av_fifo_size() |
Definition at line 107 of file fifo.c.
Referenced by extract_packet_props(), main(), packet_queue_put_private(), and timestamp_queue_enqueue().
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 122 of file fifo.c.
Referenced by av_audio_fifo_write(), cuvid_handle_picture_display(), dv_assemble_frame(), encode_frame(), extract_packet_props(), ff_nvenc_receive_packet(), flac_parse(), ifilter_send_frame(), libvorbis_encode_frame(), main(), mpeg_mux_write_packet(), nvenc_alloc_surface(), nvenc_send_frame(), packet_queue_put_private(), process_callback(), qsv_decode(), qsv_decode_frame(), ring_generic_write(), supply_new_packets(), swf_write_audio(), timestamp_queue_enqueue(), transcode_subtitles(), udp_write(), and write_packet().
int av_fifo_generic_peek_at | ( | AVFifoBuffer * | f, |
void * | dest, | ||
int | offset, | ||
int | buf_size, | ||
void(*)(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.
f | AVFifoBuffer to read from |
offset | offset from current read position |
buf_size | number of bytes to read |
func | generic read function |
dest | data destination |
Definition at line 151 of file fifo.c.
Referenced by amf_copy_buffer(), av_audio_fifo_peek_at(), av_thread_message_flush(), filter_frame(), main(), ring_generic_read(), and ringbuf_float_at().
int av_fifo_generic_peek | ( | AVFifoBuffer * | f, |
void * | dest, | ||
int | buf_size, | ||
void(*)(void *, void *, int) | func | ||
) |
Feed data from an AVFifoBuffer to a user-supplied callback.
Similar as av_fifo_gereric_read but without discarding data.
f | AVFifoBuffer to read from |
buf_size | number of bytes to read |
func | generic read function |
dest | data destination |
Definition at line 189 of file fifo.c.
Referenced by av_audio_fifo_peek(), and main().
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 213 of file fifo.c.
Referenced by amf_copy_buffer(), audio_read_packet(), av_audio_fifo_read(), av_fifo_realloc2(), avcodec_close(), avcodec_flush_buffers(), check_init_output_file(), configure_filtergraph(), cuvid_output_frame(), decode_receive_frame_internal(), extract_packet_props(), ff_nvenc_receive_packet(), ff_qsv_enc_close(), ff_qsv_encode(), ffmpeg_cleanup(), filter_frame(), flush_packet(), free_debug_matches(), free_pkt_fifo(), get_free_frame(), libvorbis_encode_frame(), main(), nvenc_send_frame(), packet_queue_flush(), packet_queue_get(), process_callback(), qsv_clear_buffers(), qsv_decode(), qsv_decode_close_qsvcontext(), qsv_decode_frame(), swf_write_video(), timestamp_queue_dequeue(), and udp_read().
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 233 of file fifo.c.
Referenced by activate(), av_audio_fifo_drain(), av_fifo_generic_read(), av_thread_message_flush(), dv_assemble_frame(), flac_parse(), ring_generic_read(), and udp_read().