Skip to content

Commit

Permalink
avfilter/f_graphmonitor: add flags option shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpl committed May 21, 2023
1 parent b528e09 commit 65fe180
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/filters.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 3 additions & 1 deletion libavfilter/f_graphmonitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ enum {
};

enum {
FLAG_NONE = 0 << 0,
FLAG_QUEUE = 1 << 0,
FLAG_FCIN = 1 << 1,
FLAG_FCOUT = 1 << 2,
Expand Down Expand Up @@ -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" },
Expand Down

0 comments on commit 65fe180

Please sign in to comment.