|
FFmpeg
|
#include "config_components.h"#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/cpu.h"#include "libavutil/opt.h"#include "libavutil/parseutils.h"#include "libavutil/xga_font_data.h"#include "audio.h"#include "formats.h"#include "video.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 | ShowSpectrumContext |
| struct | ColorTable |
Macros | |
| #define | DEFAULT_LENGTH 300 |
| #define | OFFSET(x) offsetof(ShowSpectrumContext, x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| #define | RE(y, ch) s->fft_data[ch][y].re |
| #define | IM(y, ch) s->fft_data[ch][y].im |
| #define | MAGNITUDE(y, ch) hypotf(RE(y, ch), IM(y, ch)) |
| #define | PHASE(y, ch) atan2f(IM(y, ch), RE(y, ch)) |
Variables | |
| static const AVOption | showspectrum_options [] |
| static const struct ColorTable | color_table [][8] |
audio to spectrum (video) transmedia filter, based on ffplay rdft showmode (by Michael Niedermayer) and lavfi/avf_showwaves (by Stefano Sabatini).
Definition in file avf_showspectrum.c.
| #define DEFAULT_LENGTH 300 |
Definition at line 58 of file avf_showspectrum.c.
| #define OFFSET | ( | x | ) | offsetof(ShowSpectrumContext, x) |
Definition at line 122 of file avf_showspectrum.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 123 of file avf_showspectrum.c.
| #define RE | ( | y, | |
| ch | |||
| ) | s->fft_data[ch][y].re |
Definition at line 1315 of file avf_showspectrum.c.
| #define IM | ( | y, | |
| ch | |||
| ) | s->fft_data[ch][y].im |
Definition at line 1316 of file avf_showspectrum.c.
Definition at line 1317 of file avf_showspectrum.c.
Definition at line 1318 of file avf_showspectrum.c.
| enum DisplayMode |
| Enumerator | |
|---|---|
| SINGLE | |
| SEPARATE | |
| NB_DMODES | |
| LINE | |
| BAR | |
| DOT | |
| NB_MODES | |
| COMBINED | |
| SEPARATE | |
| NB_MODES | |
Definition at line 50 of file avf_showspectrum.c.
| enum DataMode |
| Enumerator | |
|---|---|
| MAGNITUDE | |
| PHASE | |
| DELAY | |
| NB_DATA | |
| D_MAGNITUDE | |
| D_PHASE | |
| D_UPHASE | |
| NB_DMODES | |
Definition at line 51 of file avf_showspectrum.c.
| enum FrequencyScale |
| Enumerator | |
|---|---|
| FSCALE_LINEAR | |
| FSCALE_LOG | |
| FSCALE_BARK | |
| FSCALE_MEL | |
| FSCALE_ERBS | |
| FSCALE_SQRT | |
| FSCALE_CBRT | |
| FSCALE_QDRT | |
| NB_FSCALE | |
| FS_LINEAR | |
| FS_LOG | |
| FS_RLOG | |
| NB_FSCALES | |
| F_LINEAR | |
| F_LOG | |
| NB_FSCALES | |
Definition at line 52 of file avf_showspectrum.c.
| enum DisplayScale |
| Enumerator | |
|---|---|
| LINEAR | |
| SQRT | |
| CBRT | |
| LOG | |
| RLOG | |
| NB_SCALES | |
| LINEAR | |
| SQRT | |
| CBRT | |
| LOG | |
| FOURTHRT | |
| FIFTHRT | |
| NB_SCALES | |
| LINEAR | |
| LOG | |
| NB_DISPLAY_SCALE | |
Definition at line 53 of file avf_showspectrum.c.
| enum ColorMode |
Definition at line 54 of file avf_showspectrum.c.
| enum SlideMode |
| Enumerator | |
|---|---|
| REPLACE | |
| SCROLL | |
| NB_SLIDES | |
| SLIDE_REPLACE | |
| SLIDE_SCROLL | |
| SLIDE_FRAME | |
| NB_SLIDE | |
| REPLACE | |
| SCROLL | |
| FULLFRAME | |
| RSCROLL | |
| LREPLACE | |
| NB_SLIDES | |
| REPLACE | |
| SCROLL | |
| FULLFRAME | |
| RSCROLL | |
| NB_SLIDES | |
Definition at line 55 of file avf_showspectrum.c.
| enum Orientation |
| Enumerator | |
|---|---|
| VERTICAL | |
| HORIZONTAL | |
| NB_ORIENTATIONS | |
| VERTICAL | |
| HORIZONTAL | |
| NB_ORIENTATIONS | |
Definition at line 56 of file avf_showspectrum.c.
| AVFILTER_DEFINE_CLASS | ( | showspectrum | ) |
|
static |
Definition at line 303 of file avf_showspectrum.c.
|
static |
Definition at line 361 of file avf_showspectrum.c.
|
static |
Definition at line 392 of file avf_showspectrum.c.
Definition at line 499 of file avf_showspectrum.c.
Referenced by draw_legend(), and plot_spectrum_column().
|
static |
Definition at line 554 of file avf_showspectrum.c.
Referenced by plot_channel_lin(), and plot_channel_log().
|
static |
Definition at line 616 of file avf_showspectrum.c.
Referenced by draw_legend(), plot_channel_lin(), and plot_channel_log().
|
static |
Definition at line 664 of file avf_showspectrum.c.
Referenced by draw_legend(), and plot_spectrum_column().
|
static |
Definition at line 679 of file avf_showspectrum.c.
Referenced by get_hz().
|
static |
Definition at line 686 of file avf_showspectrum.c.
Referenced by draw_legend().
Definition at line 700 of file avf_showspectrum.c.
Referenced by bin_pos().
Definition at line 707 of file avf_showspectrum.c.
Referenced by plot_channel_log().
|
static |
Definition at line 712 of file avf_showspectrum.c.
Referenced by get_value().
|
static |
Definition at line 747 of file avf_showspectrum.c.
Referenced by draw_legend().
|
static |
Definition at line 781 of file avf_showspectrum.c.
Referenced by config_output().
|
static |
Definition at line 983 of file avf_showspectrum.c.
Referenced by plot_channel_lin(), and plot_channel_log().
|
static |
Definition at line 1007 of file avf_showspectrum.c.
Referenced by config_output().
|
static |
Definition at line 1030 of file avf_showspectrum.c.
Referenced by config_output().
|
static |
Definition at line 1061 of file avf_showspectrum.c.
|
static |
Definition at line 1320 of file avf_showspectrum.c.
|
static |
Definition at line 1335 of file avf_showspectrum.c.
Definition at line 1349 of file avf_showspectrum.c.
Referenced by calc_channel_uphases().
|
static |
Definition at line 1370 of file avf_showspectrum.c.
|
static |
Definition at line 1389 of file avf_showspectrum.c.
|
static |
Definition at line 1403 of file avf_showspectrum.c.
|
static |
Definition at line 1415 of file avf_showspectrum.c.
Referenced by plot_spectrum_column().
|
static |
Definition at line 1427 of file avf_showspectrum.c.
|
static |
Definition at line 125 of file avf_showspectrum.c.
|
static |
Referenced by pick_color().
1.8.17