FFmpeg
|
#include <float.h>
#include "libavutil/avassert.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.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 | outputs [] |
const AVFilter | ff_af_afwtdn |
#define MAX_LEVELS 13 |
Definition at line 376 of file af_afwtdn.c.
#define OFFSET | ( | x | ) | offsetof(AudioFWTDNContext, x) |
Definition at line 437 of file af_afwtdn.c.
Definition at line 438 of file af_afwtdn.c.
Definition at line 439 of file af_afwtdn.c.
#define pow2 | ( | x | ) | (1U << (x)) |
Definition at line 462 of file af_afwtdn.c.
#define mod_pow2 | ( | x, | |
power_of_two | |||
) | ((x) & ((power_of_two) - 1)) |
Definition at line 463 of file af_afwtdn.c.
enum WaveletTypes |
Enumerator | |
---|---|
SYM2 | |
SYM4 | |
RBIOR68 | |
DEB10 | |
SYM10 | |
COIF5 | |
BL3 | |
NB_WAVELET_TYPES |
Definition at line 29 of file af_afwtdn.c.
AVFILTER_DEFINE_CLASS | ( | afwtdn | ) |
|
static |
Definition at line 465 of file af_afwtdn.c.
Referenced by forward().
Definition at line 506 of file af_afwtdn.c.
Referenced by forward(), inverse(), invert_step(), and symmetric_extension().
Definition at line 513 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 520 of file af_afwtdn.c.
Referenced by forward().
Definition at line 560 of file af_afwtdn.c.
Referenced by reallocate_outputs().
|
static |
Definition at line 565 of file af_afwtdn.c.
Referenced by forward().
Definition at line 611 of file af_afwtdn.c.
Referenced by forward().
|
static |
Definition at line 618 of file af_afwtdn.c.
Referenced by decode_bmv_frame(), and filter_channel().
|
static |
Definition at line 715 of file af_afwtdn.c.
Referenced by inverse().
Definition at line 751 of file af_afwtdn.c.
Referenced by inverse().
|
static |
Definition at line 760 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 854 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 859 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 870 of file af_afwtdn.c.
Referenced by bitreduction(), encode_block(), filter_channel(), get_visual_weight(), and measure_stddev().
Definition at line 875 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 885 of file af_afwtdn.c.
Referenced by filter_channel().
Definition at line 895 of file af_afwtdn.c.
Referenced by filter_channel().
|
static |
Definition at line 906 of file af_afwtdn.c.
Referenced by filter_channel().
|
static |
Definition at line 924 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 1003 of file af_afwtdn.c.
Referenced by activate().
Definition at line 1083 of file af_afwtdn.c.
Referenced by config_output().
Definition at line 1088 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 1093 of file af_afwtdn.c.
|
static |
Definition at line 1200 of file af_afwtdn.c.
|
static |
Definition at line 1233 of file af_afwtdn.c.
|
static |
Definition at line 1275 of file af_afwtdn.c.
|
static |
Definition at line 44 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 56 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 68 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 80 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 92 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 105 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 118 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 131 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 144 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 154 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 166 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 178 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 188 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 206 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 224 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 242 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 260 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 273 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 286 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 299 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 312 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 323 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 334 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 345 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 356 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 361 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 366 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 371 of file af_afwtdn.c.
Referenced by config_output().
|
static |
Definition at line 441 of file af_afwtdn.c.
|
static |
Definition at line 1291 of file af_afwtdn.c.
Referenced by avfilter_graph_parse(), avfilter_graph_parse2(), avfilter_graph_parse_ptr(), avfilter_graph_segment_apply(), avfilter_graph_segment_link(), configure_filtergraph(), fg_create(), graph_parse(), infer_completion_callback(), init(), init_filter(), init_filters(), and link_outputs().
const AVFilter ff_af_afwtdn |
Definition at line 1299 of file af_afwtdn.c.