libavfilter/buffer.c File Reference

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


Function Documentation

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.

Returns:
0 on success, a negative number on error.

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.

Returns:
0 on success, a negative number on error.

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.

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

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

Definition at line 79 of file buffer.c.

Referenced by avfilter_link_free(), and store_in_pool().

static void store_in_pool ( AVFilterBufferRef ref  )  [static]

Definition at line 108 of file buffer.c.

Referenced by avfilter_unref_buffer().


Generated on Fri Oct 26 02:48:00 2012 for FFmpeg by  doxygen 1.5.8