FFmpeg
|
#include <float.h>
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | ReplayGainFreqInfo |
struct | ReplayGainContext |
Macros | |
#define | HISTOGRAM_SLOTS 12000 |
#define | BUTTER_ORDER 2 |
#define | YULE_ORDER 10 |
#define | OFFSET(x) offsetof(ReplayGainContext, x) |
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_EXPORT|AV_OPT_FLAG_READONLY |
Functions | |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static void | calc_stereo_peak (const float *samples, int nb_samples, float *peak_p) |
static double | calc_stereo_rms (const float *samples, int nb_samples) |
static void | butter_filter_stereo_samples (ReplayGainContext *s, float *samples, int nb_samples) |
static void | yule_filter_stereo_samples (ReplayGainContext *s, const float *src, float *dst, int nb_samples) |
static float | calc_replaygain (uint32_t *histogram) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | request_frame (AVFilterLink *outlink) |
AVFILTER_DEFINE_CLASS (replaygain) | |
Variables | |
static const ReplayGainFreqInfo | freqinfos [] |
static const AVFilterPad | replaygain_inputs [] |
static const AVFilterPad | replaygain_outputs [] |
static const AVOption | replaygain_options [] |
const AVFilter | ff_af_replaygain |
ReplayGain scanner
Definition in file af_replaygain.c.
#define HISTOGRAM_SLOTS 12000 |
Definition at line 36 of file af_replaygain.c.
#define BUTTER_ORDER 2 |
Definition at line 37 of file af_replaygain.c.
#define YULE_ORDER 10 |
Definition at line 38 of file af_replaygain.c.
#define OFFSET | ( | x | ) | offsetof(ReplayGainContext, x) |
Definition at line 621 of file af_replaygain.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_EXPORT|AV_OPT_FLAG_READONLY |
Definition at line 622 of file af_replaygain.c.
|
static |
Definition at line 329 of file af_replaygain.c.
|
static |
Definition at line 350 of file af_replaygain.c.
Definition at line 378 of file af_replaygain.c.
Referenced by filter_frame().
Definition at line 405 of file af_replaygain.c.
Referenced by filter_frame().
|
static |
Definition at line 421 of file af_replaygain.c.
Referenced by filter_frame().
|
static |
Definition at line 470 of file af_replaygain.c.
Referenced by filter_frame().
|
static |
Definition at line 537 of file af_replaygain.c.
Referenced by request_frame().
|
static |
Definition at line 555 of file af_replaygain.c.
|
static |
Definition at line 586 of file af_replaygain.c.
AVFILTER_DEFINE_CLASS | ( | replaygain | ) |
|
static |
Definition at line 48 of file af_replaygain.c.
Referenced by config_input(), and query_formats().
|
static |
Definition at line 604 of file af_replaygain.c.
|
static |
Definition at line 613 of file af_replaygain.c.
|
static |
Definition at line 624 of file af_replaygain.c.
const AVFilter ff_af_replaygain |
Definition at line 632 of file af_replaygain.c.