#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 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.
static int config_props | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 181 of file asrc_aevalsrc.c.
static const char* eval_get_name | ( | void * | ctx | ) | [static] |
Definition at line 81 of file asrc_aevalsrc.c.
static int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 92 of file asrc_aevalsrc.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 200 of file asrc_aevalsrc.c.
static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 214 of file asrc_aevalsrc.c.
static void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 167 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 247 of file asrc_aevalsrc.c.
const AVClass eval_class [static] |
Initial value:
{ "AEvalSrcContext", eval_get_name, eval_options }
Definition at line 86 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 }, { "channel_layout", "set channel layout", OFFSET(chlayout_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, { "c", "set channel layout", OFFSET(chlayout_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, {NULL}, }
Definition at line 69 of file asrc_aevalsrc.c.
const char* const var_names[] [static] |