FFmpeg
|
audio to spectrum (video) transmedia filter, based on ffplay rdft showmode (by Michael Niedermayer) and lavfi/avf_showwaves (by Stefano Sabatini). More...
#include <math.h>
#include "libavcodec/avfft.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | ShowSpectrumContext |
Macros | |
#define | OFFSET(x) offsetof(ShowSpectrumContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | RE(ch) data[ch][2*y + 0] |
#define | IM(ch) data[ch][2*y + 1] |
#define | MAGNITUDE(re, im) sqrt((re)*(re) + (im)*(im)) |
Functions | |
AVFILTER_DEFINE_CLASS (showspectrum) | |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_output (AVFilterLink *outlink) |
static void | push_frame (AVFilterLink *outlink) |
static int | request_frame (AVFilterLink *outlink) |
static int | plot_spectrum_column (AVFilterLink *inlink, AVFilterBufferRef *insamples, int nb_samples) |
static int | filter_frame (AVFilterLink *inlink, AVFilterBufferRef *insamples) |
Variables | |
static const AVOption | showspectrum_options [] |
static const AVFilterPad | showspectrum_inputs [] |
static const AVFilterPad | showspectrum_outputs [] |
AVFilter | avfilter_avf_showspectrum |
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 OFFSET | ( | x | ) | offsetof(ShowSpectrumContext, x) |
Definition at line 50 of file avf_showspectrum.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 51 of file avf_showspectrum.c.
#define RE | ( | ch | ) | data[ch][2*y + 0] |
Referenced by plot_spectrum_column().
#define IM | ( | ch | ) | data[ch][2*y + 1] |
Referenced by plot_spectrum_column().
AVFILTER_DEFINE_CLASS | ( | showspectrum | ) |
|
static |
Definition at line 62 of file avf_showspectrum.c.
|
static |
Definition at line 76 of file avf_showspectrum.c.
|
static |
Definition at line 86 of file avf_showspectrum.c.
|
static |
Definition at line 120 of file avf_showspectrum.c.
|
inlinestatic |
Definition at line 181 of file avf_showspectrum.c.
Referenced by plot_spectrum_column(), and request_frame().
|
static |
Definition at line 194 of file avf_showspectrum.c.
|
static |
Definition at line 210 of file avf_showspectrum.c.
Referenced by filter_frame().
|
static |
Definition at line 282 of file avf_showspectrum.c.
|
static |
Definition at line 53 of file avf_showspectrum.c.
|
static |
Definition at line 299 of file avf_showspectrum.c.
|
static |
Definition at line 309 of file avf_showspectrum.c.
AVFilter avfilter_avf_showspectrum |
Definition at line 319 of file avf_showspectrum.c.