98 outlink->
w = inlink->
h;
99 outlink->
h = inlink->
w;
107 inlink->
w, inlink->
h, trans->
dir, outlink->
w, outlink->
h,
108 trans->
dir == 1 || trans->
dir == 3 ?
"clockwise" :
"counterclockwise",
109 trans->
dir == 0 || trans->
dir == 3);
135 for (plane = 0; out->
data[plane]; plane++) {
136 int hsub = plane == 1 || plane == 2 ? trans->
hsub : 0;
137 int vsub = plane == 1 || plane == 2 ? trans->
vsub : 0;
138 int pixstep = trans->
pixsteps[plane];
139 int inh = in->
height >> vsub;
140 int outw = out->
width >> hsub;
141 int outh = out->
height >> vsub;
143 int dstlinesize, srclinesize;
146 dst = out->
data[plane];
148 src = in->
data[plane];
152 src += in->
linesize[plane] * (inh-1);
157 dst += out->
linesize[plane] * (outh-1);
161 for (y = 0; y < outh; y++) {
164 for (x = 0; x < outw; x++)
165 dst[x] = src[x*srclinesize + y];
168 for (x = 0; x < outw; x++)
169 *((uint16_t *)(dst + 2*x)) = *((uint16_t *)(src + x*srclinesize + y*2));
172 for (x = 0; x < outw; x++) {
178 for (x = 0; x < outw; x++)
179 *((uint32_t *)(dst + 4*x)) = *((uint32_t *)(src + x*srclinesize + y*4));
190 #define OFFSET(x) offsetof(TransContext, x)
191 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM
232 .priv_class = &transpose_class,
236 .
inputs = avfilter_vf_transpose_inputs,
237 .
outputs = avfilter_vf_transpose_outputs,