FFmpeg
|
asrc_aevalsrc.c File Reference
eval audio source More...
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"
Include dependency graph for asrc_aevalsrc.c:
Go to the source code of this file.
Data Structures | |
struct | EvalContext |
Macros | |
#define | OFFSET(x) offsetof(EvalContext, x) |
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (aevalsrc) | |
static int | init (AVFilterContext *ctx) |
static void | uninit (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static int | query_formats (AVFilterContext *ctx) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const char *const | var_names [] |
static const AVOption | aevalsrc_options [] |
static const AVFilterPad | aevalsrc_outputs [] |
AVFilter | avfilter_asrc_aevalsrc |
Detailed Description
eval audio source
Definition in file asrc_aevalsrc.c.
Macro Definition Documentation
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 68 of file asrc_aevalsrc.c.
#define OFFSET | ( | x | ) | offsetof(EvalContext, x) |
Definition at line 67 of file asrc_aevalsrc.c.
Enumeration Type Documentation
enum var_name |
Definition at line 43 of file asrc_aevalsrc.c.
Function Documentation
AVFILTER_DEFINE_CLASS | ( | aevalsrc | ) |
|
static |
Definition at line 169 of file asrc_aevalsrc.c.
|
static |
Definition at line 85 of file asrc_aevalsrc.c.
|
static |
Definition at line 188 of file asrc_aevalsrc.c.
|
static |
Definition at line 202 of file asrc_aevalsrc.c.
|
static |
Definition at line 155 of file asrc_aevalsrc.c.
Variable Documentation
|
static |
Initial value:
= {
{ "exprs", "set the '|'-separated list of channels expressions", OFFSET(exprs), AV_OPT_TYPE_STRING, {.str = NULL}, .flags = FLAGS },
{ "nb_samples", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 1024}, 0, INT_MAX, FLAGS },
{ "n", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 1024}, 0, INT_MAX, FLAGS },
{ "sample_rate", "set the sample rate", OFFSET(sample_rate_str), AV_OPT_TYPE_STRING, {.str = "44100"}, CHAR_MIN, CHAR_MAX, FLAGS },
{ "s", "set the sample rate", OFFSET(sample_rate_str), AV_OPT_TYPE_STRING, {.str = "44100"}, CHAR_MIN, CHAR_MAX, FLAGS },
{ "duration", "set audio duration", OFFSET(duration_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "d", "set audio duration", OFFSET(duration_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "channel_layout", "set channel layout", OFFSET(chlayout_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "c", "set channel layout", OFFSET(chlayout_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{NULL},
}
Definition: opt.h:222
Definition: opt.h:226
Definition at line 70 of file asrc_aevalsrc.c.
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.config_props = config_props,
.request_frame = request_frame,
},
{ NULL }
}
Definition: avutil.h:144
Definition at line 234 of file asrc_aevalsrc.c.
AVFilter avfilter_asrc_aevalsrc |
Initial value:
= {
.name = "aevalsrc",
.description = NULL_IF_CONFIG_SMALL("Generate an audio signal generated by an expression."),
.query_formats = query_formats,
.init = init,
.uninit = uninit,
.priv_size = sizeof(EvalContext),
.priv_class = &aevalsrc_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:216
Definition: asrc_aevalsrc.c:50
Definition at line 244 of file asrc_aevalsrc.c.
Generated on Mon Nov 18 2024 06:52:04 for FFmpeg by 1.8.11