Searched refs:crop (Results 26 - 50 of 135) sorted by relevance

123456

/linux-master/drivers/media/platform/renesas/vsp1/
H A Dvsp1_histo.c208 struct v4l2_rect *crop; local
225 crop = vsp1_entity_get_pad_selection(&histo->entity, state,
230 sel->r.width = crop->width;
231 sel->r.height = crop->height;
268 /* The crop rectangle must be inside the input frame. */
278 /* Set the crop rectangle and reset the compose rectangle. */
297 struct v4l2_rect *crop; local
302 * corner is fixed to (0,0) and the size to 1/2 or 1/4 of the crop
308 crop = vsp1_entity_get_pad_selection(&histo->entity, sd_state,
326 sel->r.width = clamp(sel->r.width, crop
[all...]
/linux-master/drivers/media/i2c/
H A Dmt9v032.c190 struct v4l2_rect crop; member in struct:mt9v032
249 struct v4l2_rect *crop = &mt9v032->crop; local
255 min_hblank = max_t(int, mt9v032->model->data->min_row_time - crop->width,
376 return &mt9v032->crop;
387 struct v4l2_rect *crop = &mt9v032->crop; local
406 ret = regmap_write(map, MT9V032_COLUMN_START, crop->left);
410 ret = regmap_write(map, MT9V032_ROW_START, crop->top);
414 ret = regmap_write(map, MT9V032_WINDOW_WIDTH, crop
930 struct v4l2_rect *crop; local
[all...]
H A Dmt9m114.c821 * Pixel array crop and binning. The CAM_SENSOR_CFG_CPIPE_LAST_ROW
851 * by demosaicing that are taken into account in the crop rectangle but
1159 struct v4l2_rect *crop; local
1161 crop = v4l2_subdev_state_get_crop(state, 0);
1163 crop->left = 0;
1164 crop->top = 0;
1165 crop->width = MT9M114_PIXEL_ARRAY_WIDTH;
1166 crop->height = MT9M114_PIXEL_ARRAY_HEIGHT;
1219 struct v4l2_rect *crop; local
1223 crop
1269 struct v4l2_rect *crop; local
1652 struct v4l2_rect *crop; local
1759 const struct v4l2_rect *crop; local
1833 const struct v4l2_rect *crop; local
1889 struct v4l2_rect *crop; local
[all...]
H A Dimx219.c591 const struct v4l2_rect *crop; local
597 crop = v4l2_subdev_state_get_crop(state, 0);
617 crop->left - IMX219_PIXEL_ARRAY_LEFT, &ret);
619 crop->left - IMX219_PIXEL_ARRAY_LEFT + crop->width - 1, &ret);
621 crop->top - IMX219_PIXEL_ARRAY_TOP, &ret);
623 crop->top - IMX219_PIXEL_ARRAY_TOP + crop->height - 1, &ret);
625 switch (crop->width / format->width) {
635 switch (crop
819 struct v4l2_rect *crop; local
[all...]
H A Dov2680.c136 struct v4l2_rect crop; member in struct:ov2680_mode
326 return &sensor->mode.crop;
348 if (width <= (sensor->mode.crop.width / 2) &&
349 height <= (sensor->mode.crop.height / 2)) {
357 sensor->mode.h_start = (sensor->mode.crop.left +
358 (sensor->mode.crop.width - width) / 2) & ~1;
359 sensor->mode.v_start = (sensor->mode.crop.top +
360 (sensor->mode.crop.height - height) / 2) & ~1;
645 const struct v4l2_rect *crop; local
649 crop
718 struct v4l2_rect *crop; local
783 struct v4l2_rect *crop; local
[all...]
H A Dmt9p031.c123 struct v4l2_rect crop; /* Sensor window */ member in struct:mt9p031
401 const struct v4l2_rect *crop = &mt9p031->crop; local
416 ret = mt9p031_write(client, MT9P031_COLUMN_START, crop->left);
419 ret = mt9p031_write(client, MT9P031_ROW_START, crop->top);
422 ret = mt9p031_write(client, MT9P031_WINDOW_WIDTH, crop->width - 1);
425 ret = mt9p031_write(client, MT9P031_WINDOW_HEIGHT, crop->height - 1);
432 xskip = DIV_ROUND_CLOSEST(crop->width, format->width);
433 yskip = DIV_ROUND_CLOSEST(crop->height, format->height);
569 return &mt9p031->crop;
704 struct v4l2_rect *crop; local
[all...]
H A Dov5693.c149 struct v4l2_rect crop; member in struct:ov5693_device::ov5693_mode
559 cci_write(ov5693->regmap, OV5693_CROP_START_X_REG, mode->crop.left,
571 mode->crop.left + mode->crop.width, &ret);
578 cci_write(ov5693->regmap, OV5693_CROP_START_Y_REG, mode->crop.top,
590 mode->crop.top + mode->crop.height, &ret);
795 return &ov5693->mode.crop;
817 const struct v4l2_rect *crop; local
824 crop
[all...]
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-vid-out.c449 struct v4l2_rect *crop = &dev->crop_out; local
486 v4l2_rect_map_inside(crop, &r);
488 *crop = r;
507 crop->width / MAX_ZOOM,
508 factor * crop->height / MAX_ZOOM
512 crop->width * MAX_ZOOM,
513 factor * crop->height * MAX_ZOOM
521 v4l2_rect_set_size_to(crop, &r);
526 v4l2_rect_map_inside(crop, &r);
533 crop
679 struct v4l2_rect *crop = &dev->crop_out; local
[all...]
H A Dvivid-vid-cap.c670 struct v4l2_rect *crop = &dev->crop_cap; local
713 v4l2_rect_set_min_size(crop, &min_r);
714 v4l2_rect_set_max_size(crop, &max_r);
715 v4l2_rect_map_inside(crop, &dev->crop_bounds_cap);
728 v4l2_rect_set_min_size(crop, &min_r);
729 v4l2_rect_set_max_size(crop, &max_r);
730 v4l2_rect_map_inside(crop, &dev->crop_bounds_cap);
734 v4l2_rect_set_size_to(crop, &r);
735 v4l2_rect_map_inside(crop, &dev->crop_bounds_cap);
736 r = *crop;
907 struct v4l2_rect *crop = &dev->crop_cap; local
[all...]
/linux-master/drivers/media/platform/rockchip/rga/
H A Drga-hw.c168 src_h = ctx->in.crop.height;
169 src_w = ctx->in.crop.width;
170 dst_h = ctx->out.crop.height;
171 dst_w = ctx->out.crop.width;
320 src_h = ctx->in.crop.height;
321 src_w = ctx->in.crop.width;
322 src_x = ctx->in.crop.left;
323 src_y = ctx->in.crop.top;
350 dst_h = ctx->out.crop.height;
351 dst_w = ctx->out.crop
[all...]
/linux-master/drivers/staging/media/starfive/camss/
H A Dstf-isp-hw-ops.c346 struct v4l2_rect *crop)
351 val = VSTART_CAP(crop->top) | HSTART_CAP(crop->left);
354 val = VEND_CAP(crop->height + crop->top - 1) |
355 HEND_CAP(crop->width + crop->left - 1);
358 val = H_ACT_CAP(crop->height) | W_ACT_CAP(crop->width);
361 val = ALIGN(crop
345 stf_isp_config_crop(struct stfcamss *stfcamss, struct v4l2_rect *crop) argument
408 stf_isp_settings(struct stf_isp_dev *isp_dev, struct v4l2_rect *crop, u32 mcode) argument
[all...]
/linux-master/drivers/media/platform/ti/omap3isp/
H A Disppreview.c73 * during streaming are enabled when computing sink crop and source format
89 * YUV conversion. They thus can crop one pixel on the left and one pixel on the
91 * filters are disabled, the driver must crop the two pixels on the same side of
1066 unsigned int sph = prev->crop.left;
1067 unsigned int eph = prev->crop.left + prev->crop.width - 1;
1068 unsigned int slv = prev->crop.top;
1069 unsigned int elv = prev->crop.top + prev->crop.height - 1;
1700 return &prev->crop;
1740 struct v4l2_rect *crop; local
1818 preview_try_crop(struct isp_prev_device *prev, const struct v4l2_mbus_framefmt *sink, struct v4l2_rect *crop) argument
2048 struct v4l2_rect *crop; local
[all...]
H A Dispresizer.h87 * @lock: Protects formats and crop rectangles between set_selection and IRQ
88 * @crop.request: Crop rectangle requested by the user
89 * @crop.active: Active crop rectangle (based on hardware requirements)
101 u32 crop_offset; /* additional offset for crop in memory mode */
113 } crop; member in struct:isp_res_device
H A Dispccdc.c1119 const struct v4l2_rect *crop; local
1230 crop = &ccdc->crop;
1238 sph = crop->left * 2;
1239 nph = crop->width * 2 - 1;
1241 sph = crop->left;
1242 nph = crop->width - 1;
1248 isp_reg_writel(isp, (crop->top << ISPCCDC_VERT_START_SLV0_SHIFT) |
1249 (crop->top << ISPCCDC_VERT_START_SLV1_SHIFT),
1251 isp_reg_writel(isp, (crop
1985 struct v4l2_rect *crop; local
2089 ccdc_try_crop(struct isp_ccdc_device *ccdc, const struct v4l2_mbus_framefmt *sink, struct v4l2_rect *crop) argument
2360 struct v4l2_rect *crop; local
[all...]
H A Dispccdc.h103 * @crop: Active crop rectangle on the OF source pad
131 struct v4l2_rect crop; member in struct:isp_ccdc_device
H A Disppreview.h107 * @crop: Active crop rectangle
124 struct v4l2_rect crop; member in struct:isp_prev_device
/linux-master/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-capture.c713 struct v4l2_rect *crop = &camif->camif_crop; local
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);
1233 /* crop rectangl
1269 struct v4l2_rect *crop = &camif->camif_crop; local
1285 struct v4l2_rect *crop = &camif->camif_crop; local
1351 struct v4l2_rect *crop = &camif->camif_crop; local
1438 struct v4l2_rect *crop = &camif->camif_crop; local
[all...]
H A Dcamif-regs.c131 struct v4l2_rect *crop = &camif->camif_crop; local
138 cfg |= (crop->left << 16) | crop->top;
139 if (crop->left != 0 || crop->top != 0)
144 hoff2 = mf->width - crop->width - crop->left;
145 voff2 = mf->height - crop->height - crop->top;
/linux-master/drivers/staging/media/atomisp/pci/
H A Dia_css_isp_configs.h17 #include "isp/kernels/crop/crop_1.0/ia_css_crop.host.h"
60 struct ia_css_isp_parameter crop; member in struct:ia_css_config_memory_offsets::__anon2179
/linux-master/drivers/media/platform/amphion/
H A Dvpu_codec.h19 struct v4l2_rect crop; member in struct:vpu_encode_params
/linux-master/drivers/media/platform/qcom/camss/
H A Dcamss-vfe-4-1.c701 first = line->crop.left;
702 last = line->crop.left + line->crop.width - 1;
706 first = line->crop.top;
707 last = line->crop.top + line->crop.height - 1;
711 first = line->crop.left / 2;
712 last = line->crop.left / 2 + line->crop.width / 2 - 1;
716 first = line->crop
[all...]
/linux-master/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c63 /* Get the crop bounds to clamp the crop rectangle correctly */
210 * Propagate the sink pad format to the crop rectangle and the source
215 struct v4l2_rect *crop; local
217 crop = vimc_scaler_pad_crop(vscaler, sd_state, format->which);
218 crop->width = fmt->width;
219 crop->height = fmt->height;
220 crop->top = 0;
221 crop->left = 0;
278 /* Only support setting the crop o
[all...]
/linux-master/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_m2m.c345 mtk_mdp_dbg(2, "[%d] crop l,t,w,h:%d,%d,%d,%d, max:%dx%d", ctx->id,
383 frame->crop.width = width;
384 frame->crop.height = height;
385 frame->crop.left = 0;
386 frame->crop.top = 0;
805 s->r.left = frame->crop.left;
806 s->r.top = frame->crop.top;
807 s->r.width = frame->crop.width;
808 s->r.height = frame->crop.height;
873 new_r.height, ctx->d_frame.crop
[all...]
/linux-master/drivers/media/platform/st/sti/bdisp/
H A Dbdisp-debug.c459 src.crop.width, src.crop.height,
460 src.crop.left, src.crop.top,
461 dst.crop.width, dst.crop.height,
462 dst.crop.left, dst.crop.top);
/linux-master/drivers/media/platform/renesas/rcar-vin/
H A Drcar-v4l2.c229 vin->crop.top = 0;
230 vin->crop.left = 0;
231 vin->crop.width = vin->format.width;
232 vin->crop.height = vin->format.height;
348 v4l2_rect_map_inside(&vin->crop, &src_rect);
495 s->r = vin->crop;
536 /* Can't crop outside of source input */
549 vin->crop = s->r = r;
905 vin->crop.top = 0;
906 vin->crop
[all...]

Completed in 358 milliseconds

123456