FFmpeg
|
#include <float.h>
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "formats.h"
Go to the source code of this file.
Data Structures | |
struct | ChannelParams |
sample data coding information More... | |
struct | AudioFWTDNContext |
struct | ThreadData |
Used for passing data between threads. More... | |
Macros | |
#define | MAX_LEVELS 13 |
#define | OFFSET(x) offsetof(AudioFWTDNContext, x) |
#define | AF AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | AFR AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
#define | pow2(x) (1U << (x)) |
#define | mod_pow2(x, power_of_two) ((x) & ((power_of_two) - 1)) |
Enumerations | |
enum | WaveletTypes { SYM2, SYM4, RBIOR68, DEB10, SYM10, COIF5, BL3, NB_WAVELET_TYPES } |
Functions | |
AVFILTER_DEFINE_CLASS (afwtdn) | |
static void | conv_down (double *in, int in_length, double *low, double *high, int out_length, const double *lp, const double *hp, int wavelet_length, int skip, double *buffer, int buffer_length) |
static int | left_ext (int wavelet_length, int levels, uint64_t sn) |
static int | nb_coefs (int length, int level, uint64_t sn) |
static int | reallocate_inputs (double **out, int *out_length, int in_length, int levels, int ch, uint64_t sn) |
static int | max_left_zeros_inverse (int levels, int level, int wavelet_length) |
static int | reallocate_outputs (AudioFWTDNContext *s, double **out, int *out_length, int in_length, int levels, int ch, uint64_t sn) |
static int | discard_left_ext (int wavelet_length, int levels, int level, uint64_t sn) |
static int | forward (AudioFWTDNContext *s, const double *in, int in_length, double **out, int *out_length, int ch, uint64_t sn) |
static void | conv_up (double *low, double *high, int in_length, double *out, int out_length, const double *lp, const double *hp, int filter_length, double *buffer, double *buffer2, int buffer_length) |
static int | append_left_ext (int wavelet_length, int levels, int level, uint64_t sn) |
static int | inverse (AudioFWTDNContext *s, double **in, int *in_length, double *out, int out_length, int ch, uint64_t sn) |
static int | next_pow2 (int in) |
static void | denoise_level (double *out, const double *in, const double *filter, double percent, int length) |
static double | sqr (double in) |
static double | measure_mean (const double *in, int length) |
static double | measure_absmean (const double *in, int length) |
static double | measure_stddev (const double *in, int length, double mean) |
static void | noise_filter (const double stddev, const double *in, double *out, double absmean, double softness, double new_stddev, int length) |
static int | filter_channel (AVFilterContext *ctx, void *arg, int ch, int nb_jobs) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | max_left_ext (int wavelet_length, int levels) |
static int | min_left_ext (int wavelet_length, int levels) |
static int | config_output (AVFilterLink *outlink) |
static int | activate (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
Variables | |
static const double | bl3_lp [42] |
static const double | bl3_hp [42] |
static const double | bl3_ilp [42] |
static const double | bl3_ihp [42] |
static const double | sym10_lp [20] |
static const double | sym10_hp [20] |
static const double | sym10_ilp [20] |
static const double | sym10_ihp [20] |
static const double | rbior68_lp [18] |
static const double | rbior68_hp [18] |
static const double | rbior68_ilp [18] |
static const double | rbior68_ihp [18] |
static const double | coif5_lp [30] |
static const double | coif5_hp [30] |
static const double | coif5_ilp [30] |
static const double | coif5_ihp [30] |
static const double | deb10_lp [20] |
static const double | deb10_hp [20] |
static const double | deb10_ilp [20] |
static const double | deb10_ihp [20] |
static const double | sym4_lp [8] |
static const double | sym4_hp [8] |
static const double | sym4_ilp [8] |
static const double | sym4_ihp [8] |
static const double | sym2_lp [4] |
static const double | sym2_hp [4] |
static const double | sym2_ilp [4] |
static const double | sym2_ihp [4] |
static const AVOption | afwtdn_options [] |
static const AVFilterPad | inputs [] |
static const AVFilterPad | outputs [] |
const AVFilter | ff_af_afwtdn |
#define MAX_LEVELS 13 |
Definition at line 378 of file af_afwtdn.c.
#define OFFSET | ( | x | ) | offsetof(AudioFWTDNContext, x) |
Definition at line 439 of file af_afwtdn.c.
Definition at line 440 of file af_afwtdn.c.
Definition at line 441 of file af_afwtdn.c.
#define pow2 | ( | x | ) | (1U << (x)) |
Definition at line 464 of file af_afwtdn.c.
#define mod_pow2 | ( | x, | |
power_of_two | |||
) | ((x) & ((power_of_two) - 1)) |
Definition at line 465 of file af_afwtdn.c.
enum WaveletTypes |
Enumerator | |
---|---|
SYM2 | |
SYM4 | |
RBIOR68 | |
DEB10 | |
SYM10 | |
COIF5 | |
BL3 | |
NB_WAVELET_TYPES |
Definition at line 31 of file af_afwtdn.c.
AVFILTER_DEFINE_CLASS | ( | afwtdn | ) |
|
static |
Definition at line 467 of file af_afwtdn.c.
Referenced by forward().
Definition at line 508 of file af_afwtdn.c.
Referenced by forward(), inverse(), invert_step(), and symmetric_extension().
Definition at line 515 of file af_afwtdn.c.
Referenced by ac3_apply_rematrixing(), ac3_exponent_min_c(), ac3_extract_exponents_c(), compute_rematrixing_strategy(), count_exponent_bits(), encode_block(), encode_exponents(), reallocate_inputs(), reallocate_outputs(), and wma_decode_block().
|
static |
Definition at line 522 of file af_afwtdn.c.
Referenced by forward().
Definition at line 562 of file af_afwtdn.c.
Referenced by reallocate_outputs().
|
static |
Definition at line 567 of file af_afwtdn.c.
Referenced by forward().
Definition at line 613 of file af_afwtdn.c.
Referenced by forward().
|
static |
Definition at line 620 of file af_afwtdn.c.
Referenced by decode_bmv_frame(), and filter_channel().
|
static |
Definition at line 717 of file af_afwtdn.c.
Referenced by inverse().
Definition at line 753 of file af_afwtdn.c.
Referenced by inverse().
|
static |
Definition at line 762 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 856 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 861 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 872 of file af_afwtdn.c.
Referenced by filter_channel(), and measure_stddev().
Definition at line 877 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 887 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 897 of file af_afwtdn.c.
Referenced by filter_channel().
|
static |
Definition at line 908 of file af_afwtdn.c.
Referenced by filter_channel().
|
static |
Definition at line 926 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 1005 of file af_afwtdn.c.
Referenced by activate().
Definition at line 1085 of file af_afwtdn.c.
Referenced by config_output().
Definition at line 1090 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 1095 of file af_afwtdn.c.
|
static |
Definition at line 1202 of file af_afwtdn.c.
|
static |
Definition at line 1235 of file af_afwtdn.c.
|
static |
Definition at line 1277 of file af_afwtdn.c.
|
static |
Definition at line 46 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 58 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 70 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 82 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 94 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 107 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 120 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 133 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 146 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 156 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 168 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 180 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 190 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 208 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 226 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 244 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 262 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 275 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 288 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 301 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 314 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 325 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 336 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 347 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 358 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 363 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 368 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 373 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 443 of file af_afwtdn.c.
|
static |
Definition at line 1293 of file af_afwtdn.c.
|
static |
Definition at line 1300 of file af_afwtdn.c.
const AVFilter ff_af_afwtdn |
Definition at line 1308 of file af_afwtdn.c.