Go to the source code of this file.
|
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
} |
|
|
| 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 int | activate (AVFilterContext *ctx) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ OFFSET
◆ FLAGS
◆ anonymous enum
Enumerator |
---|
VAR_VOLUME | |
VAR_CHANNEL | |
VAR_PEAK | |
VAR_VARS_NB | |
Definition at line 36 of file avf_showvolume.c.
◆ 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 37 of file avf_showvolume.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
showvolume |
| ) |
|
◆ init()
◆ query_formats()
◆ find_peak()
static void find_peak |
( |
float * |
src, |
|
|
int |
nb_samples, |
|
|
float * |
peak, |
|
|
float |
factor |
|
) |
| |
|
static |
◆ find_rms()
static void find_rms |
( |
float * |
src, |
|
|
int |
nb_samples, |
|
|
float * |
rms, |
|
|
float |
factor |
|
) |
| |
|
static |
◆ config_input()
◆ config_output()
◆ drawtext()
◆ clear_picture()
◆ calc_max_draw()
◆ calc_persistent_max()
◆ draw_max_line()
◆ filter_frame()
◆ activate()
◆ uninit()
◆ var_names
const char* const var_names[] = { "VOLUME", "CHANNEL", "PEAK", NULL } |
|
static |
◆ showvolume_options
◆ showvolume_inputs
◆ showvolume_outputs
◆ ff_avf_showvolume
Initial value:= {
.name = "showvolume",
.priv_class = &showvolume_class,
}
Definition at line 501 of file avf_showvolume.c.
static void draw_text(FFDrawContext *draw, AVFrame *frame, FFDrawColor *color, int x0, int y0, const uint8_t *text, int vertical)