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 av_cold void | uninit (AVFilterContext *ctx) |
|
Enumerator |
---|
VAR_VOLUME |
|
VAR_CHANNEL |
|
VAR_PEAK |
|
VAR_VARS_NB |
|
Definition at line 35 of file avf_showvolume.c.
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 void find_peak |
( |
float * |
src, |
|
|
int |
nb_samples, |
|
|
float * |
peak, |
|
|
float |
factor |
|
) |
| |
|
static |
static void find_rms |
( |
float * |
src, |
|
|
int |
nb_samples, |
|
|
float * |
rms, |
|
|
float |
factor |
|
) |
| |
|
static |
const char* const var_names[] = { "VOLUME", "CHANNEL", "PEAK", NULL } |
|
static |
Initial value:= {
}
static void draw_text(FFDrawContext *draw, AVFrame *frame, FFDrawColor *color, int x0, int y0, const uint8_t *text, int vertical)
offset must point to AVRational
mode
Use these values in ebur128_init (or'ed).
Definition at line 72 of file avf_showvolume.c.
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
static int config_input(AVFilterLink *inlink)
Definition at line 463 of file avf_showvolume.c.
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVFilterLink *outlink)
Definition at line 473 of file avf_showvolume.c.
Initial value:= {
.name = "showvolume",
.priv_class = &showvolume_class,
}
static const AVFilterPad showvolume_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad showvolume_inputs[]
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static int query_formats(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx)
static av_cold void uninit(AVFilterContext *ctx)
Definition at line 482 of file avf_showvolume.c.