audio pad filter.
More...
Go to the source code of this file.
audio pad filter.
Based on af_aresample.c
Definition in file af_apad.c.
◆ OFFSET
◆ AVFILTER_DEFINE_CLASS()
| AVFILTER_DEFINE_CLASS |
( |
apad | | ) |
|
◆ init()
◆ filter_frame()
◆ push_frame()
◆ activate()
◆ config_output()
◆ apad_options
Initial value:= {
{
"packet_size",
"set silence packet size",
OFFSET(packet_size),
AV_OPT_TYPE_INT, { .i64 = 4096 }, 0, INT_MAX,
A },
{
"pad_len",
"set number of samples of silence to add",
OFFSET(pad_len),
AV_OPT_TYPE_INT64, { .i64 = -1 }, -1, INT64_MAX,
A },
{
"whole_len",
"set minimum target number of samples in the audio stream",
OFFSET(whole_len),
AV_OPT_TYPE_INT64, { .i64 = -1 }, -1, INT64_MAX,
A },
{
"whole_dur",
"set minimum target duration in the audio stream",
OFFSET(whole_dur),
AV_OPT_TYPE_DURATION, { .i64 = -1 }, -1, INT64_MAX,
A },
}
@ AV_OPT_TYPE_DURATION
Underlying C type is int64_t.
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition at line 52 of file af_apad.c.
◆ apad_outputs
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVBitStreamFilterLink *outlink)
Definition at line 189 of file af_apad.c.
◆ ff_af_apad
Initial value:= {
.p.name = "apad",
.p.priv_class = &apad_class,
}
static const AVFilterPad apad_outputs[]
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
int(* init)(AVBSFContext *ctx)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 197 of file af_apad.c.