80 int i, j, plane, step, hsub, vsub;
93 for (plane = 0; plane < 4 && in->
data[plane]; plane++) {
95 hsub = (plane == 1 || plane == 2) ? flip->
hsub : 0;
96 vsub = (plane == 1 || plane == 2) ? flip->
vsub : 0;
98 outrow = out->
data[plane];
99 inrow = in ->
data[plane] + ((inlink->
w >> hsub) - 1) * step;
100 for (i = 0; i < in->
video->
h >> vsub; i++) {
103 for (j = 0; j < (inlink->
w >> hsub); j++)
104 outrow[j] = inrow[-j];
109 uint16_t *outrow16 = (uint16_t *)outrow;
110 uint16_t * inrow16 = (uint16_t *) inrow;
111 for (j = 0; j < (inlink->
w >> hsub); j++)
112 outrow16[j] = inrow16[-j];
120 for (j = 0; j < (inlink->
w >> hsub); j++, out += 3, in -= 3) {
129 uint32_t *outrow32 = (uint32_t *)outrow;
130 uint32_t * inrow32 = (uint32_t *) inrow;
131 for (j = 0; j < (inlink->
w >> hsub); j++)
132 outrow32[j] = inrow32[-j];
137 for (j = 0; j < (inlink->
w >> hsub); j++)
138 memcpy(outrow + j*step, inrow - j*step, step);
175 .
inputs = avfilter_vf_hflip_inputs,
176 .
outputs = avfilter_vf_hflip_outputs,