[FFmpeg-cvslog] avfilter/vf_colorlevels: add support for commands
Paul B Mahol
git at videolan.org
Tue Feb 11 15:21:19 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 11 14:19:56 2020 +0100| [cf92f42672b1d696e0a17dbb9cda56b6a80c1466] | committer: Paul B Mahol
avfilter/vf_colorlevels: add support for commands
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf92f42672b1d696e0a17dbb9cda56b6a80c1466
---
doc/filters.texi | 4 ++++
libavfilter/vf_colorlevels.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index f396819a79..7c25bbaf97 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -7479,6 +7479,10 @@ colorlevels=romin=0.5:gomin=0.5:bomin=0.5
@end example
@end itemize
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
@section colormatrix
Convert color matrix.
diff --git a/libavfilter/vf_colorlevels.c b/libavfilter/vf_colorlevels.c
index fadb39e004..c03e288e4a 100644
--- a/libavfilter/vf_colorlevels.c
+++ b/libavfilter/vf_colorlevels.c
@@ -48,7 +48,7 @@ typedef struct ColorLevelsContext {
} ColorLevelsContext;
#define OFFSET(x) offsetof(ColorLevelsContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption colorlevels_options[] = {
{ "rimin", "set input red black point", OFFSET(range[R].in_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS },
{ "gimin", "set input green black point", OFFSET(range[G].in_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS },
@@ -325,4 +325,5 @@ AVFilter ff_vf_colorlevels = {
.inputs = colorlevels_inputs,
.outputs = colorlevels_outputs,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
+ .process_command = ff_filter_process_command,
};
More information about the ffmpeg-cvslog
mailing list