FFmpeg
Functions
buffer.c File Reference
#include "libavutil/channel_layout.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)
 
AVFilterBufferRefavfilter_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.
 
AVFilterBufferRefff_copy_buffer_ref (AVFilterLink *outlink, AVFilterBufferRef *ref)
 

Function Documentation

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_channels(), and avfilter_get_video_buffer_ref_from_arrays().

AVFilterBufferRef* ff_copy_buffer_ref ( AVFilterLink outlink,
AVFilterBufferRef ref 
)

Definition at line 210 of file buffer.c.

Referenced by av_buffersrc_add_ref(), and frame_to_buf().

void ff_free_pool ( AVFilterPool pool)

Definition at line 95 of file buffer.c.

Referenced by avfilter_link_free(), and store_in_pool().

static void store_in_pool ( AVFilterBufferRef ref)
static

Definition at line 125 of file buffer.c.

Referenced by avfilter_unref_buffer().