Lines Matching refs:crop
322 struct v4l2_rect *crop = &vout->crop;
354 ctop = (pix->height - crop->height) - crop->top;
355 cleft = (pix->width - crop->width) - crop->left;
367 temp_ps * cleft + crop->top * temp_ps;
370 cleft + crop->top * temp_ps + (line_length *
371 ((crop->width / (vr_ps)) - 1) * ps);
386 (crop->height - 1) * ps);
395 temp_ps * crop->left + ctop * ps;
398 temp_ps * crop->left + ctop * ps +
399 (line_length * ((crop->width / vr_ps) - 1) *
406 crop->top + (crop->left / vr_ps) * ps;
409 crop->top + (crop->left / vr_ps) * ps +
410 (line_length * (crop->height - 1) * ps);
414 *cropped_offset = (line_length * ps * crop->top) /
415 vr_ps + (crop->left * ps) / vr_ps +
416 ((crop->width / vr_ps) - 1) * ps;