libavfilter/buffersink.h File Reference

memory buffer sink API for audio and video More...

#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  AVBufferSinkParams
 Struct to use for initializing a buffersink context. More...
struct  AVABufferSinkParams
 Struct to use for initializing an abuffersink context. More...

Defines

#define AV_BUFFERSINK_FLAG_PEEK   1
 Tell av_buffersink_get_buffer_ref() to read video/samples buffer reference, but not remove it from the buffer.

Functions

AVBufferSinkParamsav_buffersink_params_alloc (void)
 Create an AVBufferSinkParams structure.
AVABufferSinkParamsav_abuffersink_params_alloc (void)
 Create an AVABufferSinkParams structure.
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.
int av_buffersink_poll_frame (AVFilterContext *ctx)
 Get the number of immediately available frames.
attribute_deprecated int av_vsink_buffer_get_video_buffer_ref (AVFilterContext *buffer_sink, AVFilterBufferRef **picref, int flags)


Detailed Description

memory buffer sink API for audio and video

Definition in file buffersink.h.


Define Documentation

#define AV_BUFFERSINK_FLAG_PEEK   1

Tell av_buffersink_get_buffer_ref() to read video/samples buffer reference, but not remove it from the buffer.

This is useful if you need only to read a video/samples buffer, without to fetch it.

Definition at line 64 of file buffersink.h.

Referenced by av_buffersink_get_buffer_ref(), and lavfi_read_packet().


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 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 119 of file sink_buffer.c.

Referenced by av_vsink_buffer_get_video_buffer_ref(), lavfi_read_packet(), transcode_video(), 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 lavfi_read_header().

int av_buffersink_poll_frame ( AVFilterContext ctx  ) 

Get the number of immediately available frames.

Definition at line 144 of file sink_buffer.c.

Referenced by transcode_video().

attribute_deprecated 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 153 of file sink_buffer.c.

Referenced by main().


Generated on Fri Oct 26 02:46:11 2012 for FFmpeg by  doxygen 1.5.8