libavfilter/sink_buffer.c File Reference

buffer video sink More...

#include "libavutil/fifo.h"
#include "avfilter.h"
#include "buffersink.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BufferSinkContext

Defines

#define FIFO_INIT_SIZE   8

Functions

AVBufferSinkParamsav_buffersink_params_alloc (void)
 Create an AVBufferSinkParams structure.
AVABufferSinkParamsav_abuffersink_params_alloc (void)
 Create an AVABufferSinkParams structure.
static av_cold int common_init (AVFilterContext *ctx)
static av_cold void common_uninit (AVFilterContext *ctx)
static void end_frame (AVFilterLink *inlink)
int av_buffersink_get_buffer_ref (AVFilterContext *ctx, AVFilterBufferRef **bufref, int flags)
 Get an audio/video buffer data from buffer_sink and put it in bufref.
int av_buffersink_poll_frame (AVFilterContext *ctx)
 Get the number of immediately available frames.
int av_vsink_buffer_get_video_buffer_ref (AVFilterContext *ctx, AVFilterBufferRef **picref, int flags)


Detailed Description

buffer video sink

Definition in file sink_buffer.c.


Define Documentation

#define FIFO_INIT_SIZE   8

Definition at line 67 of file sink_buffer.c.


Function Documentation

AVABufferSinkParams* av_abuffersink_params_alloc ( void   ) 

Create an AVABufferSinkParams structure.

Must be freed with av_free().

Definition at line 42 of file sink_buffer.c.

Referenced by init_filters(), and lavfi_read_header().

int av_buffersink_get_buffer_ref ( AVFilterContext buffer_sink,
AVFilterBufferRef **  bufref,
int  flags 
)

Get an audio/video buffer data from buffer_sink and put it in bufref.

This function works with both audio and video buffer sinks.

Parameters:
buffer_sink pointer to a buffersink or abuffersink context
flags a combination of AV_BUFFERSINK_FLAG_* flags
Returns:
>= 0 in case of success, a negative AVERROR code in case of failure

Definition at line 116 of file sink_buffer.c.

Referenced by av_vsink_buffer_get_video_buffer_ref(), lavfi_read_packet(), main(), poll_filters(), and video_thread().

AVBufferSinkParams* av_buffersink_params_alloc ( void   ) 

Create an AVBufferSinkParams structure.

Must be freed with av_free().

Definition at line 31 of file sink_buffer.c.

Referenced by configure_output_video_filter(), configure_video_filters(), and lavfi_read_header().

int av_buffersink_poll_frame ( AVFilterContext ctx  ) 

Get the number of immediately available frames.

Definition at line 143 of file sink_buffer.c.

int av_vsink_buffer_get_video_buffer_ref ( AVFilterContext buffer_sink,
AVFilterBufferRef **  picref,
int  flags 
)

Deprecated:
Use av_buffersink_get_buffer_ref() instead.

Definition at line 152 of file sink_buffer.c.

static av_cold int common_init ( AVFilterContext ctx  )  [static]

Definition at line 69 of file sink_buffer.c.

static av_cold void common_uninit ( AVFilterContext ctx  )  [static]

Definition at line 81 of file sink_buffer.c.

static void end_frame ( AVFilterLink inlink  )  [static]

Definition at line 96 of file sink_buffer.c.


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