libavfilter/buffersrc.h File Reference

Memory buffer source API. More...

#include "avfilter.h"

Go to the source code of this file.

Enumerations

enum  { AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT = 1, AV_BUFFERSRC_FLAG_NO_COPY = 2 }

Functions

int av_buffersrc_add_ref (AVFilterContext *buffer_src, AVFilterBufferRef *picref, int flags)
 Add buffer data in picref to buffer_src.
unsigned av_buffersrc_get_nb_failed_requests (AVFilterContext *buffer_src)
 Get the number of failed requests.
int av_buffersrc_buffer (AVFilterContext *s, AVFilterBufferRef *buf)
 Add a buffer to the filtergraph s.
int av_buffersrc_write_frame (AVFilterContext *s, AVFrame *frame)
 Add a frame to the buffer source.


Detailed Description

Memory buffer source API.

Definition in file buffersrc.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT  Do not check for format changes.
AV_BUFFERSRC_FLAG_NO_COPY  Do not copy buffer data.

Definition at line 30 of file buffersrc.h.


Function Documentation

int av_buffersrc_add_ref ( AVFilterContext buffer_src,
AVFilterBufferRef picref,
int  flags 
)

Add buffer data in picref to buffer_src.

Parameters:
buffer_src pointer to a buffer source context
picref a buffer reference, or NULL to mark EOF
flags a combination of AV_BUFFERSRC_FLAG_*
Returns:
>= 0 in case of success, a negative AVERROR code in case of failure

Definition at line 164 of file buffersrc.c.

Referenced by av_asrc_buffer_add_audio_buffer_ref(), av_buffersrc_add_frame(), av_buffersrc_buffer(), av_vsrc_buffer_add_video_buffer_ref(), decode_audio(), and decode_video().

int av_buffersrc_buffer ( AVFilterContext s,
AVFilterBufferRef buf 
)

Add a buffer to the filtergraph s.

Parameters:
buf buffer containing frame data to be passed down the filtergraph. This function will take ownership of buf, the user must not free it. A NULL buf signals EOF -- i.e. no more frames will be sent to this filter.

Definition at line 208 of file buffersrc.c.

unsigned av_buffersrc_get_nb_failed_requests ( AVFilterContext buffer_src  ) 

Get the number of failed requests.

A failed request is when the request_frame method is called while no frame is present in the buffer. The number is reset when a frame is added.

Definition at line 213 of file buffersrc.c.

int av_buffersrc_write_frame ( AVFilterContext s,
AVFrame frame 
)

Add a frame to the buffer source.

Parameters:
s an instance of the buffersrc filter.
frame frame to be added.
Warning:
frame data will be memcpy()ed, which may be a big performance hit. Use av_buffersrc_buffer() to avoid copying the data.

Definition at line 159 of file buffersrc.c.

Referenced by av_vsrc_buffer_add_frame_alt().


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