#include <inttypes.h>
#include <stdio.h>
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
#include "libavutil/audioconvert.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
Go to the source code of this file.
Data Structures | |
| struct | ANullContext |
Defines | |
| #define | OFFSET(x) offsetof(ANullContext, x) |
| #define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
| AVFILTER_DEFINE_CLASS (anullsrc) | |
| static int | init (AVFilterContext *ctx, const char *args) |
| static int | config_props (AVFilterLink *outlink) |
| static int | request_frame (AVFilterLink *outlink) |
Variables | |
| static const AVOption | anullsrc_options [] |
| AVFilter | avfilter_asrc_anullsrc |
Definition in file asrc_anullsrc.c.
| #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 49 of file asrc_anullsrc.c.
| #define OFFSET | ( | x | ) | offsetof(ANullContext, x) |
Definition at line 48 of file asrc_anullsrc.c.
| AVFILTER_DEFINE_CLASS | ( | anullsrc | ) |
| static int config_props | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 85 of file asrc_anullsrc.c.
| static int init | ( | AVFilterContext * | ctx, | |
| const char * | args | |||
| ) | [static] |
Definition at line 63 of file asrc_anullsrc.c.
| static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 103 of file asrc_anullsrc.c.
const AVOption anullsrc_options[] [static] |
Initial value:
{
{ "channel_layout", "set channel_layout", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, {.str = "stereo"}, 0, 0, FLAGS },
{ "cl", "set channel_layout", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, {.str = "stereo"}, 0, 0, FLAGS },
{ "sample_rate", "set sample rate", OFFSET(sample_rate_str) , AV_OPT_TYPE_STRING, {.str = "44100"}, 0, 0, FLAGS },
{ "r", "set sample rate", OFFSET(sample_rate_str) , AV_OPT_TYPE_STRING, {.str = "44100"}, 0, 0, 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 },
{ NULL },
}
Definition at line 51 of file asrc_anullsrc.c.
Initial value:
{
.name = "anullsrc",
.description = NULL_IF_CONFIG_SMALL("Null audio source, return empty audio frames."),
.init = init,
.priv_size = sizeof(ANullContext),
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.config_props = config_props,
.request_frame = request_frame, },
{ .name = NULL}},
.priv_class = &anullsrc_class,
}
Definition at line 122 of file asrc_anullsrc.c.
1.5.8