diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-21 12:39:05 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-21 13:02:02 +0200 |
commit | 65fe18040a90ab1b206bfedec08308940436c590 (patch) | |
tree | 390f465305c7fe8616b6b5243e5e2648b63d14ee | |
parent | b528e098a9345ee44fb7088027dc3945b59d65c8 (diff) | |
download | ffmpeg-65fe18040a90ab1b206bfedec08308940436c590.tar.gz |
avfilter/f_graphmonitor: add flags option shortcuts
-rw-r--r-- | doc/filters.texi | 6 | ||||
-rw-r--r-- | libavfilter/f_graphmonitor.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 393297c418..ddc8529bbe 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -14660,6 +14660,12 @@ Set flags which enable which stats are shown in video. Available values for flags are: @table @samp +@item none +All flags turned off. + +@item all +All flags turned on. + @item queue Display number of queued frames in each link. diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index 68c343d75e..78a365822f 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -72,6 +72,7 @@ enum { }; enum { + FLAG_NONE = 0 << 0, FLAG_QUEUE = 1 << 0, FLAG_FCIN = 1 << 1, FLAG_FCOUT = 1 << 2, @@ -109,7 +110,8 @@ static const AVOption graphmonitor_options[] = { { "nodisabled",NULL,0,AV_OPT_TYPE_CONST, {.i64=MODE_NODISABLED},0,0,VFR,"mode" }, { "flags", "set flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64=FLAG_QUEUE}, 0, INT_MAX, VFR, "flags" }, { "f", "set flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64=FLAG_QUEUE}, 0, INT_MAX, VFR, "flags" }, - { "queue", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_QUEUE}, 0, 0, VFR, "flags" }, + { "none", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_NONE}, 0, 0, VFR, "flags" }, + { "all", NULL, 0, AV_OPT_TYPE_CONST, {.i64=INT_MAX}, 0, 0, VFR, "flags" }, { "frame_count_in", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FCOUT}, 0, 0, VFR, "flags" }, { "frame_count_out", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FCIN}, 0, 0, VFR, "flags" }, { "frame_count_delta",NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FC_DELTA},0, 0, VFR, "flags" }, |