FFmpeg
|
#include <math.h>
#include "libavcodec/avfft.h"
#include "libavutil/audio_fifo.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "audio.h"
#include "video.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | ShowFreqsContext |
Macros | |
#define | OFFSET(x) offsetof(ShowFreqsContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | RE(x, ch) s->fft_data[ch][x].re |
#define | IM(x, ch) s->fft_data[ch][x].im |
#define | M(a, b) (sqrt((a) * (a) + (b) * (b))) |
Enumerations | |
enum | DisplayMode { LINE, BAR, DOT, NB_MODES, COMBINED, SEPARATE, NB_MODES } |
enum | FrequencyScale { FS_LINEAR, FS_LOG, FS_RLOG, NB_FSCALES } |
enum | AmplitudeScale { AS_LINEAR, AS_SQRT, AS_CBRT, AS_LOG, NB_ASCALES } |
enum | WindowFunc { WFUNC_RECT, WFUNC_HANNING, WFUNC_HAMMING, WFUNC_BLACKMAN, WFUNC_BARTLETT, WFUNC_WELCH, WFUNC_FLATTOP, WFUNC_BHARRIS, WFUNC_BNUTTALL, WFUNC_SINE, WFUNC_NUTTALL, WFUNC_BHANN, NB_WFUNC, WFUNC_NONE, WFUNC_HANN, WFUNC_HAMMING, WFUNC_BLACKMAN, NB_WFUNC } |
Functions | |
AVFILTER_DEFINE_CLASS (showfreqs) | |
static int | query_formats (AVFilterContext *ctx) |
static void | generate_window_func (float *lut, int N, int win_func, float *overlap) |
static int | config_output (AVFilterLink *outlink) |
static void | draw_dot (AVFrame *out, int x, int y, uint8_t fg[4]) |
static int | get_sx (ShowFreqsContext *s, int f) |
static float | get_bsize (ShowFreqsContext *s, int f) |
static void | plot_freq (ShowFreqsContext *s, int ch, double a, int f, uint8_t fg[4], int *prev_y, AVFrame *out, AVFilterLink *outlink) |
static int | plot_freqs (AVFilterLink *inlink, AVFrame *in) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | showfreqs_options [] |
static const AVFilterPad | showfreqs_inputs [] |
static const AVFilterPad | showfreqs_outputs [] |
AVFilter | ff_avf_showfreqs |
#define OFFSET | ( | x | ) | offsetof(ShowFreqsContext, x) |
Definition at line 67 of file avf_showfreqs.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 68 of file avf_showfreqs.c.
Referenced by plot_freqs().
Referenced by plot_freqs().
enum DisplayMode |
Enumerator | |
---|---|
LINE | |
BAR | |
DOT | |
NB_MODES | |
COMBINED | |
SEPARATE | |
NB_MODES |
Definition at line 36 of file avf_showfreqs.c.
enum FrequencyScale |
Enumerator | |
---|---|
FS_LINEAR | |
FS_LOG | |
FS_RLOG | |
NB_FSCALES |
Definition at line 37 of file avf_showfreqs.c.
enum AmplitudeScale |
Enumerator | |
---|---|
AS_LINEAR | |
AS_SQRT | |
AS_CBRT | |
AS_LOG | |
NB_ASCALES |
Definition at line 38 of file avf_showfreqs.c.
enum WindowFunc |
Definition at line 39 of file avf_showfreqs.c.
AVFILTER_DEFINE_CLASS | ( | showfreqs | ) |
|
static |
Definition at line 121 of file avf_showfreqs.c.
|
static |
Definition at line 155 of file avf_showfreqs.c.
Referenced by config_output().
|
static |
Definition at line 229 of file avf_showfreqs.c.
Definition at line 302 of file avf_showfreqs.c.
Referenced by plot_freq().
|
static |
Definition at line 313 of file avf_showfreqs.c.
Referenced by plot_freq().
|
static |
Definition at line 327 of file avf_showfreqs.c.
Referenced by plot_freq().
|
inlinestatic |
Definition at line 343 of file avf_showfreqs.c.
Referenced by plot_freqs().
|
static |
Definition at line 413 of file avf_showfreqs.c.
Referenced by filter_frame().
|
static |
Definition at line 484 of file avf_showfreqs.c.
|
static |
Definition at line 518 of file avf_showfreqs.c.
|
static |
Definition at line 70 of file avf_showfreqs.c.
|
static |
Definition at line 534 of file avf_showfreqs.c.
|
static |
Definition at line 543 of file avf_showfreqs.c.
AVFilter ff_avf_showfreqs |
Definition at line 552 of file avf_showfreqs.c.