#include "libavutil/audioconvert.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavcodec/avcodec.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
#include "avcodec.h"
Go to the source code of this file.
Functions | |
void | ff_avfilter_default_free_buffer (AVFilterBuffer *ptr) |
default handler for freeing audio/video buffer when there are no references left | |
static void | copy_video_props (AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) |
AVFilterBufferRef * | avfilter_ref_buffer (AVFilterBufferRef *ref, int pmask) |
Add a new reference to a buffer. | |
void | ff_free_pool (AVFilterPool *pool) |
static void | store_in_pool (AVFilterBufferRef *ref) |
void | avfilter_unref_buffer (AVFilterBufferRef *ref) |
Remove a reference to a buffer. | |
void | avfilter_unref_bufferp (AVFilterBufferRef **ref) |
Remove a reference to a buffer and set the pointer to NULL. | |
void | avfilter_copy_buffer_ref_props (AVFilterBufferRef *dst, AVFilterBufferRef *src) |
Copy properties of src to dst, without copying the actual data. | |
AVFilterBufferRef * | ff_copy_buffer_ref (AVFilterLink *outlink, AVFilterBufferRef *ref) |
void avfilter_copy_buffer_ref_props | ( | AVFilterBufferRef * | dst, | |
AVFilterBufferRef * | src | |||
) |
Copy properties of src to dst, without copying the actual data.
Definition at line 184 of file buffer.c.
Referenced by default_start_frame(), end_frame(), ff_copy_buffer_ref(), ff_filter_samples(), ff_inplace_start_frame(), ff_start_frame(), filter_samples(), return_frame(), and start_frame().
AVFilterBufferRef* avfilter_ref_buffer | ( | AVFilterBufferRef * | ref, | |
int | pmask | |||
) |
Add a new reference to a buffer.
ref | an existing reference to the buffer | |
pmask | a bitmask containing the allowable permissions in the new reference |
Definition at line 51 of file buffer.c.
Referenced by default_start_frame(), end_frame(), ff_inplace_start_frame(), ff_null_start_frame(), filter_frame(), filter_samples(), push_frame(), request_frame(), return_audio_frame(), source_request_frame(), start_frame(), sub2video_push_ref(), try_start_frame(), and vf_next_put_image().
void avfilter_unref_buffer | ( | AVFilterBufferRef * | ref | ) |
Remove a reference to a buffer.
If this is the last reference to the buffer, the buffer itself is also automatically freed.
ref | reference to the buffer, may be NULL |
Definition at line 157 of file buffer.c.
Referenced by add_to_queue(), av_buffersink_read_samples(), av_buffersrc_add_frame(), av_buffersrc_add_ref(), avfilter_unref_bufferp(), channelmap_filter_samples(), common_uninit(), end_frame(), ff_buffersink_read_samples_compat(), ff_bufqueue_add(), ff_bufqueue_discard_all(), ff_filter_samples(), ff_filter_samples_framed(), ff_start_frame(), filter_samples(), flush_fifo(), frame_to_buf(), join_request_frame(), lavfi_read_packet(), output_frame(), process_frame(), reap_filters(), request_frame(), return_audio_frame(), start_frame(), try_start_frame(), try_start_next_frame(), uninit(), vf_next_put_image(), and write_to_fifo().
void avfilter_unref_bufferp | ( | AVFilterBufferRef ** | ref | ) |
Remove a reference to a buffer and set the pointer to NULL.
If this is the last reference to the buffer, the buffer itself is also automatically freed.
ref | pointer to the buffer reference |
Definition at line 178 of file buffer.c.
Referenced by alloc_picture(), avfilter_link_free(), clear_link(), config_output(), end_frame(), exit_program(), ff_inplace_start_frame(), ff_start_frame(), filter_samples(), join_free_buffer(), join_uninit(), main(), queue_picture(), request_frame(), start_frame(), stream_close(), uninit(), write_to_fifo(), and yae_clear().
static void copy_video_props | ( | AVFilterBufferRefVideoProps * | dst, | |
AVFilterBufferRefVideoProps * | src | |||
) | [static] |
Definition at line 42 of file buffer.c.
Referenced by avfilter_copy_buffer_ref_props(), and avfilter_ref_buffer().
void ff_avfilter_default_free_buffer | ( | AVFilterBuffer * | ptr | ) |
default handler for freeing audio/video buffer when there are no references left
Definition at line 34 of file buffer.c.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), and avfilter_get_video_buffer_ref_from_arrays().
AVFilterBufferRef* ff_copy_buffer_ref | ( | AVFilterLink * | outlink, | |
AVFilterBufferRef * | ref | |||
) |
void ff_free_pool | ( | AVFilterPool * | pool | ) |
static void store_in_pool | ( | AVFilterBufferRef * | ref | ) | [static] |