memory buffer source filter More...
#include "libavutil/channel_layout.h"#include "libavutil/common.h"#include "libavutil/fifo.h"#include "libavutil/imgutils.h"#include "libavutil/opt.h"#include "libavutil/samplefmt.h"#include "audio.h"#include "avfilter.h"#include "buffersrc.h"#include "formats.h"#include "internal.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | BufferSourceContext |
Macros | |
| #define | CHECK_VIDEO_PARAM_CHANGE(s, c, width, height, format) |
| #define | CHECK_AUDIO_PARAM_CHANGE(s, c, srate, ch_layout, format) |
| #define | OFFSET(x) offsetof(BufferSourceContext, x) |
| #define | A AV_OPT_FLAG_AUDIO_PARAM |
Functions | |
| int | av_buffersrc_write_frame (AVFilterContext *buffer_filter, const AVFrame *frame) |
| Add a frame to the buffer source. More... | |
| int | av_buffersrc_buffer (AVFilterContext *s, AVFilterBufferRef *buf) |
| Add a buffer to the filtergraph s. More... | |
| static av_cold int | init_video (AVFilterContext *ctx, const char *args) |
| static av_cold int | init_audio (AVFilterContext *ctx, const char *args) |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static int | query_formats (AVFilterContext *ctx) |
| static int | config_props (AVFilterLink *link) |
| static int | request_frame (AVFilterLink *link) |
| static int | poll_frame (AVFilterLink *link) |
Variables | |
| static const AVOption | audio_options [] |
| static const AVClass | abuffer_class |
| static const AVFilterPad | avfilter_vsrc_buffer_outputs [] |
| AVFilter | avfilter_vsrc_buffer |
| static const AVFilterPad | avfilter_asrc_abuffer_outputs [] |
| AVFilter | avfilter_asrc_abuffer |
memory buffer source filter
Definition in file buffersrc.c.
| #define A AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 192 of file buffersrc.c.
| #define CHECK_AUDIO_PARAM_CHANGE | ( | s, | |
| c, | |||
| srate, | |||
| ch_layout, | |||
| format | |||
| ) |
Definition at line 65 of file buffersrc.c.
Referenced by av_buffersrc_buffer(), and av_buffersrc_write_frame().
Definition at line 59 of file buffersrc.c.
Referenced by av_buffersrc_buffer(), and av_buffersrc_write_frame().
| #define OFFSET | ( | x | ) | offsetof(BufferSourceContext, x) |
Definition at line 191 of file buffersrc.c.
| int av_buffersrc_buffer | ( | AVFilterContext * | s, |
| AVFilterBufferRef * | buf | ||
| ) |
Add a buffer to the filtergraph s.
| 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 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.
| s | an instance of the buffersrc filter. |
| frame | frame to be added. |
Definition at line 72 of file buffersrc.c.
Referenced by decode_video(), and video_thread().
|
static |
Definition at line 295 of file buffersrc.c.
|
static |
Definition at line 208 of file buffersrc.c.
|
static |
Definition at line 162 of file buffersrc.c.
|
static |
Definition at line 335 of file buffersrc.c.
|
static |
Definition at line 266 of file buffersrc.c.
|
static |
Definition at line 317 of file buffersrc.c.
|
static |
Definition at line 254 of file buffersrc.c.
|
static |
Definition at line 201 of file buffersrc.c.
Referenced by init_audio().
|
static |
| AVFilter avfilter_asrc_abuffer |
Definition at line 379 of file buffersrc.c.
|
static |
Definition at line 368 of file buffersrc.c.
| AVFilter avfilter_vsrc_buffer |
Definition at line 355 of file buffersrc.c.
|
static |
Definition at line 344 of file buffersrc.c.