* ShowHelp: ****************************************************************************/
| 1120 | * ShowHelp: |
| 1121 | ****************************************************************************/ |
| 1122 | static void showFilterPresets(FILE* const out, int filter_id) |
| 1123 | { |
| 1124 | char ** names = hb_filter_get_presets_short_name(filter_id); |
| 1125 | int ii, count = 0; |
| 1126 | |
| 1127 | // Count number of entries we want to display |
| 1128 | for (ii = 0; names[ii] != NULL; ii++) |
| 1129 | { |
| 1130 | if (!strcasecmp(names[ii], "custom") || // skip custom |
| 1131 | !strcasecmp(names[ii], "off") || // skip off |
| 1132 | !strcasecmp(names[ii], "default")) // skip default |
| 1133 | continue; |
| 1134 | count++; |
| 1135 | } |
| 1136 | |
| 1137 | // If there are no entries, display nothing. |
| 1138 | if (count == 0) |
| 1139 | { |
| 1140 | return; |
| 1141 | } |
| 1142 | fprintf(out, " Presets:\n"); |
| 1143 | for (ii = 0; names[ii] != NULL; ii++) |
| 1144 | { |
| 1145 | if (!strcasecmp(names[ii], "custom") || // skip custom |
| 1146 | !strcasecmp(names[ii], "off") || // skip off |
| 1147 | !strcasecmp(names[ii], "default")) // skip default |
| 1148 | continue; |
| 1149 | fprintf(out, " %s\n", names[ii]); |
| 1150 | } |
| 1151 | |
| 1152 | hb_str_vfree(names); |
| 1153 | } |
| 1154 | static void showFilterTunes(FILE* const out, int filter_id) |
| 1155 | { |
| 1156 | char ** tunes = hb_filter_get_tunes_short_name(filter_id); |
no test coverage detected