/linux-master/drivers/media/platform/ti/omap/ |
H A D | omap_voutlib.h | 16 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop); 19 struct v4l2_rect *crop, struct v4l2_window *win, 26 int omap_vout_new_window(struct v4l2_rect *crop, 31 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
|
H A D | omap_voutlib.c | 37 /* Return the default overlay cropping rectangle in crop given the image 44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) 46 crop->width = (pix->width < fbuf->fmt.width) ? 48 crop->height = (pix->height < fbuf->fmt.height) ? 50 crop->width &= ~1; 51 crop->height &= ~1; 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; 53 crop->top = ((pix->height - crop 43 omap_vout_default_crop(struct v4l2_pix_format *pix, struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) argument 115 omap_vout_new_window(struct v4l2_rect *crop, struct v4l2_window *win, struct v4l2_framebuffer *fbuf, struct v4l2_window *new_win) argument 169 omap_vout_new_crop(struct v4l2_pix_format *pix, struct v4l2_rect *crop, struct v4l2_window *win, struct v4l2_framebuffer *fbuf, const struct v4l2_rect *new_crop) argument 285 omap_vout_new_format(struct v4l2_pix_format *pix, struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, struct v4l2_window *win) argument [all...] |
H A D | omap_vout_vrfb.c | 322 struct v4l2_rect *crop = &vout->crop; local 354 ctop = (pix->height - crop->height) - crop->top; 355 cleft = (pix->width - crop->width) - crop->left; 367 temp_ps * cleft + crop->top * temp_ps; 370 cleft + crop->top * temp_ps + (line_length * 371 ((crop->width / (vr_ps)) - 1) * ps); 386 (crop [all...] |
/linux-master/drivers/media/platform/st/sti/delta/ |
H A D | delta-debug.c | 24 s->flags & DELTA_STREAMINFO_FLAG_CROP ? "crop=" : "", 25 s->crop.width, s->crop.height, 26 s->crop.left, s->crop.top, 45 f->flags & DELTA_STREAMINFO_FLAG_CROP ? "crop=" : "", 46 f->crop.width, f->crop.height, 47 f->crop.left, f->crop [all...] |
/linux-master/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_regs.c | 74 config->crop_x = frame->crop.left; 75 config->crop_y = frame->crop.top; 78 config->crop_w = frame->crop.width; 79 config->crop_h = frame->crop.height; 109 config->crop_x = frame->crop.left; 110 config->crop_y = frame->crop.top; 111 config->crop_w = frame->crop.width; 112 config->crop_h = frame->crop.height;
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_hgt.c | 135 struct v4l2_rect *crop; local 142 crop = vsp1_entity_get_pad_selection(entity, entity->state, 151 (crop->left << VI6_HGT_OFFSET_HOFFSET_SHIFT) | 152 (crop->top << VI6_HGT_OFFSET_VOFFSET_SHIFT)); 154 (crop->width << VI6_HGT_SIZE_HSIZE_SHIFT) | 155 (crop->height << VI6_HGT_SIZE_VSIZE_SHIFT)); 167 hratio = crop->width * 2 / compose->width / 3; 168 vratio = crop->height * 2 / compose->height / 3;
|
H A D | vsp1_rpf.c | 295 struct v4l2_rect crop; local 298 * Source size and crop offsets. 300 * The crop offsets correspond to the location of the crop 305 crop = *vsp1_rwpf_get_crop(rpf, rpf->entity.state); 313 * To achieve this, we adjust our crop to provide a 'sub-crop' 318 crop.width = pipe->partition->rpf.width; 319 crop.left += pipe->partition->rpf.left; 323 crop [all...] |
H A D | vsp1_rwpf.c | 105 struct v4l2_rect *crop; local 107 /* Update the sink crop rectangle. */ 108 crop = vsp1_rwpf_get_crop(rwpf, state); 109 crop->left = 0; 110 crop->top = 0; 111 crop->width = fmt->format.width; 112 crop->height = fmt->format.height; 185 struct v4l2_rect *crop; local 206 /* Make sure the crop rectangle is entirely contained in the image. */ 211 * Restrict the crop rectangl [all...] |
H A D | vsp1_hgo.c | 139 struct v4l2_rect *crop; local 143 crop = vsp1_entity_get_pad_selection(entity, entity->state, 152 (crop->left << VI6_HGO_OFFSET_HOFFSET_SHIFT) | 153 (crop->top << VI6_HGO_OFFSET_VOFFSET_SHIFT)); 155 (crop->width << VI6_HGO_SIZE_HSIZE_SHIFT) | 156 (crop->height << VI6_HGO_SIZE_VSIZE_SHIFT)); 164 hratio = crop->width * 2 / compose->width / 3; 165 vratio = crop->height * 2 / compose->height / 3;
|
H A D | vsp1_drm.h | 53 * @inputs: source crop rectangle, destination compose rectangle and z-order 61 struct v4l2_rect crop; member in struct:vsp1_drm::__anon146
|
H A D | vsp1_uif.c | 152 /* The crop rectangle must be inside the input frame. */ 162 /* Store the crop rectangle. */ 199 const struct v4l2_rect *crop; local 206 crop = vsp1_entity_get_pad_selection(entity, entity->state, 209 left = crop->left; 210 width = crop->width; 219 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPYR, crop->top); 221 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZYR, crop->height);
|
/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-byteproc.c | 244 struct v4l2_rect *crop, *compose; local 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, *compos local 332 struct v4l2_rect *crop, *compose; local 401 struct v4l2_rect *compose, *crop; local [all...] |
/linux-master/drivers/staging/media/imx/ |
H A D | imx-media-csi.c | 81 struct v4l2_rect crop; member in struct:csi_priv 709 struct v4l2_rect crop; local 716 crop = priv->crop; 724 crop.width *= incc->cycles; 727 ipu_csi_set_window(priv->csi, &crop); 730 priv->crop.width == 2 * priv->compose.width, 731 priv->crop.height == 2 * priv->compose.height); 1179 return &priv->crop; 1193 struct v4l2_rect *crop, 1192 csi_try_crop(struct csi_priv *priv, struct v4l2_rect *crop, struct v4l2_subdev_state *sd_state, struct v4l2_mbus_framefmt *infmt, struct v4l2_mbus_config *mbus_cfg) argument 1291 struct v4l2_rect *crop; local 1326 struct v4l2_rect *crop; local 1430 csi_try_fmt(struct csi_priv *priv, struct v4l2_mbus_config *mbus_cfg, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *sdformat, struct v4l2_rect *crop, struct v4l2_rect *compose, const struct imx_media_pixfmt **cc) argument 1523 struct v4l2_rect *crop, *compose; local 1589 struct v4l2_rect *crop, *compose; local 1630 csi_set_scale(u32 *compose, u32 crop, u32 flags) argument 1654 struct v4l2_rect *crop, *compose; local [all...] |
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_subdev.c | 251 return &isp_sd->fmt[pad].crop; 276 struct v4l2_rect *crop[ATOMISP_SUBDEV_PADS_NUM], 283 crop[i] = atomisp_subdev_get_rect(sd, sd_state, which, i, 296 struct v4l2_rect *crop[ATOMISP_SUBDEV_PADS_NUM], local 302 isp_get_fmt_rect(sd, sd_state, which, ffmt, crop, comp); 308 /* Only crop target supported on sink pad. */ 358 struct v4l2_rect *crop[ATOMISP_SUBDEV_PADS_NUM], local 365 isp_get_fmt_rect(sd, sd_state, which, ffmt, crop, comp); 379 /* Only crop target supported on sink pad. */ 382 crop[pa 272 isp_get_fmt_rect(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, uint32_t which, struct v4l2_mbus_framefmt **ffmt, struct v4l2_rect *crop[ATOMISP_SUBDEV_PADS_NUM], struct v4l2_rect *comp[ATOMISP_SUBDEV_PADS_NUM]) argument [all...] |
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-common.c | 162 void rkisp1_sd_adjust_crop_rect(struct v4l2_rect *crop, argument 165 v4l2_rect_set_min_size(crop, &rkisp1_sd_min_crop); 166 v4l2_rect_map_inside(crop, bounds); 169 void rkisp1_sd_adjust_crop(struct v4l2_rect *crop, argument 179 rkisp1_sd_adjust_crop_rect(crop, &crop_bounds);
|
/linux-master/drivers/media/platform/amlogic/meson-ge2d/ |
H A D | ge2d.c | 64 struct v4l2_rect crop; member in struct:ge2d_frame 217 FIELD_PREP(GE2D_START, ctx->in.crop.top) | 218 FIELD_PREP(GE2D_END, ctx->in.crop.top + ctx->in.crop.height - 1)); 220 FIELD_PREP(GE2D_START, ctx->in.crop.left) | 221 FIELD_PREP(GE2D_END, ctx->in.crop.left + ctx->in.crop.width - 1)); 223 FIELD_PREP(GE2D_START, ctx->out.crop.top) | 224 FIELD_PREP(GE2D_END, ctx->out.crop.top + ctx->out.crop [all...] |
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispresizer.c | 128 * __resizer_get_crop - helper function for getting resizer crop rectangle 131 * @which : wanted subdev crop rectangle 141 return &res->crop.request; 495 * where the input width and height are the resizer input crop rectangle size. 507 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); 509 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); 588 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) 589 * res->crop.active.height; 625 /* This will handle crop settings in stream off state */ 771 * compute the input crop rectangl 1183 resizer_try_crop(const struct v4l2_mbus_framefmt *sink, const struct v4l2_mbus_framefmt *source, struct v4l2_rect *crop) argument 1384 struct v4l2_rect crop; local 1508 struct v4l2_rect *crop; local [all...] |
/linux-master/drivers/media/i2c/ |
H A D | imx296.c | 510 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...] |
/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-regs.c | 278 dev_dbg(dev, "%d crop:(%d,%d) %ux%u", ctx->id, 283 int mdp_check_scaling_ratio(const struct v4l2_rect *crop, argument 289 crop_w = crop->width; 290 crop_h = crop->height; 319 r1 = frame->crop.c.width * frame->crop.c.height; 436 static void mdp_set_src_crop(struct img_crop *c, struct mdp_crop *crop) argument 438 c->left = crop->c.left 439 + mdp_to_fixed(&c->left_subpix, &crop->left_subpix); 440 c->top = crop [all...] |
/linux-master/drivers/staging/media/starfive/camss/ |
H A D | stf-isp.c | 66 struct v4l2_rect *crop; local 70 crop = v4l2_subdev_state_get_crop(sd_state, STF_ISP_PAD_SRC); 75 stf_isp_settings(isp_dev, crop, fmt->code); 163 /* Propagate to in crop */ 188 struct v4l2_rect *crop) 200 v4l2_rect_set_min_size(crop, &stf_frame_min_crop); 201 v4l2_rect_map_inside(crop, &bounds); 253 struct v4l2_subdev_selection crop = { 0 }; local 262 /* Reset source crop selection */ 263 crop 186 isp_try_crop(struct stf_isp_dev *isp_dev, struct v4l2_subdev_state *state, struct v4l2_rect *crop) argument [all...] |
/linux-master/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | 287 const struct v4l2_rect * crop) 293 if ((crop->left == tvnorm->cropcap.defrect.left 294 && crop->top == tvnorm->cropcap.defrect.top 295 && crop->width == tvnorm->cropcap.defrect.width 296 && crop->height == tvnorm->cropcap.defrect.height 306 c_width = min((unsigned int) crop->width, width * 16); 307 c_height = min((unsigned int) crop->height, height * 16); 312 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; 315 geo->vdelay = crop 281 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) argument 568 unsigned int crop, vdelay; local [all...] |
/linux-master/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-msg-format.h | 34 struct mmal_rect crop; /* Visible region of the frame */ member in struct:mmal_video_format
|
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_wb.h | 21 struct drm_rect crop; member in struct:dpu_hw_wb_cfg
|
/linux-master/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 233 frame->crop.width = width; 234 frame->crop.height = height; 235 frame->crop.left = 0; 236 frame->crop.top = 0; 291 remainder = s_frame->crop.width % (*wratio * walign); 293 s_frame->crop.width -= remainder; 294 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); 296 s_frame->crop.width + remainder, s_frame->crop.width); 299 remainder = s_frame->crop [all...] |
H A D | gsc-regs.c | 127 cfg = GSC_SRCIMG_OFFSET_X(frame->crop.left); 128 cfg |= GSC_SRCIMG_OFFSET_Y(frame->crop.top); 137 cfg = GSC_CROPPED_WIDTH(frame->crop.width); 138 cfg |= GSC_CROPPED_HEIGHT(frame->crop.height); 241 cfg = GSC_DSTIMG_OFFSET_X(frame->crop.left); 242 cfg |= GSC_DSTIMG_OFFSET_Y(frame->crop.top); 253 cfg = GSC_SCALED_WIDTH(frame->crop.height); 254 cfg |= GSC_SCALED_HEIGHT(frame->crop.width); 256 cfg = GSC_SCALED_WIDTH(frame->crop.width); 257 cfg |= GSC_SCALED_HEIGHT(frame->crop [all...] |