libavfilter/buffer.c File Reference

#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)
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

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.

Parameters:
ref an existing reference to the buffer
pmask a bitmask containing the allowable permissions in the new reference
Returns:
a new reference to the buffer with the same properties as the old, excluding any permissions denied by pmask

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  ) 

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.

Parameters:
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 
)

Definition at line 202 of file buffer.c.

Referenced by av_buffersrc_add_ref(), and frame_to_buf().

void ff_free_pool ( AVFilterPool pool  ) 

Definition at line 91 of file buffer.c.

Referenced by avfilter_link_free(), and store_in_pool().

static void store_in_pool ( AVFilterBufferRef ref  )  [static]

Definition at line 121 of file buffer.c.

Referenced by avfilter_unref_buffer().


Generated on Fri Oct 26 02:50:09 2012 for FFmpeg by  doxygen 1.5.8