Go to the source code of this file.
|
| | AVFILTER_DEFINE_CLASS (showvolume) |
| |
| static av_cold int | init (AVFilterContext *ctx) |
| |
| static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| |
| static void | find_peak (float *src, int nb_samples, float *peak) |
| |
| static void | find_rms (float *src, int nb_samples, float *rms) |
| |
| 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 33 of file avf_showvolume.c.
◆ DisplayScale
◆ AVFILTER_DEFINE_CLASS()
| AVFILTER_DEFINE_CLASS |
( |
showvolume | | ) |
|
◆ init()
◆ query_formats()
◆ find_peak()
| static void find_peak |
( |
float * | src, |
|
|
int | nb_samples, |
|
|
float * | peak ) |
|
static |
◆ find_rms()
| static void find_rms |
( |
float * | src, |
|
|
int | nb_samples, |
|
|
float * | rms ) |
|
static |
◆ config_input()
◆ config_output()
◆ drawtext()
| static void drawtext |
( |
AVFrame * | pic, |
|
|
int | x, |
|
|
int | y, |
|
|
const char * | txt, |
|
|
int | o ) |
|
static |
◆ 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
Initial value:= {
}
mode
Use these values in ebur128_init (or'ed).
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
static const uint32_t color[16+AV_CLASS_CATEGORY_NB]
static void draw_text(FFDrawContext *draw, AVFrame *out, FFDrawColor *color, int x0, int y0, const uint8_t *text)
Definition at line 70 of file avf_showvolume.c.
◆ showvolume_inputs
Initial value:= {
{
.name = "default",
},
}
static int config_input(AVFilterLink *inlink)
Definition at line 489 of file avf_showvolume.c.
◆ showvolume_outputs
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVBitStreamFilterLink *outlink)
Definition at line 497 of file avf_showvolume.c.
◆ ff_avf_showvolume
Initial value:= {
.p.name = "showvolume",
.p.priv_class = &showvolume_class,
}
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
static const AVFilterPad showvolume_outputs[]
static const AVFilterPad showvolume_inputs[]
int(* init)(AVBSFContext *ctx)
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_QUERY_FUNC2(func)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 505 of file avf_showvolume.c.