#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 "internal.h"
Go to the source code of this file.
Definition in file asrc_aevalsrc.c.
#define OFFSET | ( | x | ) | offsetof(EvalContext, x) |
Definition at line 65 of file asrc_aevalsrc.c.
enum var_name |
Definition at line 42 of file asrc_aevalsrc.c.
static int config_props | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 165 of file asrc_aevalsrc.c.
static const char* eval_get_name | ( | void * | ctx | ) | [static] |
Definition at line 77 of file asrc_aevalsrc.c.
static int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 88 of file asrc_aevalsrc.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 184 of file asrc_aevalsrc.c.
static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 198 of file asrc_aevalsrc.c.
static void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 152 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}}, }
Definition at line 231 of file asrc_aevalsrc.c.
const AVClass eval_class [static] |
Initial value:
{ "AEvalSrcContext", eval_get_name, eval_options }
Definition at line 82 of file asrc_aevalsrc.c.
const AVOption eval_options[] [static] |
Initial value:
{ { "nb_samples", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.dbl = 1024}, 0, INT_MAX }, { "n", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.dbl = 1024}, 0, INT_MAX }, { "sample_rate", "set the sample rate", OFFSET(sample_rate_str), AV_OPT_TYPE_STRING, {.str = "44100"}, CHAR_MIN, CHAR_MAX }, { "s", "set the sample rate", OFFSET(sample_rate_str), AV_OPT_TYPE_STRING, {.str = "44100"}, CHAR_MIN, CHAR_MAX }, { "duration", "set audio duration", OFFSET(duration_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, { "d", "set audio duration", OFFSET(duration_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, {NULL}, }
Definition at line 67 of file asrc_aevalsrc.c.
const char* const var_names[] [static] |
Initial value:
{ "n", "t", "s", NULL }
Definition at line 35 of file asrc_aevalsrc.c.
Referenced by config_input(), config_input_overlay(), config_output_props(), config_props(), init(), and modplug_read_header().