FFmpeg
|
#include <float.h>
#include <math.h>
#include "libavutil/opt.h"
#include "libavutil/tx.h"
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "window_func.h"
Go to the source code of this file.
Data Structures | |
struct | ChannelSpectralStats |
struct | AudioSpectralStatsContext |
Macros | |
#define | OFFSET(x) offsetof(AudioSpectralStatsContext, x) |
#define | A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (aspectralstats) | |
static int | config_output (AVFilterLink *outlink) |
static void | set_meta (AVDictionary **metadata, int chan, const char *key, const char *fmt, float val) |
static void | set_metadata (AudioSpectralStatsContext *s, AVDictionary **metadata) |
static float | spectral_mean (const float *const spectral, int size, int max_freq) |
static float | sqrf (float a) |
static float | spectral_variance (const float *const spectral, int size, int max_freq, float mean) |
static float | spectral_centroid (const float *const spectral, int size, int max_freq) |
static float | spectral_spread (const float *const spectral, int size, int max_freq, float centroid) |
static float | cbrf (float a) |
static float | spectral_skewness (const float *const spectral, int size, int max_freq, float centroid, float spread) |
static float | spectral_kurtosis (const float *const spectral, int size, int max_freq, float centroid, float spread) |
static float | spectral_entropy (const float *const spectral, int size, int max_freq) |
static float | spectral_flatness (const float *const spectral, int size, int max_freq) |
static float | spectral_crest (const float *const spectral, int size, int max_freq) |
static float | spectral_flux (const float *const spectral, const float *const prev_spectral, int size, int max_freq) |
static float | spectral_slope (const float *const spectral, int size, int max_freq) |
static float | spectral_decrease (const float *const spectral, int size, int max_freq) |
static float | spectral_rolloff (const float *const spectral, int size, int max_freq) |
static int | filter_channel (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | activate (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | aspectralstats_options [] |
static const AVFilterPad | aspectralstats_inputs [] |
static const AVFilterPad | aspectralstats_outputs [] |
const AVFilter | ff_af_aspectralstats |
#define OFFSET | ( | x | ) | offsetof(AudioSpectralStatsContext, x) |
Definition at line 66 of file af_aspectralstats.c.
Definition at line 67 of file af_aspectralstats.c.
AVFILTER_DEFINE_CLASS | ( | aspectralstats | ) |
|
static |
Definition at line 78 of file af_aspectralstats.c.
|
static |
Definition at line 150 of file af_aspectralstats.c.
Referenced by do_vif(), and set_metadata().
|
static |
Definition at line 164 of file af_aspectralstats.c.
Referenced by filter_frame().
Definition at line 185 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 195 of file af_aspectralstats.c.
Referenced by spectral_flux(), spectral_kurtosis(), spectral_slope(), spectral_spread(), and spectral_variance().
|
static |
Definition at line 200 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 210 of file af_aspectralstats.c.
Referenced by filter_channel().
|
static |
Definition at line 225 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 240 of file af_aspectralstats.c.
Referenced by spectral_skewness().
|
static |
Definition at line 245 of file af_aspectralstats.c.
Referenced by filter_channel().
|
static |
Definition at line 261 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 277 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 291 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 309 of file af_aspectralstats.c.
Referenced by filter_channel().
|
static |
Definition at line 324 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 335 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 354 of file af_aspectralstats.c.
Referenced by filter_channel().
Definition at line 368 of file af_aspectralstats.c.
Referenced by filter_channel().
|
static |
Definition at line 389 of file af_aspectralstats.c.
Referenced by filter_frame().
|
static |
Definition at line 447 of file af_aspectralstats.c.
Referenced by activate().
|
static |
Definition at line 487 of file af_aspectralstats.c.
|
static |
Definition at line 516 of file af_aspectralstats.c.
|
static |
Definition at line 69 of file af_aspectralstats.c.
|
static |
Definition at line 544 of file af_aspectralstats.c.
|
static |
Definition at line 551 of file af_aspectralstats.c.
const AVFilter ff_af_aspectralstats |
Definition at line 559 of file af_aspectralstats.c.