MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / show_help_options

Function show_help_options

fftools/cmdutils.c:107–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void show_help_options(const OptionDef *options, const char *msg, int req_flags,
108 int rej_flags)
109{
110 const OptionDef *po;
111 int first;
112
113 first = 1;
114 for (po = options; po->name; po++) {
115 char buf[128];
116
117 if (((po->flags & req_flags) != req_flags) ||
118 (po->flags & rej_flags))
119 continue;
120
121 if (first) {
122 printf("%s\n", msg);
123 first = 0;
124 }
125 av_strlcpy(buf, po->name, sizeof(buf));
126
127 if (po->flags & OPT_FLAG_PERSTREAM)
128 av_strlcat(buf, "[:<stream_spec>]", sizeof(buf));
129 else if (po->flags & OPT_FLAG_SPEC)
130 av_strlcat(buf, "[:<spec>]", sizeof(buf));
131
132 if (po->argname)
133 av_strlcatf(buf, sizeof(buf), " <%s>", po->argname);
134
135 printf("-%-17s %s\n", buf, po->help);
136 }
137 printf("\n");
138}
139
140void show_help_children(const AVClass *class, int flags)
141{

Callers 3

show_help_defaultFunction · 0.85
show_help_defaultFunction · 0.85
show_help_defaultFunction · 0.85

Calls 3

av_strlcpyFunction · 0.85
av_strlcatFunction · 0.85
av_strlcatfFunction · 0.85

Tested by

no test coverage detected