67 unsigned max_src_name = 0, max_dst_name = 0;
68 unsigned max_in_name = 0, max_out_name = 0;
69 unsigned max_in_fmt = 0, max_out_fmt = 0;
71 unsigned lname = strlen(filter->
name);
74 for (j = 0; j < filter->input_count; j++) {
77 max_src_name =
FFMAX(max_src_name, ln);
81 for (j = 0; j < filter->output_count; j++) {
84 max_dst_name =
FFMAX(max_dst_name, ln);
88 in_indent = max_src_name + max_in_name + max_in_fmt;
89 in_indent += in_indent ? 4 : 0;
90 width =
FFMAX(lname + 2, ltype + 4);
91 height =
FFMAX3(2, filter->input_count, filter->output_count);
96 for (j = 0; j <
height; j++) {
97 unsigned in_no = j - (height - filter->input_count ) / 2;
98 unsigned out_no = j - (height - filter->output_count) / 2;
101 if (in_no < filter->input_count) {
103 e = buf->len + max_src_name + 2;
106 e = buf->len + max_in_fmt + 2 +
117 if (j == (height - 2) / 2) {
118 x = (width - lname) / 2;
120 }
else if (j == (height - 2) / 2 + 1) {
121 x = (width - ltype - 2) / 2;
123 width - ltype - 2 - x,
"");
130 if (out_no < filter->output_count) {
132 unsigned ln = strlen(l->
dst->
name) + 1 +
134 e = buf->len + max_out_name + 2;
137 e = buf->len + max_out_fmt + 2 +