FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/file_open.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h"
#include "libavutil/tx.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "formats.h"
Go to the source code of this file.
Data Structures | |
struct | DenseLayer |
struct | GRULayer |
struct | RNNModel |
struct | RNNState |
struct | DenoiseState |
struct | AudioRNNContext |
struct | ThreadData |
Used for passing data between threads. More... | |
Macros | |
#define | FRAME_SIZE_SHIFT 2 |
#define | FRAME_SIZE (120<<FRAME_SIZE_SHIFT) |
#define | WINDOW_SIZE (2*FRAME_SIZE) |
#define | FREQ_SIZE (FRAME_SIZE + 1) |
#define | PITCH_MIN_PERIOD 60 |
#define | PITCH_MAX_PERIOD 768 |
#define | PITCH_FRAME_SIZE 960 |
#define | PITCH_BUF_SIZE (PITCH_MAX_PERIOD+PITCH_FRAME_SIZE) |
#define | SQUARE(x) ((x)*(x)) |
#define | NB_BANDS 22 |
#define | CEPS_MEM 8 |
#define | NB_DELTA_CEPS 6 |
#define | NB_FEATURES (NB_BANDS+3*NB_DELTA_CEPS+2) |
#define | WEIGHTS_SCALE (1.f/256) |
#define | MAX_NEURONS 128 |
#define | ACTIVATION_TANH 0 |
#define | ACTIVATION_SIGMOID 1 |
#define | ACTIVATION_RELU 2 |
#define | Q15ONE 1.0f |
#define | F_ACTIVATION_TANH 0 |
#define | F_ACTIVATION_SIGMOID 1 |
#define | F_ACTIVATION_RELU 2 |
#define | FREE_MAYBE(ptr) do { if (ptr) free(ptr); } while (0) |
#define | FREE_DENSE(name) |
#define | FREE_GRU(name) |
#define | ALLOC_LAYER(type, name) |
#define | INPUT_VAL(name) |
#define | INPUT_ACTIVATION(name) |
#define | INPUT_ARRAY(name, len) |
#define | INPUT_ARRAY3(name, len0, len1, len2) |
#define | NEW_LINE() |
#define | INPUT_DENSE(name) |
#define | INPUT_GRU(name) |
#define | RNN_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
#define | RNN_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst)))) |
#define | RNN_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
#define | INPUT_SIZE 42 |
#define | OFFSET(x) offsetof(AudioRNNContext, x) |
#define | AF AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
Variables | |
static const uint8_t | eband5ms [] |
static const uint8_t | second_check [16] = {0, 0, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2} |
static const float | tansig_table [201] |
static const AVFilterPad | inputs [] |
static const AVOption | arnndn_options [] |
const AVFilter | ff_af_arnndn |
#define FRAME_SIZE_SHIFT 2 |
Definition at line 45 of file af_arnndn.c.
#define FRAME_SIZE (120<<FRAME_SIZE_SHIFT) |
Definition at line 46 of file af_arnndn.c.
#define WINDOW_SIZE (2*FRAME_SIZE) |
Definition at line 47 of file af_arnndn.c.
#define FREQ_SIZE (FRAME_SIZE + 1) |
Definition at line 48 of file af_arnndn.c.
#define PITCH_MIN_PERIOD 60 |
Definition at line 50 of file af_arnndn.c.
#define PITCH_MAX_PERIOD 768 |
Definition at line 51 of file af_arnndn.c.
#define PITCH_FRAME_SIZE 960 |
Definition at line 52 of file af_arnndn.c.
#define PITCH_BUF_SIZE (PITCH_MAX_PERIOD+PITCH_FRAME_SIZE) |
Definition at line 53 of file af_arnndn.c.
#define SQUARE | ( | x | ) | ((x)*(x)) |
Definition at line 55 of file af_arnndn.c.
#define NB_BANDS 22 |
Definition at line 57 of file af_arnndn.c.
#define CEPS_MEM 8 |
Definition at line 59 of file af_arnndn.c.
#define NB_DELTA_CEPS 6 |
Definition at line 60 of file af_arnndn.c.
#define NB_FEATURES (NB_BANDS+3*NB_DELTA_CEPS+2) |
Definition at line 62 of file af_arnndn.c.
#define WEIGHTS_SCALE (1.f/256) |
Definition at line 64 of file af_arnndn.c.
#define MAX_NEURONS 128 |
Definition at line 66 of file af_arnndn.c.
#define ACTIVATION_TANH 0 |
Definition at line 68 of file af_arnndn.c.
#define ACTIVATION_SIGMOID 1 |
Definition at line 69 of file af_arnndn.c.
#define ACTIVATION_RELU 2 |
Definition at line 70 of file af_arnndn.c.
#define Q15ONE 1.0f |
Definition at line 72 of file af_arnndn.c.
#define F_ACTIVATION_TANH 0 |
Definition at line 152 of file af_arnndn.c.
#define F_ACTIVATION_SIGMOID 1 |
Definition at line 153 of file af_arnndn.c.
#define F_ACTIVATION_RELU 2 |
Definition at line 154 of file af_arnndn.c.
#define FREE_DENSE | ( | name | ) |
#define FREE_GRU | ( | name | ) |
#define INPUT_VAL | ( | name | ) |
#define INPUT_ACTIVATION | ( | name | ) |
#define INPUT_ARRAY3 | ( | name, | |
len0, | |||
len1, | |||
len2 | |||
) |
#define NEW_LINE | ( | ) |
#define INPUT_DENSE | ( | name | ) |
#define INPUT_GRU | ( | name | ) |
Definition at line 406 of file af_arnndn.c.
#define RNN_CLEAR | ( | dst, | |
n | |||
) | (memset((dst), 0, (n)*sizeof(*(dst)))) |
Definition at line 407 of file af_arnndn.c.
Definition at line 408 of file af_arnndn.c.
#define INPUT_SIZE 42 |
Definition at line 1331 of file af_arnndn.c.
#define OFFSET | ( | x | ) | offsetof(AudioRNNContext, x) |
Definition at line 1588 of file af_arnndn.c.
Definition at line 1589 of file af_arnndn.c.
|
static |
Definition at line 156 of file af_arnndn.c.
Referenced by free_model(), and rnnoise_model_from_file().
Definition at line 186 of file af_arnndn.c.
Referenced by open_model().
|
static |
Definition at line 329 of file af_arnndn.c.
|
static |
Definition at line 348 of file af_arnndn.c.
Referenced by process_command().
|
static |
Definition at line 392 of file af_arnndn.c.
Referenced by rnnoise_channel().
|
static |
Definition at line 410 of file af_arnndn.c.
Referenced by compute_frame_features(), and frame_analysis().
|
static |
Definition at line 425 of file af_arnndn.c.
Referenced by frame_synthesis().
|
static |
Definition at line 448 of file af_arnndn.c.
Referenced by compute_frame_features(), frame_analysis(), and pitch_filter().
|
static |
Definition at line 473 of file af_arnndn.c.
Referenced by compute_frame_features().
|
static |
Definition at line 498 of file af_arnndn.c.
Referenced by compute_frame_features().
|
static |
Definition at line 510 of file af_arnndn.c.
Referenced by rnnoise_channel().
Definition at line 527 of file af_arnndn.c.
Referenced by celt_pitch_xcorr().
Definition at line 596 of file af_arnndn.c.
Referenced by celt_pitch_xcorr(), pitch_search(), and remove_doubling().
|
static |
Definition at line 607 of file af_arnndn.c.
Referenced by celt_autocorr(), and pitch_search().
|
static |
Definition at line 628 of file af_arnndn.c.
Referenced by pitch_downsample().
Definition at line 666 of file af_arnndn.c.
Referenced by pitch_downsample().
Definition at line 699 of file af_arnndn.c.
Referenced by pitch_downsample().
Definition at line 742 of file af_arnndn.c.
Referenced by compute_frame_features().
|
inlinestatic |
Definition at line 784 of file af_arnndn.c.
Referenced by remove_doubling().
Definition at line 798 of file af_arnndn.c.
Referenced by remove_doubling().
|
static |
Definition at line 804 of file af_arnndn.c.
Referenced by compute_frame_features().
|
static |
Definition at line 907 of file af_arnndn.c.
Referenced by pitch_search().
|
static |
Definition at line 954 of file af_arnndn.c.
Referenced by compute_frame_features().
|
static |
Definition at line 1011 of file af_arnndn.c.
Referenced by compute_frame_features(), and dct_error().
|
static |
Definition at line 1021 of file af_arnndn.c.
Referenced by rnnoise_channel().
Definition at line 1129 of file af_arnndn.c.
Referenced by pitch_filter(), and rnnoise_channel().
|
static |
Definition at line 1144 of file af_arnndn.c.
Referenced by rnnoise_channel().
Definition at line 1219 of file af_arnndn.c.
Referenced by compute_dense(), compute_gru(), and sigmoid_approx().
Definition at line 1247 of file af_arnndn.c.
Referenced by compute_dense(), and compute_gru().
|
static |
Definition at line 1252 of file af_arnndn.c.
Referenced by compute_rnn().
|
static |
Definition at line 1280 of file af_arnndn.c.
Referenced by compute_rnn().
|
static |
Definition at line 1333 of file af_arnndn.c.
Referenced by rnnoise_channel().
|
static |
Definition at line 1361 of file af_arnndn.c.
Referenced by rnnoise_channels().
|
static |
Definition at line 1409 of file af_arnndn.c.
Referenced by filter_frame().
|
static |
Definition at line 1428 of file af_arnndn.c.
Referenced by activate().
|
static |
Definition at line 1450 of file af_arnndn.c.
|
static |
Definition at line 1472 of file af_arnndn.c.
Referenced by init(), and process_command().
|
static |
Definition at line 1494 of file af_arnndn.c.
|
static |
Definition at line 1523 of file af_arnndn.c.
Referenced by process_command(), and uninit().
|
static |
Definition at line 1537 of file af_arnndn.c.
|
static |
Definition at line 1567 of file af_arnndn.c.
AVFILTER_DEFINE_CLASS | ( | arnndn | ) |
|
static |
Definition at line 443 of file af_arnndn.c.
Referenced by compute_band_corr(), compute_band_energy(), and interp_band_gain().
|
static |
Definition at line 803 of file af_arnndn.c.
Referenced by remove_doubling().
|
static |
Definition at line 1175 of file af_arnndn.c.
Referenced by tansig_approx().
|
static |
Definition at line 1580 of file af_arnndn.c.
|
static |
Definition at line 1591 of file af_arnndn.c.
const AVFilter ff_af_arnndn |
Definition at line 1600 of file af_arnndn.c.