Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (adelay) |
|
static int | parse_delays (char *p, char **saveptr, int64_t *result, AVFilterContext *ctx, int sample_rate) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
|
static int | activate (AVFilterContext *ctx) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ OFFSET
◆ DELAY
Value:
const uint8_t *ssrc, uint8_t *ddst) \
{ \
type *dst = (
type *)ddst; \
\
while (nb_samples) { \
if (
d->delay_index <
d->delay) { \
const
int len =
FFMIN(nb_samples,
d->delay -
d->delay_index); \
\
memset(dst, fill,
len *
sizeof(
type)); \
} else { \
samples[
d->index] = *
src; \
nb_samples--; \
d->index++; \
src++, dst++; \
d->index =
d->index >=
d->delay ? 0 :
d->index; \
} \
} \
}
Definition at line 66 of file af_adelay.c.
◆ CHANGE_DELAY
#define CHANGE_DELAY |
( |
|
name, |
|
|
|
type, |
|
|
|
fill |
|
) |
| |
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
adelay |
| ) |
|
◆ parse_delays()
static int parse_delays |
( |
char * |
p, |
|
|
char ** |
saveptr, |
|
|
int64_t * |
result, |
|
|
AVFilterContext * |
ctx, |
|
|
int |
sample_rate |
|
) |
| |
|
static |
◆ config_input()
◆ process_command()
static int process_command |
( |
AVFilterContext * |
ctx, |
|
|
const char * |
cmd, |
|
|
const char * |
args, |
|
|
char * |
res, |
|
|
int |
res_len, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ filter_frame()
◆ activate()
◆ uninit()
◆ adelay_options
◆ adelay_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 435 of file af_adelay.c.
◆ adelay_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 443 of file af_adelay.c.
◆ ff_af_adelay
Initial value:= {
.name = "adelay",
.priv_class = &adelay_class,
}
Definition at line 450 of file af_adelay.c.
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)