Lines Matching refs:crop
244 struct v4l2_rect *crop, *compose;
251 crop = v4l2_subdev_state_get_crop(sd_state, 1);
256 fmt->format.width = crop->width;
257 fmt->format.height = crop->height;
260 crop->top = 0;
261 crop->left = 0;
262 crop->width = fmt->format.width;
263 crop->height = fmt->format.height;
264 *compose = *crop;
278 struct v4l2_rect *crop, *compose;
281 * In the HW, the decimation block is located prior to the crop hence:
298 crop = v4l2_subdev_state_get_crop(sd_state, 1);
303 s->r = *crop;
332 struct v4l2_rect *crop, *compose;
335 * In the HW, the decimation block is located prior to the crop hence:
349 crop = v4l2_subdev_state_get_crop(sd_state, 1);
356 *crop = s->r;
361 dev_dbg(byteproc->dev, "s_selection: crop %ux%u@(%u,%u)\n",
362 crop->width, crop->height, crop->left, crop->top);
368 *crop = s->r;
401 struct v4l2_rect *compose, *crop;
407 crop = v4l2_subdev_state_get_crop(state, 1);
415 /* clear decimation/crop */
421 /* Ignore decimation/crop with JPEG */
447 dev_dbg(byteproc->dev, "crop to %dx%d\n", crop->width, crop->height);
451 (((crop->left * vpix->bpp) / 4) <<
453 (crop->top << DCMIPP_P0SCSTR_VSTART_SHIFT));
456 (((crop->width * vpix->bpp) / 4) <<
458 (crop->height << DCMIPP_P0SCSZR_VSIZE_SHIFT));