| 105 | } |
| 106 | |
| 107 | void 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 | |
| 140 | void show_help_children(const AVClass *class, int flags) |
| 141 | { |
no test coverage detected