FFmpeg
|
#include "config_components.h"
#include "libavutil/audio_fifo.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "hermite.h"
Go to the source code of this file.
Data Structures | |
struct | SidechainCompressContext |
Macros | |
#define | OFFSET(x) offsetof(SidechainCompressContext, x) |
#define | A AV_OPT_FLAG_AUDIO_PARAM |
#define | F AV_OPT_FLAG_FILTERING_PARAM |
#define | R AV_OPT_FLAG_RUNTIME_PARAM |
#define | FAKE_INFINITY (65536.0 * 65536.0) |
#define | IS_FAKE_INFINITY(value) (fabs(value-FAKE_INFINITY) < 1.0) |
Functions | |
AVFILTER_DEFINE_CLASS_EXT (sidechaincompress_acompressor, "acompressor/sidechaincompress", options) | |
static double | output_gain (double lin_slope, double ratio, double thres, double knee, double knee_start, double knee_stop, double compressed_knee_start, double compressed_knee_stop, int detection, int mode) |
static int | compressor_config_output (AVFilterLink *outlink) |
static void | compressor (SidechainCompressContext *s, const double *src, double *dst, const double *scsrc, int nb_samples, double level_in, double level_sc, AVFilterLink *inlink, AVFilterLink *sclink) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
Variables | |
static const AVOption | options [] |
Audio (Sidechain) Compressor filter
Definition in file af_sidechaincompress.c.
#define OFFSET | ( | x | ) | offsetof(SidechainCompressContext, x) |
Definition at line 70 of file af_sidechaincompress.c.
#define A AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 71 of file af_sidechaincompress.c.
#define F AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 72 of file af_sidechaincompress.c.
#define R AV_OPT_FLAG_RUNTIME_PARAM |
Definition at line 73 of file af_sidechaincompress.c.
#define FAKE_INFINITY (65536.0 * 65536.0) |
Definition at line 102 of file af_sidechaincompress.c.
#define IS_FAKE_INFINITY | ( | value | ) | (fabs(value-FAKE_INFINITY) < 1.0) |
Definition at line 105 of file af_sidechaincompress.c.
AVFILTER_DEFINE_CLASS_EXT | ( | sidechaincompress_acompressor | , |
"acompressor/sidechaincompress" | , | ||
options | |||
) |
|
static |
Definition at line 107 of file af_sidechaincompress.c.
Referenced by compressor().
|
static |
Definition at line 143 of file af_sidechaincompress.c.
Referenced by process_command().
|
static |
Definition at line 164 of file af_sidechaincompress.c.
|
static |
Definition at line 219 of file af_sidechaincompress.c.
|
static |
Definition at line 75 of file af_sidechaincompress.c.