]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/avf_showwaves: Add draw mode also to showwavespic filter
authorMartin Vobruba <vobruba.martin@gmail.com>
Fri, 26 Apr 2019 06:17:11 +0000 (08:17 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 29 Apr 2019 18:31:05 +0000 (20:31 +0200)
See commit a8c2d375ca68b7f001564ced14d8ac0757f53a29

doc/filters.texi
libavfilter/avf_showwaves.c

index 7cc3937b4015f0ca80453132d667d9229921c6f4..cd828698495865cd57cbd002980515b118737c22 100644 (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
index 0e683cf42d1dd6a5072da34edf41158ab2f3150f..a0d2b25d55585a34459382faf117eaf319b18c14 100644 (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 }
 };