/linux-master/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-dma.c | 175 return !(vin->crop.width == vin->format.width && 177 vin->crop.height == vin->format.height && 559 crop_height = vin->crop.height; 569 if (vin->crop.width != vin->compose.width) 570 xs = (4096 * vin->crop.width) / vin->compose.width; 596 vin->crop.width, vin->crop.height, vin->crop.left, 597 vin->crop.top, ys, xs, vin->format.width, vin->format.height, 631 ratio_h = rvin_uds_scale_ratio(vin->crop [all...] |
/linux-master/drivers/media/platform/qcom/camss/ |
H A D | camss-vfe-4-7.c | 855 first = line->crop.left; 856 last = line->crop.left + line->crop.width - 1; 860 first = line->crop.top; 861 last = line->crop.top + line->crop.height - 1; 865 first = line->crop.left / 2; 866 last = line->crop.left / 2 + line->crop.width / 2 - 1; 870 first = line->crop [all...] |
H A D | camss-vfe-4-8.c | 826 first = line->crop.left; 827 last = line->crop.left + line->crop.width - 1; 831 first = line->crop.top; 832 last = line->crop.top + line->crop.height - 1; 836 first = line->crop.left / 2; 837 last = line->crop.left / 2 + line->crop.width / 2 - 1; 841 first = line->crop [all...] |
/linux-master/drivers/media/i2c/ |
H A D | alvium-csi2.c | 1714 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 D | ov6650.c | 478 /* 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 D | st-vgxy61.c | 239 struct v4l2_rect crop; member in struct:vgxy61_mode_info 281 .crop = { 292 .crop = { 303 .crop = { 314 .crop = { 328 .crop = { 339 .crop = { 350 .crop = { 361 .crop = { 372 .crop 1079 const struct v4l2_rect *crop = &sensor->current_mode->crop; local [all...] |
H A D | imx274.c | 555 * @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 D | ov5647.c | 91 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 D | ov5640.c | 378 /* 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...] |
/linux-master/drivers/media/platform/amphion/ |
H A D | venc.c | 242 venc->params.crop.left = 0; 243 venc->params.crop.top = 0; 244 venc->params.crop.width = cur_fmt->width; 245 venc->params.crop.height = cur_fmt->height; 347 s->r = venc->params.crop; 364 rect = &venc->params.crop; 399 venc->params.crop.left = ALIGN(s->r.left, res->step_width); 400 venc->params.crop.top = ALIGN(s->r.top, res->step_height); 401 venc->params.crop.width = ALIGN(s->r.width, res->step_width); 402 venc->params.crop [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_if.c | 103 * @crop : crop information (AP-R, VPU-W) 113 struct v4l2_rect crop; member in struct:vdec_h264_vsi 253 cr->left = inst->vsi->crop.left; 254 cr->top = inst->vsi->crop.top; 255 cr->width = inst->vsi->crop.width; 256 cr->height = inst->vsi->crop.height;
|
H A D | vdec_h264_req_if.c | 61 * @crop : crop information (AP-R, VPU-W) 69 struct v4l2_rect crop; member in struct:vdec_h264_vsi 256 cr->left = inst->vsi_ctx.crop.left; 257 cr->top = inst->vsi_ctx.crop.top; 258 cr->width = inst->vsi_ctx.crop.width; 259 cr->height = inst->vsi_ctx.crop.height;
|
/linux-master/drivers/staging/vc04_services/bcm2835-camera/ |
H A D | bcm2835-camera.c | 1028 preview_port->es.video.crop.x = 0; 1029 preview_port->es.video.crop.y = 0; 1030 preview_port->es.video.crop.width = f->fmt.pix.width; 1031 preview_port->es.video.crop.height = f->fmt.pix.height; 1079 port->es.video.crop.x = 0; 1080 port->es.video.crop.y = 0; 1081 port->es.video.crop.width = f->fmt.pix.width; 1082 port->es.video.crop.height = f->fmt.pix.height; 1220 camera_port->es.video.crop.x = 0; 1221 camera_port->es.video.crop [all...] |
/linux-master/drivers/media/platform/nxp/dw100/ |
H A D | dw100.c | 83 struct v4l2_rect crop; member in struct:dw100_q_data 628 ctx->q_data[DW100_QUEUE_SRC].crop.top = 0; 629 ctx->q_data[DW100_QUEUE_SRC].crop.left = 0; 630 ctx->q_data[DW100_QUEUE_SRC].crop.width = DW100_DEF_W; 631 ctx->q_data[DW100_QUEUE_SRC].crop.height = DW100_DEF_H; 823 q_data->crop.top = 0; 824 q_data->crop.left = 0; 825 q_data->crop.width = f->fmt.pix_mp.width; 826 q_data->crop.height = f->fmt.pix_mp.height; 939 sel->r.top = src_q_data->crop [all...] |
/linux-master/drivers/media/platform/rockchip/rga/ |
H A D | rga.c | 347 .crop.left = 0, 348 .crop.top = 0, 349 .crop.width = DEFAULT_WIDTH, 350 .crop.height = DEFAULT_HEIGHT, 535 /* Reset crop settings */ 536 frm->crop.left = 0; 537 frm->crop.top = 0; 538 frm->crop.width = frm->width; 539 frm->crop.height = frm->height; 596 s->r = f->crop; [all...] |
H A D | rga.h | 33 struct v4l2_rect crop; member in struct:rga_frame
|
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | vdec.c | 378 inst->crop.top = 0; 379 inst->crop.left = 0; 380 inst->crop.width = inst->width; 381 inst->crop.height = inst->height; 426 s->r = inst->crop; 1483 * Some versions of the firmware do not report crop information for 1484 * all codecs. For these cases, set the crop to the coded resolution. 1487 inst->crop.left = ev_data->input_crop.left; 1488 inst->crop.top = ev_data->input_crop.top; 1489 inst->crop [all...] |
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/ |
H A D | dma_global.h | 84 #define DMA_PACK_CROP_ELEMS(elems, crop) ((elems) | DMA_PACK_LEFT_CROPPING(crop)) 242 u8 crop, elems; member in struct:dma_port_config
|
/linux-master/drivers/media/platform/ti/omap/ |
H A D | omap_voutdef.h | 147 struct v4l2_rect crop; member in struct:omap_vout_device
|
/linux-master/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp.h | 65 * @crop: crop area 76 struct v4l2_rect crop; member in struct:bdisp_frame
|
/linux-master/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_core.h | 94 * @crop: cropped(source)/scaled(destination) size 104 struct v4l2_rect crop; member in struct:mtk_mdp_frame
|
/linux-master/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-m2m.c | 469 s->r.left = frame->crop.left; 470 s->r.top = frame->crop.top; 471 s->r.width = frame->crop.width; 472 s->r.height = frame->crop.height; 527 sel.r.height, ctx->d_frame.crop.width, 528 ctx->d_frame.crop.height, 532 ctx->s_frame.crop.width, 533 ctx->s_frame.crop.height, sel.r.width, 544 frame->crop = sel.r;
|
/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mdp_sm_mt8183.h | 27 struct img_crop crop; member in struct:img_comp_frame_8183
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_drm.c | 127 const struct v4l2_rect *crop; local 134 crop = &vsp1->drm->inputs[rpf->entity.index].crop; 137 format.format.width = crop->width + crop->left; 138 format.format.height = crop->height + crop->top; 154 sel.r = *crop; 791 * @cfg.mem and composed using the @cfg.src crop rectangle and the @cfg.dst 800 * or simply for images that extend beyond the crop rectangl [all...] |
/linux-master/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.h | 92 struct v4l2_rect crop; member in struct:mxc_jpeg_q_data
|