Lines Matching defs:crop
713 struct v4l2_rect *crop = &camif->camif_crop;
728 pr_debug("fmt: %ux%u, crop: %ux%u, bytesperline: %u\n",
729 pix->width, pix->height, crop->width, crop->height,
733 * camera input interface crop rectangle and the resizer's capabilities.
735 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3));
736 sc_vrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->height) - 1));
738 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax);
740 hmin = max_t(u32, 8, crop->height / sc_vrmax);
1232 /* crop rectangle at camera interface input */
1268 struct v4l2_rect *crop = &camif->camif_crop;
1269 v4l_bound_align_image(&mf->width, 8, crop->width,
1271 &mf->height, 8, crop->height,
1284 struct v4l2_rect *crop = &camif->camif_crop;
1316 /* Reset sink crop rectangle. */
1317 crop->width = mf->width;
1318 crop->height = mf->height;
1319 crop->left = 0;
1320 crop->top = 0;
1322 * Reset source format (the camif's crop rectangle)
1327 frame->rect = *crop;
1336 mf->width = crop->width;
1337 mf->height = crop->height;
1350 struct v4l2_rect *crop = &camif->camif_crop;
1366 sel->r = *crop;
1367 } else { /* crop bounds */
1376 v4l2_dbg(1, debug, sd, "%s: crop: (%d,%d) %dx%d, size: %ux%u\n",
1377 __func__, crop->left, crop->top, crop->width,
1378 crop->height, mf->width, mf->height);
1394 * - crop rectangle size and position must be aligned
1411 * width and height. Just return current crop rectangle if
1428 v4l2_dbg(1, debug, &camif->v4l2_dev, "crop: (%d,%d)/%dx%d, fmt: %ux%u\n",
1437 struct v4l2_rect *crop = &camif->camif_crop;
1453 *crop = sel->r;
1469 __func__, crop->left, crop->top, crop->width, crop->height,