MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / showFilterPresets

Function showFilterPresets

test/test.c:1122–1153  ·  view source on GitHub ↗

* ShowHelp: ****************************************************************************/

Source from the content-addressed store, hash-verified

1120 * ShowHelp:
1121 ****************************************************************************/
1122static 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}
1154static void showFilterTunes(FILE* const out, int filter_id)
1155{
1156 char ** tunes = hb_filter_get_tunes_short_name(filter_id);

Callers 1

ShowHelpFunction · 0.85

Calls 2

hb_str_vfreeFunction · 0.85

Tested by

no test coverage detected