49 const char *tff =
"tff";
50 const char *bff =
"bff";
54 }
else if (sscanf(args,
"%u", &fieldorder->
dst_tff) == 1) {
56 }
else if (!strcmp(tff, args)) {
58 }
else if (!strcmp(bff, args)) {
66 fieldorder->
dst_tff ? tff : bff);
106 for (plane = 0; plane < 4; plane++) {
129 int h, plane, line_step, line_size,
line;
137 "picture will move %s one line\n",
140 for (plane = 0; plane < 4 && frame->
data[plane]; plane++) {
143 data = frame->
data[plane];
150 for (line = 0; line < h; line++) {
152 memcpy(data, data + line_step, line_size);
154 memcpy(data, data - line_step - line_step, line_size);
164 data += (h - 1) * line_step;
165 for (line = h - 1; line >= 0 ; line--) {
167 memcpy(data, data - line_step, line_size);
169 memcpy(data, data + line_step + line_step, line_size);
201 .
name =
"fieldorder",
206 .
inputs = avfilter_vf_fieldorder_inputs,
207 .
outputs = avfilter_vf_fieldorder_outputs,