74 total += src[0] + src[1] + src[2];
112 cd->
x1 = inlink->
w - 1;
113 cd->
y1 = inlink->
h - 1;
125 int w, h, x,
y, shrink_by;
138 for (y = 0; y < cd->
y1; y++) {
145 for (y = frame->
video->
h-1; y > cd->
y2; y--) {
152 for (y = 0; y < cd->
x1; y++) {
159 for (y = frame->
video->
w-1; y > cd->
x2; y--) {
181 shrink_by = w % cd->
round;
183 x += (shrink_by/2 + 1) & ~1;
185 shrink_by = h % cd->
round;
187 y += (shrink_by/2 + 1) & ~1;
190 "x1:%d x2:%d y1:%d y2:%d w:%d h:%d x:%d y:%d pos:%"PRId64
" pts:%"PRId64
" t:%f crop=%d:%d:%d:%d\n",
191 cd->
x1, cd->
x2, cd->
y1, cd->
y2, w, h, x, y, frame->
pos, frame->
pts,
219 .
name =
"cropdetect",
227 .
inputs = avfilter_vf_cropdetect_inputs,
229 .
outputs = avfilter_vf_cropdetect_outputs,