#include "libavutil/audioconvert.h"
#include "libavutil/avassert.h"
#include "libavcodec/avcodec.h"
#include "avfilter.h"
#include "internal.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 | |
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. | |
int | avfilter_copy_frame_props (AVFilterBufferRef *dst, const AVFrame *src) |
Copy the frame properties of src to dst, without copying the actual image data. | |
int | avfilter_copy_buf_props (AVFrame *dst, const AVFilterBufferRef *src) |
Copy the frame properties and data pointers of src to dst, without copying the actual data. | |
void | avfilter_copy_buffer_ref_props (AVFilterBufferRef *dst, AVFilterBufferRef *src) |
Copy properties of src to dst, without copying the actual data. |
int avfilter_copy_buf_props | ( | AVFrame * | dst, | |
const AVFilterBufferRef * | src | |||
) |
Copy the frame properties and data pointers of src to dst, without copying the actual data.
Definition at line 193 of file buffer.c.
Referenced by poll_filters().
void avfilter_copy_buffer_ref_props | ( | AVFilterBufferRef * | dst, | |
AVFilterBufferRef * | src | |||
) |
Copy properties of src to dst, without copying the actual data.
Definition at line 237 of file buffer.c.
Referenced by avfilter_start_frame(), copy_buffer_ref(), default_start_frame(), end_frame(), filter_samples(), return_frame(), and start_frame().
int avfilter_copy_frame_props | ( | AVFilterBufferRef * | dst, | |
const AVFrame * | src | |||
) |
Copy the frame properties of src to dst, without copying the actual image data.
Definition at line 166 of file buffer.c.
Referenced by avfilter_get_audio_buffer_ref_from_frame(), avfilter_get_video_buffer_ref_from_frame(), and decode_video().
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 39 of file buffer.c.
Referenced by color_request_frame(), default_start_frame(), end_frame(), ff_default_filter_samples(), ff_null_start_frame_keep_ref(), filter_samples(), request_frame(), source_request_frame(), 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 141 of file buffer.c.
Referenced by alloc_picture(), av_buffersink_read_samples(), av_buffersrc_add_frame(), av_buffersrc_add_ref(), avfilter_end_frame(), avfilter_unref_bufferp(), color_request_frame(), common_uninit(), default_end_frame(), end_frame(), ff_default_filter_samples(), ff_filter_samples(), filter_samples(), flush_fifo(), lavfi_read_packet(), main(), movie_common_uninit(), output_frame(), poll_filters(), queue_picture(), request_frame(), start_frame(), stream_close(), 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 160 of file buffer.c.
Referenced by end_frame(), and uninit().
void ff_avfilter_default_free_buffer | ( | AVFilterBuffer * | ptr | ) |
default handler for freeing audio/video buffer when there are no references left
Definition at line 31 of file buffer.c.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), and avfilter_get_video_buffer_ref_from_arrays().
void ff_free_pool | ( | AVFilterPool * | pool | ) |
static void store_in_pool | ( | AVFilterBufferRef * | ref | ) | [static] |