FFmpeg
|
af_afade.c File Reference
fade audio filter More...
Include dependency graph for af_afade.c:
Go to the source code of this file.
Data Structures | |
struct | AudioFadeContext |
Macros | |
#define | OFFSET(x) offsetof(AudioFadeContext, x) |
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | FADE_PLANAR(name, type) |
#define | FADE(name, type) |
Enumerations | |
enum | CurveType { TRI, QSIN, ESIN, HSIN, LOG, PAR, QUA, CUB, SQU, CBR } |
Functions | |
AVFILTER_DEFINE_CLASS (afade) | |
static av_cold int | init (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static double | fade_gain (int curve, int64_t index, int range) |
static int | config_output (AVFilterLink *outlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *buf) |
Variables | |
static const AVOption | afade_options [] |
static const AVFilterPad | avfilter_af_afade_inputs [] |
static const AVFilterPad | avfilter_af_afade_outputs [] |
AVFilter | avfilter_af_afade |
Detailed Description
fade audio filter
Definition in file af_afade.c.
Macro Definition Documentation
Value:
int nb_samples, int channels, int dir, \
{ \
for (i = 0; i < nb_samples; i++) { \
for (c = 0; c < channels; c++, k++) \
d[k] = s[k] * gain; \
} \
}
Definition: start.py:1
#define type
Definition at line 177 of file af_afade.c.
Referenced by avfilter_register_all().
Value:
int nb_samples, int channels, int dir, \
{ \
for (i = 0; i < nb_samples; i++) { \
} \
} \
}
Definition: start.py:1
#define type
Definition at line 159 of file af_afade.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 48 of file af_afade.c.
#define OFFSET | ( | x | ) | offsetof(AudioFadeContext, x) |
Definition at line 47 of file af_afade.c.
Enumeration Type Documentation
enum CurveType |
Enumerator | |
---|---|
TRI | |
QSIN | |
ESIN | |
HSIN | |
LOG | |
PAR | |
QUA | |
CUB | |
SQU | |
CBR |
Definition at line 45 of file af_afade.c.
Function Documentation
AVFILTER_DEFINE_CLASS | ( | afade | ) |
|
static |
Definition at line 203 of file af_afade.c.
|
static |
Definition at line 120 of file af_afade.c.
|
static |
Definition at line 228 of file af_afade.c.
|
static |
Definition at line 80 of file af_afade.c.
|
static |
Definition at line 90 of file af_afade.c.
Variable Documentation
|
static |
Initial value:
= {
{ "type", "set the fade direction", OFFSET(type), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, FLAGS, "type" },
{ "start_sample", "set expression of sample to start fading", OFFSET(start_sample), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, FLAGS },
{ "ss", "set expression of sample to start fading", OFFSET(start_sample), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, FLAGS },
{ "nb_samples", "set expression for fade duration in samples", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 44100}, 1, INT32_MAX, FLAGS },
{ "ns", "set expression for fade duration in samples", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 44100}, 1, INT32_MAX, FLAGS },
{ "start_time", "set expression of time to start fading", OFFSET(start_time), AV_OPT_TYPE_DURATION, {.i64 = 0. }, 0, INT32_MAX, FLAGS },
{ "st", "set expression of time to start fading", OFFSET(start_time), AV_OPT_TYPE_DURATION, {.i64 = 0. }, 0, INT32_MAX, FLAGS },
{ "duration", "set expression for fade duration", OFFSET(duration), AV_OPT_TYPE_DURATION, {.i64 = 0. }, 0, INT32_MAX, FLAGS },
{ "d", "set expression for fade duration", OFFSET(duration), AV_OPT_TYPE_DURATION, {.i64 = 0. }, 0, INT32_MAX, FLAGS },
{ "curve", "set expression for fade curve", OFFSET(curve), AV_OPT_TYPE_INT, {.i64 = TRI }, TRI, CBR, FLAGS, "curve" },
{ "c", "set expression for fade curve", OFFSET(curve), AV_OPT_TYPE_INT, {.i64 = TRI }, TRI, CBR, FLAGS, "curve" },
{NULL},
}
Definition: opt.h:223
Definition: opt.h:222
Definition: af_afade.c:45
Definition: opt.h:229
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition: af_afade.c:45
#define type
Definition: opt.h:234
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition: af_afade.c:45
Definition at line 50 of file af_afade.c.
AVFilter avfilter_af_afade |
Initial value:
= {
.name = "afade",
.description = NULL_IF_CONFIG_SMALL("Fade in/out input audio."),
.query_formats = query_formats,
.priv_size = sizeof(AudioFadeContext),
.priv_class = &afade_class,
}
static const AVFilterPad avfilter_af_afade_inputs[]
Definition: af_afade.c:273
#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_af_afade_outputs[]
Definition: af_afade.c:282
Definition: af_afade.c:31
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 291 of file af_afade.c.
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.filter_frame = filter_frame,
},
{ NULL }
}
Definition: avutil.h:144
Definition at line 273 of file af_afade.c.
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.config_props = config_output,
},
{ NULL }
}
Definition: avutil.h:144
Definition at line 282 of file af_afade.c.
Generated on Mon Nov 18 2024 06:52:04 for FFmpeg by 1.8.11