Libav
|
Files | |
file | buffersrc.h |
Memory buffer source API. | |
Data Structures | |
struct | AVBufferSrcParameters |
This structure contains the parameters describing the frames that will be passed to this filter. More... | |
Functions | |
AVBufferSrcParameters * | av_buffersrc_parameters_alloc (void) |
Allocate a new AVBufferSrcParameters instance. More... | |
int | av_buffersrc_parameters_set (AVFilterContext *ctx, AVBufferSrcParameters *param) |
Initialize the buffersrc or abuffersrc filter with the provided parameters. More... | |
int | av_buffersrc_write_frame (AVFilterContext *ctx, const AVFrame *frame) |
Add a frame to the buffer source. More... | |
int | av_buffersrc_add_frame (AVFilterContext *ctx, AVFrame *frame) |
Add a frame to the buffer source. More... | |
AVBufferSrcParameters* av_buffersrc_parameters_alloc | ( | void | ) |
Allocate a new AVBufferSrcParameters instance.
It should be freed by the caller with av_free().
Definition at line 81 of file buffersrc.c.
Referenced by configure_input_audio_filter(), and configure_input_video_filter().
int av_buffersrc_parameters_set | ( | AVFilterContext * | ctx, |
AVBufferSrcParameters * | param | ||
) |
Initialize the buffersrc or abuffersrc filter with the provided parameters.
This function may be called multiple times, the later calls override the previous ones. Some of the parameters may also be set through AVOptions, then whatever method is used last takes precedence.
ctx | an instance of the buffersrc or abuffersrc filter |
param | the stream parameters. The frames later passed to this filter must conform to those parameters. All the allocated fields in param remain owned by the caller, libavfilter will make internal copies or references when necessary. |
Definition at line 92 of file buffersrc.c.
Referenced by configure_input_audio_filter(), and configure_input_video_filter().
int av_buffersrc_write_frame | ( | AVFilterContext * | ctx, |
const AVFrame * | frame | ||
) |
Add a frame to the buffer source.
ctx | an instance of the buffersrc filter |
frame | frame to be added. If the frame is reference counted, this function will make a new reference to it. Otherwise the frame data will be copied. |
Definition at line 137 of file buffersrc.c.
int av_buffersrc_add_frame | ( | AVFilterContext * | ctx, |
AVFrame * | frame | ||
) |
Add a frame to the buffer source.
ctx | an instance of the buffersrc filter |
frame | frame to be added. If the frame is reference counted, this function will take ownership of the reference(s) and reset the frame. Otherwise the frame data will be copied. If this function returns an error, the input frame is not touched. |
Definition at line 152 of file buffersrc.c.
Referenced by av_buffersrc_write_frame(), configure_filtergraph(), ifilter_send_eof(), ifilter_send_frame(), main(), and video_thread().