| 175 | } |
| 176 | |
| 177 | void show_help_options(const OptionDef *options, const char *msg, int req_flags, |
| 178 | int rej_flags, int alt_flags) |
| 179 | { |
| 180 | const OptionDef *po; |
| 181 | int first; |
| 182 | |
| 183 | first = 1; |
| 184 | for (po = options; po->name; po++) { |
| 185 | char buf[64]; |
| 186 | |
| 187 | if (((po->flags & req_flags) != req_flags) || |
| 188 | (alt_flags && !(po->flags & alt_flags)) || |
| 189 | (po->flags & rej_flags)) |
| 190 | continue; |
| 191 | |
| 192 | if (first) { |
| 193 | printf("%s\n", msg); |
| 194 | first = 0; |
| 195 | } |
| 196 | av_strlcpy(buf, po->name, sizeof(buf)); |
| 197 | if (po->argname) { |
| 198 | av_strlcat(buf, " ", sizeof(buf)); |
| 199 | av_strlcat(buf, po->argname, sizeof(buf)); |
| 200 | } |
| 201 | printf("-%-17s %s\n", buf, po->help); |
| 202 | } |
| 203 | printf("\n"); |
| 204 | } |
| 205 | |
| 206 | void show_help_children(const AVClass *class, int flags) |
| 207 | { |