#include "libavutil/audioconvert.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"
Go to the source code of this file.
Definition in file asrc_aevalsrc.c.
#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.
enum var_name |
Definition at line 43 of file asrc_aevalsrc.c.
AVFILTER_DEFINE_CLASS | ( | aevalsrc | ) |
static int config_props | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 173 of file asrc_aevalsrc.c.
static int init | ( | AVFilterContext * | ctx, | |
const char * | args | |||
) | [static] |
Definition at line 84 of file asrc_aevalsrc.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 192 of file asrc_aevalsrc.c.
static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 206 of file asrc_aevalsrc.c.
static void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 159 of file asrc_aevalsrc.c.
const AVOption aevalsrc_options[] [static] |
Initial value:
{ { "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 at line 70 of file asrc_aevalsrc.c.
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), .inputs = (const AVFilterPad[]) {{ .name = NULL}}, .outputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_AUDIO, .config_props = config_props, .request_frame = request_frame, }, { .name = NULL}}, .priv_class = &aevalsrc_class, }
Definition at line 239 of file asrc_aevalsrc.c.
const char* const var_names[] [static] |