[FFmpeg-cvslog] avfilter/vf_histogram: shortcuts for histogram options

Dave Rice git at videolan.org
Sat Jun 11 18:42:57 CEST 2016


ffmpeg | branch: master | Dave Rice <dave at dericed.com> | Sat Jun 11 00:54:59 2016 -0400| [91bc42528ce54a05bd41217cf1564fd2ac578374] | committer: Paul B Mahol

avfilter/vf_histogram: shortcuts for histogram options

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91bc42528ce54a05bd41217cf1564fd2ac578374
---

 libavfilter/vf_histogram.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index 674b286..192c02e 100644
--- a/libavfilter/vf_histogram.c
+++ b/libavfilter/vf_histogram.c
@@ -54,12 +54,15 @@ static const AVOption histogram_options[] = {
     { "level_height", "set level height", OFFSET(level_height), AV_OPT_TYPE_INT, {.i64=200}, 50, 2048, FLAGS},
     { "scale_height", "set scale height", OFFSET(scale_height), AV_OPT_TYPE_INT, {.i64=12}, 0, 40, FLAGS},
     { "display_mode", "set display mode", OFFSET(display_mode), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS, "display_mode"},
+    { "d",            "set display mode", OFFSET(display_mode), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS, "display_mode"},
     { "parade",  NULL, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "display_mode" },
     { "overlay", NULL, 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "display_mode" },
     { "levels_mode", "set levels mode", OFFSET(levels_mode), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS, "levels_mode"},
+    { "m",           "set levels mode", OFFSET(levels_mode), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS, "levels_mode"},
     { "linear",      NULL, 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "levels_mode" },
     { "logarithmic", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "levels_mode" },
     { "components", "set color components to display", OFFSET(components), AV_OPT_TYPE_INT, {.i64=7}, 1, 15, FLAGS},
+    { "c",          "set color components to display", OFFSET(components), AV_OPT_TYPE_INT, {.i64=7}, 1, 15, FLAGS},
     { NULL }
 };
 



More information about the ffmpeg-cvslog mailing list