avfilter/avf_showwaves: Add draw mode also to showwavespic filter

See commit a8c2d375ca
This commit is contained in:
Martin Vobruba 2019-04-26 08:17:11 +02:00 committed by Paul B Mahol
parent 31990046ac
commit 093a504414
2 changed files with 17 additions and 0 deletions

View File

@ -22704,6 +22704,20 @@ Cubic root.
@end table
Default is linear.
@item draw
Set the draw mode.
Available values are:
@table @samp
@item scale
Scale pixel values for each drawn sample.
@item full
Draw every sample directly.
@end table
Default value is @code{scale}.
@end table
@subsection Examples

View File

@ -765,6 +765,9 @@ static const AVOption showwavespic_options[] = {
{ "log", "logarithmic", 0, AV_OPT_TYPE_CONST, {.i64=SCALE_LOG}, .flags=FLAGS, .unit="scale"},
{ "sqrt", "square root", 0, AV_OPT_TYPE_CONST, {.i64=SCALE_SQRT}, .flags=FLAGS, .unit="scale"},
{ "cbrt", "cubic root", 0, AV_OPT_TYPE_CONST, {.i64=SCALE_CBRT}, .flags=FLAGS, .unit="scale"},
{ "draw", "set draw mode", OFFSET(draw_mode), AV_OPT_TYPE_INT, {.i64 = DRAW_SCALE}, 0, DRAW_NB-1, FLAGS, .unit="draw" },
{ "scale", "scale pixel values for each drawn sample", 0, AV_OPT_TYPE_CONST, {.i64=DRAW_SCALE}, .flags=FLAGS, .unit="draw"},
{ "full", "draw every pixel for sample directly", 0, AV_OPT_TYPE_CONST, {.i64=DRAW_FULL}, .flags=FLAGS, .unit="draw"},
{ NULL }
};