buffersrc.h File Reference

Memory buffer source API. More...

#include "avfilter.h"

Go to the source code of this file.

Functions

int av_buffersrc_buffer (AVFilterContext *s, AVFilterBufferRef *buf)
 Add a buffer to the filtergraph s.
int av_buffersrc_write_frame (AVFilterContext *s, const AVFrame *frame)
 Add a frame to the buffer source.

Detailed Description

Memory buffer source API.

Definition in file buffersrc.h.

Function Documentation

int av_buffersrc_buffer ( AVFilterContext s,
AVFilterBufferRef buf 
)

Add a buffer to the filtergraph s.

Parameters
bufbuffer 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 128 of file buffersrc.c.

Referenced by decode_audio(), decode_video(), and video_thread().

int av_buffersrc_write_frame ( AVFilterContext s,
const AVFrame frame 
)

Add a frame to the buffer source.

Parameters
san instance of the buffersrc filter.
frameframe 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 72 of file buffersrc.c.

Referenced by decode_video(), and video_thread().