Lines Matching refs:crop

136 	struct v4l2_rect		crop;  member
326 return &sensor->mode.crop; in __ov2680_get_pad_crop()
348 if (width <= (sensor->mode.crop.width / 2) && in ov2680_calc_mode()
349 height <= (sensor->mode.crop.height / 2)) { in ov2680_calc_mode()
357 sensor->mode.h_start = (sensor->mode.crop.left + in ov2680_calc_mode()
358 (sensor->mode.crop.width - width) / 2) & ~1; in ov2680_calc_mode()
359 sensor->mode.v_start = (sensor->mode.crop.top + in ov2680_calc_mode()
360 (sensor->mode.crop.height - height) / 2) & ~1; in ov2680_calc_mode()
637 const struct v4l2_rect *crop; in ov2680_set_fmt() local
641 crop = __ov2680_get_pad_crop(sensor, sd_state, format->pad, in ov2680_set_fmt()
646 OV2680_MIN_CROP_WIDTH, crop->width); in ov2680_set_fmt()
648 OV2680_MIN_CROP_HEIGHT, crop->height); in ov2680_set_fmt()
710 struct v4l2_rect *crop; in ov2680_set_selection() local
736 crop = __ov2680_get_pad_crop(sensor, state, sel->pad, sel->which); in ov2680_set_selection()
739 if (rect.width != crop->width || rect.height != crop->height) { in ov2680_set_selection()
750 *crop = rect; in ov2680_set_selection()
775 struct v4l2_rect *crop; in ov2680_enum_frame_size() local
780 crop = __ov2680_get_pad_crop(sensor, sd_state, fse->pad, fse->which); in ov2680_enum_frame_size()
781 if (!crop) in ov2680_enum_frame_size()
784 fse->min_width = crop->width / (fse->index + 1); in ov2680_enum_frame_size()
785 fse->min_height = crop->height / (fse->index + 1); in ov2680_enum_frame_size()
897 sensor->mode.crop = ov2680_default_crop; in ov2680_mode_init()