Lines Matching defs:crop
343 ccdc_dev->hw_ops.set_image_window(&vpfe_dev->crop);
371 * pix format & crop values in the vpfe device and ccdc. It first
374 * values based on that.Sets crop values to match with scan resolution
402 vpfe_dev->crop.top = 0;
403 vpfe_dev->crop.left = 0;
404 vpfe_dev->crop.width = vpfe_dev->std_info.active_pixels;
405 vpfe_dev->crop.height = vpfe_dev->std_info.active_lines;
406 vpfe_dev->fmt.fmt.pix.width = vpfe_dev->crop.width;
407 vpfe_dev->fmt.fmt.pix.height = vpfe_dev->crop.height;
1632 struct v4l2_cropcap *crop)
1641 memset(crop, 0, sizeof(struct v4l2_cropcap));
1642 crop->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
1643 crop->bounds.width = crop->defrect.width =
1645 crop->bounds.height = crop->defrect.height =
1647 crop->pixelaspect = vpfe_standards[vpfe_dev->std_index].pixelaspect;
1652 struct v4l2_crop *crop)
1658 crop->c = vpfe_dev->crop;
1663 struct v4l2_crop *crop)
1673 "Cannot change crop when streaming is ON\n");
1681 if (crop->c.top < 0 || crop->c.left < 0) {
1689 crop->c.width = ((crop->c.width + 15) & ~0xf);
1692 if ((crop->c.left + crop->c.width >
1694 (crop->c.top + crop->c.height >
1700 ccdc_dev->hw_ops.set_image_window(&crop->c);
1701 vpfe_dev->fmt.fmt.pix.width = crop->c.width;
1702 vpfe_dev->fmt.fmt.pix.height = crop->c.height;
1708 vpfe_dev->crop = crop->c;