History

avfilter/af_afwtdn: add internal timeline support

Paul B Mahol committed 5 years ago

Commit 9fbe54e1 parent 24e349c1 file · +4 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_afwtdn.c+4−2
@@ -998,6 +998,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs) · 997 unmodified lines
998 is_noise *= in->sample_rate;998 is_noise *= in->sample_rate;
999 is_noise /= s->nb_samples;999 is_noise /= s->nb_samples;
1000 for (int level = 0; level <= s->levels; level++) {1000 for (int level = 0; level <= s->levels; level++) {
1001 const double percent = ctx->is_disabled ? 0. : s->percent;
1001 const int length = cp->output_length[level];1002 const int length = cp->output_length[level];
1002 const double scale = sqrt(2.0 * log(length));1003 const double scale = sqrt(2.0 * log(length));
1003 1004
@@ -1008,7 +1009,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs) · 4 unmodified lines
1008 1009
1009 noise_filter(stddev[level], cp->output_coefs[level], filter, absmean[level],1010 noise_filter(stddev[level], cp->output_coefs[level], filter, absmean[level],
1010 s->softness, new_stddev[level], length);1011 s->softness, new_stddev[level], length);
1011 denoise_level(cp->filter_coefs[level], cp->output_coefs[level], filter, s->percent, length);1012 denoise_level(cp->filter_coefs[level], cp->output_coefs[level], filter, percent, length);
1012 }1013 }
1013 1014
1014 ret = inverse(s, cp->filter_coefs, cp->filter_length, dst, out->nb_samples, ch, s->sn);1015 ret = inverse(s, cp->filter_coefs, cp->filter_length, dst, out->nb_samples, ch, s->sn);
@@ -1332,5 +1333,6 @@ const AVFilter ff_af_afwtdn = { · 317 unmodified lines
1332 FILTER_INPUTS(inputs),1333 FILTER_INPUTS(inputs),
1333 FILTER_OUTPUTS(outputs),1334 FILTER_OUTPUTS(outputs),
1334 .process_command = process_command,1335 .process_command = process_command,
1335 .flags = AVFILTER_FLAG_SLICE_THREADS,1336 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
1337 AVFILTER_FLAG_SLICE_THREADS,
1336};1338};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t