|
FFmpeg
|
#include <float.h>#include <math.h>#include "libavutil/tx.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 "filters.h"#include "video.h"#include "avfilter.h"#include "internal.h"#include "window_func.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))) |
| #define | P(a, b) (atan2((b), (a))) |
Enumerations | |
| enum | DataMode { MAGNITUDE, PHASE, DELAY, NB_DATA, D_MAGNITUDE, D_PHASE, D_UPHASE, NB_DMODES } |
| enum | DisplayMode { SINGLE, SEPARATE, NB_DMODES, LINE, BAR, DOT, NB_MODES, COMBINED, SEPARATE, NB_MODES } |
| enum | ChannelMode { COMBINED, SEPARATE, NB_CMODES } |
| enum | FrequencyScale { FSCALE_LINEAR, FSCALE_LOG2, FSCALE_BARK, FSCALE_MEL, FSCALE_ERBS, NB_FSCALE, FS_LINEAR, FS_LOG, FS_RLOG, NB_FSCALES, F_LINEAR, F_LOG, NB_FSCALES } |
| enum | AmplitudeScale { ALINEAR, ALOG, NB_ASCALES, AS_LINEAR, AS_SQRT, AS_CBRT, AS_LOG, NB_ASCALES } |
Functions | |
| AVFILTER_DEFINE_CLASS (showfreqs) | |
| static int | query_formats (AVFilterContext *ctx) |
| 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, int64_t pts) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| static int | activate (AVFilterContext *ctx) |
| static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
| static const AVOption | showfreqs_options [] |
| static const AVFilterPad | showfreqs_inputs [] |
| static const AVFilterPad | showfreqs_outputs [] |
| const AVFilter | ff_avf_showfreqs |
| #define OFFSET | ( | x | ) | offsetof(ShowFreqsContext, x) |
Definition at line 78 of file avf_showfreqs.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 79 of file avf_showfreqs.c.
| enum DataMode |
| Enumerator | |
|---|---|
| MAGNITUDE | |
| PHASE | |
| DELAY | |
| NB_DATA | |
| D_MAGNITUDE | |
| D_PHASE | |
| D_UPHASE | |
| NB_DMODES | |
Definition at line 38 of file avf_showfreqs.c.
| enum DisplayMode |
| Enumerator | |
|---|---|
| SINGLE | |
| SEPARATE | |
| NB_DMODES | |
| LINE | |
| BAR | |
| DOT | |
| NB_MODES | |
| COMBINED | |
| SEPARATE | |
| NB_MODES | |
Definition at line 39 of file avf_showfreqs.c.
| enum ChannelMode |
| Enumerator | |
|---|---|
| COMBINED | |
| SEPARATE | |
| NB_CMODES | |
Definition at line 40 of file avf_showfreqs.c.
| enum FrequencyScale |
| Enumerator | |
|---|---|
| FSCALE_LINEAR | |
| FSCALE_LOG2 | |
| FSCALE_BARK | |
| FSCALE_MEL | |
| FSCALE_ERBS | |
| NB_FSCALE | |
| FS_LINEAR | |
| FS_LOG | |
| FS_RLOG | |
| NB_FSCALES | |
| F_LINEAR | |
| F_LOG | |
| NB_FSCALES | |
Definition at line 41 of file avf_showfreqs.c.
| enum AmplitudeScale |
| Enumerator | |
|---|---|
| ALINEAR | |
| ALOG | |
| NB_ASCALES | |
| AS_LINEAR | |
| AS_SQRT | |
| AS_CBRT | |
| AS_LOG | |
| NB_ASCALES | |
Definition at line 42 of file avf_showfreqs.c.
| AVFILTER_DEFINE_CLASS | ( | showfreqs | ) |
|
static |
Definition at line 118 of file avf_showfreqs.c.
|
static |
Definition at line 149 of file avf_showfreqs.c.
Definition at line 253 of file avf_showfreqs.c.
Referenced by plot_freq().
|
static |
Definition at line 264 of file avf_showfreqs.c.
Referenced by plot_freq().
|
static |
Definition at line 278 of file avf_showfreqs.c.
Referenced by plot_freq().
|
inlinestatic |
Definition at line 294 of file avf_showfreqs.c.
Referenced by plot_freqs().
|
static |
Definition at line 377 of file avf_showfreqs.c.
Referenced by filter_frame().
|
static |
Definition at line 477 of file avf_showfreqs.c.
Referenced by activate().
|
static |
Definition at line 497 of file avf_showfreqs.c.
|
static |
Definition at line 527 of file avf_showfreqs.c.
|
static |
Definition at line 81 of file avf_showfreqs.c.
|
static |
Definition at line 550 of file avf_showfreqs.c.
|
static |
Definition at line 557 of file avf_showfreqs.c.
| const AVFilter ff_avf_showfreqs |
Definition at line 565 of file avf_showfreqs.c.
1.8.17