|
FFmpeg
4.0
|
#include "libavutil/avstring.h"#include "libavutil/channel_layout.h"#include "libavutil/eval.h"#include "libavutil/intreadwrite.h"#include "libavutil/opt.h"#include "libavutil/parseutils.h"#include "libavutil/xga_font_data.h"#include "avfilter.h"#include "formats.h"#include "audio.h"#include "video.h"#include "internal.h"Go to the source code of this file.
Data Structures | |
| struct | ShowVolumeContext |
Macros | |
| #define | OFFSET(x) offsetof(ShowVolumeContext, x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
| enum | { VAR_VOLUME, VAR_CHANNEL, VAR_PEAK, VAR_VARS_NB } |
| enum | DisplayScale { LINEAR, SQRT, CBRT, LOG, RLOG, NB_SCALES, LINEAR, SQRT, CBRT, LOG, FOURTHRT, FIFTHRT, NB_SCALES, LINEAR, LOG, NB_DISPLAY_SCALE } |
Functions | |
| AVFILTER_DEFINE_CLASS (showvolume) | |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | query_formats (AVFilterContext *ctx) |
| static void | find_peak (float *src, int nb_samples, float *peak, float factor) |
| static void | find_rms (float *src, int nb_samples, float *rms, float factor) |
| static int | config_input (AVFilterLink *inlink) |
| static int | config_output (AVFilterLink *outlink) |
| static void | drawtext (AVFrame *pic, int x, int y, const char *txt, int o) |
| static void | clear_picture (ShowVolumeContext *s, AVFilterLink *outlink) |
| static int | calc_max_draw (ShowVolumeContext *s, AVFilterLink *outlink, float max) |
| static void | calc_persistent_max (ShowVolumeContext *s, float max, int channel) |
| static void | draw_max_line (ShowVolumeContext *s, int max_draw, int channel) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *insamples) |
| static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
| static const char *const | var_names [] = { "VOLUME", "CHANNEL", "PEAK", NULL } |
| static const AVOption | showvolume_options [] |
| static const AVFilterPad | showvolume_inputs [] |
| static const AVFilterPad | showvolume_outputs [] |
| AVFilter | ff_avf_showvolume |
| #define OFFSET | ( | x | ) | offsetof(ShowVolumeContext, x) |
Definition at line 69 of file avf_showvolume.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 70 of file avf_showvolume.c.
| anonymous enum |
| Enumerator | |
|---|---|
| VAR_VOLUME | |
| VAR_CHANNEL | |
| VAR_PEAK | |
| VAR_VARS_NB | |
Definition at line 35 of file avf_showvolume.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 36 of file avf_showvolume.c.
| AVFILTER_DEFINE_CLASS | ( | showvolume | ) |
|
static |
Definition at line 100 of file avf_showvolume.c.
|
static |
Definition at line 115 of file avf_showvolume.c.
Definition at line 144 of file avf_showvolume.c.
Referenced by config_input().
Definition at line 153 of file avf_showvolume.c.
Referenced by config_input().
|
static |
Definition at line 161 of file avf_showvolume.c.
|
static |
Definition at line 199 of file avf_showvolume.c.
Definition at line 232 of file avf_showvolume.c.
Referenced by filter_frame(), and plot_spectrum_column().
|
static |
Definition at line 266 of file avf_showvolume.c.
Referenced by filter_frame().
|
inlinestatic |
Definition at line 278 of file avf_showvolume.c.
Referenced by filter_frame().
|
inlinestatic |
Definition at line 293 of file avf_showvolume.c.
Referenced by filter_frame().
|
inlinestatic |
Definition at line 304 of file avf_showvolume.c.
Referenced by filter_frame().
|
static |
Definition at line 320 of file avf_showvolume.c.
|
static |
Definition at line 452 of file avf_showvolume.c.
|
static |
Definition at line 34 of file avf_showvolume.c.
Referenced by init().
|
static |
Definition at line 72 of file avf_showvolume.c.
|
static |
Definition at line 463 of file avf_showvolume.c.
|
static |
Definition at line 473 of file avf_showvolume.c.
| AVFilter ff_avf_showvolume |
Definition at line 482 of file avf_showvolume.c.
1.8.13