FFmpeg
|
asrc_anullsrc.c File Reference
null audio source More...
#include <inttypes.h>
#include <stdio.h>
#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
Include dependency graph for asrc_anullsrc.c:
Go to the source code of this file.
Data Structures | |
struct | ANullContext |
Macros | |
#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) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const AVOption | anullsrc_options [] |
static const AVFilterPad | avfilter_asrc_anullsrc_outputs [] |
AVFilter | avfilter_asrc_anullsrc |
Detailed Description
null audio source
Definition in file asrc_anullsrc.c.
Macro Definition Documentation
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 48 of file asrc_anullsrc.c.
#define OFFSET | ( | x | ) | offsetof(ANullContext, x) |
Definition at line 47 of file asrc_anullsrc.c.
Function Documentation
AVFILTER_DEFINE_CLASS | ( | anullsrc | ) |
|
static |
Definition at line 91 of file asrc_anullsrc.c.
|
static |
Definition at line 62 of file asrc_anullsrc.c.
|
static |
Definition at line 78 of file asrc_anullsrc.c.
|
static |
Definition at line 104 of file asrc_anullsrc.c.
Variable Documentation
|
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: opt.h:222
Definition: opt.h:226
Definition at line 50 of file asrc_anullsrc.c.
AVFilter avfilter_asrc_anullsrc |
Initial value:
= {
.name = "anullsrc",
.description = NULL_IF_CONFIG_SMALL("Null audio source, return empty audio frames."),
.init = init,
.query_formats = query_formats,
.priv_size = sizeof(ANullContext),
.priv_class = &anullsrc_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static const AVFilterPad avfilter_asrc_anullsrc_outputs[]
Definition: asrc_anullsrc.c:127
Definition: asrc_anullsrc.c:37
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 at line 137 of file asrc_anullsrc.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 127 of file asrc_anullsrc.c.
Generated on Fri Dec 20 2024 06:56:10 for FFmpeg by 1.8.11