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 (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
Enumerator |
---|
LINEAR | |
SQRT | |
CBRT | |
LOG | |
RLOG | |
NB_SCALES | |
LINEAR | |
SQRT | |
CBRT | |
LOG | |
FOURTHRT | |
FIFTHRT | |
NB_SCALES | |
LINEAR | |
LOG | |
NB_DISPLAY_SCALE | |
Definition at line 34 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 |
|
) |
| |
|
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
◆ showvolume_inputs
◆ showvolume_outputs
◆ ff_avf_showvolume
Initial value:= {
.name = "showvolume",
.priv_class = &showvolume_class,
}
Definition at line 505 of file avf_showvolume.c.
static const AVFilterPad showvolume_inputs[]
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
#define FILTER_INPUTS(array)
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But a word about which is also called distortion Distortion can be quantified by almost any quality measurement one chooses the sum of squared differences is used but more complex methods that consider psychovisual effects can be used as well It makes no difference in this discussion First step
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
static int activate(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx)
#define FILTER_OUTPUTS(array)
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
static int config_output(AVFilterLink *outlink)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
#define FILTER_QUERY_FUNC2(func)
static const AVFilterPad showvolume_outputs[]
static void draw_text(FFDrawContext *draw, AVFrame *out, FFDrawColor *color, int x0, int y0, const uint8_t *text)
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
static int config_input(AVFilterLink *inlink)
static av_cold void uninit(AVFilterContext *ctx)
@ 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_CONST
Special option type for declaring named constants.