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

Function showFilterKeys

test/test.c:1191–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189}
1190
1191static void showFilterKeys(FILE* const out, int filter_id)
1192{
1193 char ** keys = hb_filter_get_keys(filter_id);
1194 char * colon = "", * newline;
1195 int ii, linelen = 0;
1196
1197 fprintf(out, " Custom Format:\n"
1198 " ");
1199 for (ii = 0; keys[ii] != NULL; ii++)
1200 {
1201 int c = tolower(keys[ii][0]);
1202 int len = strlen(keys[ii]) + 3;
1203 if (linelen + len > 48)
1204 {
1205 newline = "\n ";
1206 linelen = 0;
1207 }
1208 else
1209 {
1210 newline = "";
1211 }
1212 fprintf(out, "%s%s%s=%c", colon, newline, keys[ii], c);
1213 linelen += len;
1214 colon = ":";
1215 }
1216 fprintf(out, "\n");
1217 hb_str_vfree(keys);
1218}
1219
1220static void showFilterDefault(FILE* const out, int filter_id)
1221{

Callers 1

ShowHelpFunction · 0.85

Calls 2

hb_filter_get_keysFunction · 0.85
hb_str_vfreeFunction · 0.85

Tested by

no test coverage detected