Searched refs:crop (Results 1 - 25 of 135) sorted by path

123456

/linux-master/drivers/gpu/drm/mcde/
H A Dmcde_display.c347 u32 crop; local
357 crop = MCDE_OVL0CROP;
365 crop = MCDE_OVL1CROP;
373 crop = MCDE_OVL2CROP;
381 crop = MCDE_OVL3CROP;
389 crop = MCDE_OVL4CROP;
397 crop = MCDE_OVL5CROP;
468 writel(0, mcde->regs + crop);
/linux-master/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_wb.h21 struct drm_rect crop; member in struct:dpu_hw_wb_cfg
/linux-master/drivers/media/common/v4l2-tpg/
H A Dv4l2-tpg-core.c94 tpg->crop.width = tpg->compose.width = w;
95 tpg->crop.height = tpg->compose.height = h;
507 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, argument
510 tpg->crop = *crop;
513 tpg->crop.width - 1) / tpg->crop.width;
535 tpg->crop.top = tpg->crop.left = 0;
536 tpg->crop
[all...]
/linux-master/drivers/media/i2c/
H A Dalvium-csi2.c1714 struct v4l2_rect *crop; local
1717 crop = v4l2_subdev_state_get_crop(state, 0);
1725 /* alvium don't accept negative crop left/top */
1726 crop->left = clamp((u32)max(0, crop->left), alvium->min_offx,
1728 crop->top = clamp((u32)max(0, crop->top), alvium->min_offy,
1739 ret = alvium_set_img_offx(alvium, crop->left);
1743 ret = alvium_set_img_offy(alvium, crop->top);
1837 .left = mode->crop
1862 struct v4l2_rect *crop; local
1896 struct v4l2_rect *crop; local
[all...]
H A Dalvium-csi2.h335 struct v4l2_rect crop; member in struct:alvium_mode
H A Dgc2145.c112 * @crop: window area captured
123 struct v4l2_rect crop; member in struct:gc2145_mode
496 .crop = {
513 .crop = {
530 .crop = {
661 struct v4l2_rect *crop; local
668 /* Initialize crop rectangle. */
669 crop = v4l2_subdev_state_get_crop(state, 0);
670 *crop = supported_modes[0].crop;
749 struct v4l2_rect *crop; local
[all...]
H A Dhi556.c99 /* Analog crop rectangle. */
100 struct v4l2_rect crop; member in struct:hi556_mode
553 .crop = {
571 .crop = {
589 .crop = {
607 .crop = {
940 return &hi556->cur_mode->crop;
H A Dhi846.c235 struct v4l2_rect crop; member in struct:hi846_mode
1079 .crop = {
1105 .crop = {
1131 .crop = {
1857 sel->r = hi846->cur_mode->crop;
H A Dimx214.c63 struct v4l2_rect crop; member in struct:imx214
592 return &imx214->crop;
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 Dimx274.c555 * @crop: rect to be captured
572 struct v4l2_rect crop; member in struct:stimx274
1024 cur_crop = &imx274->crop;
1149 src_crop = &imx274->crop;
1220 tgt_crop = &imx274->crop;
1230 /* if crop size changed then reset the output image size */
1288 h_start = imx274->crop.left + 12;
1289 h_end = h_start + imx274->crop.width;
1294 hmax = max_t(u32, 260, (imx274->crop.width) / 16 + 23);
1298 (-imx274->crop
[all...]
H A Dimx296.c510 const struct v4l2_rect *crop; local
515 crop = v4l2_subdev_state_get_crop(state, 0);
521 if (crop->width != IMX296_PIXEL_ARRAY_WIDTH ||
522 crop->height != IMX296_PIXEL_ARRAY_HEIGHT) {
525 imx296_write(sensor, IMX296_FID0_ROIPH1, crop->left, &ret);
526 imx296_write(sensor, IMX296_FID0_ROIPV1, crop->top, &ret);
527 imx296_write(sensor, IMX296_FID0_ROIWH1, crop->width, &ret);
528 imx296_write(sensor, IMX296_FID0_ROIWV1, crop->height, &ret);
534 (crop->width != format->width ?
536 (crop
684 struct v4l2_rect *crop; local
759 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 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 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 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 Dov5640.c378 /* Analog crop rectangle. */
380 /* Visibile crop: from analog crop top-left corner. */
381 struct v4l2_rect crop; member in struct:ov5640_timings
708 .crop = {
726 .crop = {
753 .crop = {
771 .crop = {
798 .crop = {
816 .crop
1653 const struct v4l2_rect *crop; local
3769 struct v4l2_rect *crop = v4l2_subdev_state_get_crop(state, 0); local
[all...]
H A Dov5645.c92 struct v4l2_rect crop; member in struct:ov5645
886 return &ov5645->crop;
H A Dov5647.c91 struct v4l2_rect crop; member in struct:ov5647_mode
516 .crop = {
537 .crop = {
558 .crop = {
579 .crop = {
887 return &ov5647->mode->crop;
1125 struct v4l2_rect *crop = v4l2_subdev_state_get_crop(fh->state, 0); local
1127 crop->left = OV5647_PIXEL_ARRAY_LEFT;
1128 crop->top = OV5647_PIXEL_ARRAY_TOP;
1129 crop
[all...]
H A Dov5670.c128 /* Analog crop rectangle */
2205 struct v4l2_rect *crop = v4l2_subdev_state_get_crop(state, 0); local
2216 *crop = *default_mode->analog_crop;
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...]
H A Dov64a40.c2625 /* Analogue crop + digital crop */
2707 /* Analogue crop + 2x2 downscale + digital crop */
2789 /* Analogue crop + 4x4 downscale + digital crop */
2883 /* Analogue crop. */
3060 struct v4l2_rect *crop; local
3065 crop = v4l2_subdev_state_get_crop(state, 0);
3066 crop
[all...]
H A Dov6650.c478 /* pre-select try crop rectangle */
482 /* pre-select active crop rectangle */
495 /* use selected crop rectangle */
534 struct v4l2_rect *crop = local
539 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop);
541 /* store new crop rectangle */
542 *crop = sel->r;
545 mf->width = crop->width >> half_scale;
546 mf->height = crop->height >> half_scale;
553 /* apply new crop rectangl
701 struct v4l2_rect *crop; local
[all...]
H A Dov7251.c132 struct v4l2_rect crop; member in struct:ov7251
1174 return &ov7251->crop;
/linux-master/drivers/media/i2c/ccs/
H A Dccs-core.c1760 /* Analog crop start coordinates */
1769 /* Analog crop end coordinates */
1785 /* Digital crop */
2478 /* We only implement crop in three places. */
3016 struct v4l2_rect *crop = local
3022 ccs_get_native_size(ssd, crop);
3024 fmt->width = crop->width;
3025 fmt->height = crop->height;
3031 sensor->pa_src = *crop;
3427 /* We have a scaler or digital crop
[all...]

Completed in 435 milliseconds

123456