#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "audio.h"
Go to the source code of this file.
|
| | AVFILTER_DEFINE_CLASS (acrusher) |
| |
| static double | samplereduction (ACrusherContext *s, SRContext *sr, double in) |
| |
| static double | add_dc (double s, double dc, double idc) |
| |
| static double | remove_dc (double s, double dc, double idc) |
| |
| static double | factor (double y, double k, double aa1, double aa) |
| |
| static double | bitreduction (ACrusherContext *s, double in) |
| |
| static double | lfo_get (LFOContext *lfo) |
| |
| static void | lfo_advance (LFOContext *lfo, unsigned count) |
| |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| |
| static av_cold void | uninit (AVFilterContext *ctx) |
| |
| static int | config_input (AVFilterLink *inlink) |
| |
| static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
| |
◆ OFFSET
◆ AVFILTER_DEFINE_CLASS()
| AVFILTER_DEFINE_CLASS |
( |
acrusher | | ) |
|
◆ samplereduction()
◆ add_dc()
◆ remove_dc()
◆ factor()
◆ bitreduction()
◆ lfo_get()
◆ lfo_advance()
| static void lfo_advance |
( |
LFOContext * | lfo, |
|
|
unsigned | count ) |
|
static |
◆ filter_frame()
◆ uninit()
◆ config_input()
◆ process_command()
| static int process_command |
( |
AVFilterContext * | ctx, |
|
|
const char * | cmd, |
|
|
const char * | args, |
|
|
char * | res, |
|
|
int | res_len, |
|
|
int | flags ) |
|
static |
◆ acrusher_options
Initial value:= {
}
mode
Use these values in ebur128_init (or'ed).
static const uint8_t bits[8]
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
static int mix(int c0, int c1)
Definition at line 74 of file af_acrusher.c.
◆ avfilter_af_acrusher_inputs
Initial value:= {
{
.name = "default",
},
}
static int config_input(AVFilterLink *inlink)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition at line 320 of file af_acrusher.c.
◆ ff_af_acrusher
Initial value:= {
.p.name = "acrusher",
.p.priv_class = &acrusher_class,
}
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static const AVFilterPad avfilter_af_acrusher_inputs[]
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
@ AV_SAMPLE_FMT_DBL
double
static av_cold void uninit(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 329 of file af_acrusher.c.