/linux-4.1.27/drivers/media/platform/omap/ |
D | omap_voutlib.c | 44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) in omap_vout_default_crop() argument 46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop() 48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop() 50 crop->width &= ~1; in omap_vout_default_crop() 51 crop->height &= ~1; in omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() 53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop() 111 int omap_vout_new_window(struct v4l2_rect *crop, in omap_vout_new_window() argument 129 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window() 130 crop->height = win->w.height * 2; in omap_vout_new_window() [all …]
|
D | omap_vout_vrfb.c | 297 struct v4l2_rect *crop = &vout->crop; in omap_vout_calculate_vrfb_offset() local 329 ctop = (pix->height - crop->height) - crop->top; in omap_vout_calculate_vrfb_offset() 330 cleft = (pix->width - crop->width) - crop->left; in omap_vout_calculate_vrfb_offset() 342 temp_ps * cleft + crop->top * temp_ps; in omap_vout_calculate_vrfb_offset() 345 cleft + crop->top * temp_ps + (line_length * in omap_vout_calculate_vrfb_offset() 346 ((crop->width / (vr_ps)) - 1) * ps); in omap_vout_calculate_vrfb_offset() 361 (crop->height - 1) * ps); in omap_vout_calculate_vrfb_offset() 370 temp_ps * crop->left + ctop * ps; in omap_vout_calculate_vrfb_offset() 373 temp_ps * crop->left + ctop * ps + in omap_vout_calculate_vrfb_offset() 374 (line_length * ((crop->width / vr_ps) - 1) * in omap_vout_calculate_vrfb_offset() [all …]
|
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,
|
D | omap_vout.c | 291 struct v4l2_rect *crop = &vout->crop; in omap_vout_calculate_offset() local 314 crop->top + crop->left * ps; in omap_vout_calculate_offset() 390 cropheight = vout->crop.width; in omapvid_setup_overlay() 391 cropwidth = vout->crop.height; in omapvid_setup_overlay() 394 cropheight = vout->crop.height; in omapvid_setup_overlay() 395 cropwidth = vout->crop.width; in omapvid_setup_overlay() 1176 omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); in vidioc_s_fmt_vid_out() 1222 ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); in vidioc_s_fmt_vid_overlay() 1280 static int vidioc_g_crop(struct file *file, void *fh, struct v4l2_crop *crop) in vidioc_g_crop() argument 1284 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in vidioc_g_crop() [all …]
|
D | omap_voutdef.h | 145 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
D | vsp1_rwpf.c | 82 return &rwpf->crop; in vsp1_rwpf_get_crop() 104 struct v4l2_rect *crop; in vsp1_rwpf_set_format() local 134 crop = vsp1_rwpf_get_crop(rwpf, cfg, fmt->which); in vsp1_rwpf_set_format() 135 crop->left = 0; in vsp1_rwpf_set_format() 136 crop->top = 0; in vsp1_rwpf_set_format() 137 crop->width = fmt->format.width; in vsp1_rwpf_set_format() 138 crop->height = fmt->format.height; in vsp1_rwpf_set_format() 186 struct v4l2_rect *crop; in vsp1_rwpf_set_selection() local 211 crop = vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_set_selection() 212 *crop = sel->r; in vsp1_rwpf_set_selection() [all …]
|
D | vsp1_rpf.c | 80 const struct v4l2_rect *crop = &rpf->crop; in rpf_s_stream() local 99 (crop->width << VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT) | in rpf_s_stream() 100 (crop->height << VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT)); in rpf_s_stream() 102 (crop->width << VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT) | in rpf_s_stream() 103 (crop->height << VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT)); in rpf_s_stream() 105 rpf->offsets[0] = crop->top * format->plane_fmt[0].bytesperline in rpf_s_stream() 106 + crop->left * fmtinfo->bpp[0] / 8; in rpf_s_stream() 114 rpf->offsets[1] = crop->top * format->plane_fmt[1].bytesperline in rpf_s_stream() 115 + crop->left * fmtinfo->bpp[1] / 8; in rpf_s_stream()
|
D | vsp1_wpf.c | 79 const struct v4l2_rect *crop = &wpf->crop; in wpf_s_stream() local 125 (crop->left << VI6_WPF_SZCLIP_OFST_SHIFT) | in wpf_s_stream() 126 (crop->width << VI6_WPF_SZCLIP_SIZE_SHIFT)); in wpf_s_stream() 128 (crop->top << VI6_WPF_SZCLIP_OFST_SHIFT) | in wpf_s_stream() 129 (crop->height << VI6_WPF_SZCLIP_SIZE_SHIFT)); in wpf_s_stream()
|
D | vsp1_rwpf.h | 39 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 142 return &res->crop.request; in __resizer_get_crop() 508 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate() 510 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); in omap3isp_resizer_max_rate() 589 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) in resizer_adjust_bandwidth() 590 * res->crop.active.height; in resizer_adjust_bandwidth() 927 res->crop_offset = (res->crop.active.top * input->width + in resizer_set_crop_params() 928 res->crop.active.left) * 2; in resizer_set_crop_params() 947 resizer_set_start(res, res->crop.active.left * 2, in resizer_set_crop_params() 948 res->crop.active.top); in resizer_set_crop_params() 955 resizer_set_input_size(res, res->crop.active.width, in resizer_set_crop_params() [all …]
|
D | ispccdc.c | 1121 const struct v4l2_rect *crop; in ccdc_configure() local 1230 crop = &ccdc->crop; in ccdc_configure() 1238 sph = crop->left * 2; in ccdc_configure() 1239 nph = crop->width * 2 - 1; in ccdc_configure() 1241 sph = crop->left; in ccdc_configure() 1242 nph = crop->width - 1; in ccdc_configure() 1248 isp_reg_writel(isp, (crop->top << ISPCCDC_VERT_START_SLV0_SHIFT) | in ccdc_configure() 1249 (crop->top << ISPCCDC_VERT_START_SLV1_SHIFT), in ccdc_configure() 1251 isp_reg_writel(isp, (crop->height - 1) in ccdc_configure() 1954 return &ccdc->crop; in __ccdc_get_crop() [all …]
|
D | isppreview.c | 1073 unsigned int sph = prev->crop.left; in preview_config_input_size() 1074 unsigned int eph = prev->crop.left + prev->crop.width - 1; in preview_config_input_size() 1075 unsigned int slv = prev->crop.top; in preview_config_input_size() 1076 unsigned int elv = prev->crop.top + prev->crop.height - 1; in preview_config_input_size() 1705 return &prev->crop; in __preview_get_crop() 1744 struct v4l2_rect *crop; in preview_try_format() local 1798 crop = __preview_get_crop(prev, cfg, which); in preview_try_format() 1799 fmt->width = crop->width; in preview_try_format() 1800 fmt->height = crop->height; in preview_try_format() 1823 struct v4l2_rect *crop) in preview_try_crop() argument [all …]
|
D | ispresizer.h | 116 } crop; member
|
D | ispvideo.c | 733 isp_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop) in isp_video_get_crop() argument 748 ret = v4l2_subdev_call(subdev, video, g_crop, crop); in isp_video_get_crop() 758 crop->c.left = 0; in isp_video_get_crop() 759 crop->c.top = 0; in isp_video_get_crop() 760 crop->c.width = format.format.width; in isp_video_get_crop() 761 crop->c.height = format.format.height; in isp_video_get_crop() 767 isp_video_set_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in isp_video_set_crop() argument 778 ret = v4l2_subdev_call(subdev, video, s_crop, crop); in isp_video_set_crop()
|
D | isppreview.h | 127 struct v4l2_rect crop; member
|
D | ispccdc.h | 134 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 233 frame->crop.width = width; in gsc_set_frame_size() 234 frame->crop.height = height; in gsc_set_frame_size() 235 frame->crop.left = 0; in gsc_set_frame_size() 236 frame->crop.top = 0; in gsc_set_frame_size() 291 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info() 293 s_frame->crop.width -= remainder; in gsc_check_src_scale_info() 294 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); in gsc_check_src_scale_info() 296 s_frame->crop.width + remainder, s_frame->crop.width); in gsc_check_src_scale_info() 299 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info() 301 s_frame->crop.height -= remainder; in gsc_check_src_scale_info() [all …]
|
D | gsc-regs.c | 131 cfg = GSC_SRCIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_in_size() 132 cfg |= GSC_SRCIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_in_size() 141 cfg = GSC_CROPPED_WIDTH(frame->crop.width); in gsc_hw_set_in_size() 142 cfg |= GSC_CROPPED_HEIGHT(frame->crop.height); in gsc_hw_set_in_size() 245 cfg = GSC_DSTIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_out_size() 246 cfg |= GSC_DSTIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_out_size() 257 cfg = GSC_SCALED_WIDTH(frame->crop.height); in gsc_hw_set_out_size() 258 cfg |= GSC_SCALED_HEIGHT(frame->crop.width); in gsc_hw_set_out_size() 260 cfg = GSC_SCALED_WIDTH(frame->crop.width); in gsc_hw_set_out_size() 261 cfg |= GSC_SCALED_HEIGHT(frame->crop.height); in gsc_hw_set_out_size()
|
D | gsc-m2m.c | 474 s->r.left = frame->crop.left; in gsc_m2m_g_selection() 475 s->r.top = frame->crop.top; in gsc_m2m_g_selection() 476 s->r.width = frame->crop.width; in gsc_m2m_g_selection() 477 s->r.height = frame->crop.height; in gsc_m2m_g_selection() 535 cr.c.height, ctx->d_frame.crop.width, in gsc_m2m_s_selection() 536 ctx->d_frame.crop.height, in gsc_m2m_s_selection() 540 ctx->s_frame.crop.width, in gsc_m2m_s_selection() 541 ctx->s_frame.crop.height, cr.c.width, in gsc_m2m_s_selection() 552 frame->crop = cr.c; in gsc_m2m_s_selection()
|
D | gsc-core.h | 203 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 142 static int check_crop(struct v4l2_subdev *sd, struct v4l2_subdev_crop *crop) in check_crop() argument 144 if (crop->which != V4L2_SUBDEV_FORMAT_TRY && in check_crop() 145 crop->which != V4L2_SUBDEV_FORMAT_ACTIVE) in check_crop() 148 if (crop->pad >= sd->entity.num_pads) in check_crop() 278 struct v4l2_subdev_crop *crop = arg; in subdev_do_ioctl() local 281 rval = check_crop(sd, crop); in subdev_do_ioctl() 286 sel.which = crop->which; in subdev_do_ioctl() 287 sel.pad = crop->pad; in subdev_do_ioctl() 293 crop->rect = sel.r; in subdev_do_ioctl() 299 struct v4l2_subdev_crop *crop = arg; in subdev_do_ioctl() local [all …]
|
/linux-4.1.27/drivers/media/i2c/ |
D | mt9m032.c | 163 struct v4l2_rect crop; member 196 struct v4l2_rect *crop = &sensor->crop; in mt9m032_update_timing() local 204 row_time = mt9m032_row_time(sensor, crop->width); in mt9m032_update_timing() 208 - crop->height; in mt9m032_update_timing() 214 div_u64((crop->height + MT9M032_VBLANK_MAX) * in mt9m032_update_timing() 219 - crop->height; in mt9m032_update_timing() 234 sensor->crop.width - 1); in mt9m032_update_geom_timing() 237 sensor->crop.height - 1); in mt9m032_update_geom_timing() 240 sensor->crop.left); in mt9m032_update_geom_timing() 243 sensor->crop.top); in mt9m032_update_geom_timing() [all …]
|
D | mt9t001.c | 129 struct v4l2_rect crop; member 268 return &mt9t001->crop; in __mt9t001_get_pad_crop() 281 struct v4l2_rect *crop = &mt9t001->crop; in mt9t001_s_stream() local 298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream() 299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream() 309 ret = mt9t001_write(client, MT9T001_COLUMN_START, crop->left); in mt9t001_s_stream() 313 ret = mt9t001_write(client, MT9T001_ROW_START, crop->top); in mt9t001_s_stream() 317 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); in mt9t001_s_stream() 321 ret = mt9t001_write(client, MT9T001_WINDOW_HEIGHT, crop->height - 1); in mt9t001_s_stream() 791 struct v4l2_rect *crop; in mt9t001_open() local [all …]
|
D | mt9v032.c | 239 struct v4l2_rect crop; member 296 struct v4l2_rect *crop = &mt9v032->crop; in mt9v032_update_hblank() local 302 min_hblank = max_t(int, mt9v032->model->data->min_row_time - crop->width, in mt9v032_update_hblank() 398 return &mt9v032->crop; in __mt9v032_get_pad_crop() 410 struct v4l2_rect *crop = &mt9v032->crop; in mt9v032_s_stream() local 429 ret = regmap_write(map, MT9V032_COLUMN_START, crop->left); in mt9v032_s_stream() 433 ret = regmap_write(map, MT9V032_ROW_START, crop->top); in mt9v032_s_stream() 437 ret = regmap_write(map, MT9V032_WINDOW_WIDTH, crop->width); in mt9v032_s_stream() 441 ret = regmap_write(map, MT9V032_WINDOW_HEIGHT, crop->height); in mt9v032_s_stream() 814 struct v4l2_rect *crop; in mt9v032_open() local [all …]
|
D | mt9p031.c | 125 struct v4l2_rect crop; /* Sensor window */ member 387 const struct v4l2_rect *crop = &mt9p031->crop; in mt9p031_set_params() local 402 ret = mt9p031_write(client, MT9P031_COLUMN_START, crop->left); in mt9p031_set_params() 405 ret = mt9p031_write(client, MT9P031_ROW_START, crop->top); in mt9p031_set_params() 408 ret = mt9p031_write(client, MT9P031_WINDOW_WIDTH, crop->width - 1); in mt9p031_set_params() 411 ret = mt9p031_write(client, MT9P031_WINDOW_HEIGHT, crop->height - 1); in mt9p031_set_params() 418 xskip = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9p031_set_params() 419 yskip = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9p031_set_params() 529 return &mt9p031->crop; in __mt9p031_get_pad_crop() 947 struct v4l2_rect *crop; in mt9p031_open() local [all …]
|
D | s5k6aa.c | 1117 struct v4l2_rect *crop; in s5k6aa_set_fmt() local 1125 crop = v4l2_subdev_get_try_crop(sd, cfg, 0); in s5k6aa_set_fmt() 1131 crop = &s5k6aa->ccd_rect; in s5k6aa_set_fmt() 1147 crop->width = clamp_t(unsigned int, crop->width, mf->width, in s5k6aa_set_fmt() 1149 crop->height = clamp_t(unsigned int, crop->height, mf->height, in s5k6aa_set_fmt() 1151 crop->left = clamp_t(unsigned int, crop->left, 0, in s5k6aa_set_fmt() 1152 S5K6AA_WIN_WIDTH_MAX - crop->width); in s5k6aa_set_fmt() 1153 crop->top = clamp_t(unsigned int, crop->top, 0, in s5k6aa_set_fmt() 1154 S5K6AA_WIN_HEIGHT_MAX - crop->height); in s5k6aa_set_fmt() 1428 struct v4l2_rect *crop = v4l2_subdev_get_try_crop(sd, fh->pad, 0); in s5k6aa_open() local [all …]
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 386 const struct v4l2_rect * crop) in bttv_calc_geo() argument 392 if ((crop->left == tvnorm->cropcap.defrect.left in bttv_calc_geo() 393 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo() 394 && crop->width == tvnorm->cropcap.defrect.width in bttv_calc_geo() 395 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo() 405 c_width = min((unsigned int) crop->width, width * 16); in bttv_calc_geo() 406 c_height = min((unsigned int) crop->height, height * 16); in bttv_calc_geo() 411 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; in bttv_calc_geo() 414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo() [all …]
|
D | bttv-driver.c | 704 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock() 755 u8 crop; in disclaim_video_lines() local 765 crop = btread(BT848_E_CROP) | 0xc0; in disclaim_video_lines() 766 btwrite(crop, BT848_E_CROP); in disclaim_video_lines() 768 btwrite(crop, BT848_O_CROP); in disclaim_video_lines() 1159 bttv_crop_reset(&btv->crop[0], norm); in set_tvnorm() 1160 btv->crop[1] = btv->crop[0]; /* current = default */ in set_tvnorm() 1595 c = btv->crop[!!fh->do_crop]; in bttv_prepare_buffer() 1627 buf->crop.top != c.rect.top || in bttv_prepare_buffer() 1628 buf->crop.left != c.rect.left || in bttv_prepare_buffer() [all …]
|
D | bttvp.h | 151 u8 vtc,crop,comb; member 168 struct v4l2_rect crop; member 497 struct bttv_crop crop[2]; member
|
/linux-4.1.27/Documentation/video4linux/ |
D | sh_mobile_ceu_camera.txt | 70 2. Calculate "effective" input crop (sensor subwindow) - CEU crop scaled back at 95 8. Calculate new CEU crop - apply sensor scales to previously calculated 96 "effective" crop: 101 9. Use CEU cropping to crop to the new window: 126 to 2 : 2', target crop 5 : 5', current output format 6' - 6. 136 6. Calculate and apply host crop: 6 - 7 = (5 - 2) * (6' - 6) / (5' - 5)
|
D | vivid.txt | 29 - Supports crop/compose/scale in any combination for both input and output 181 ccs_cap_mode: specify the allowed video capture crop/compose/scaling combination 190 bit 0: Enable crop support. Cropping will take only part of the 204 ccs_out_mode: specify the allowed video output crop/compose/scaling combination 213 bit 0: Enable crop support. Cropping will take only part of the 242 controls that select crop, compose and scale behavior are also 244 will default to enabling crop, compose and scaling. 667 Enable Capture Cropping: enables crop support. This control is only present if 697 Enable Output Cropping: enables crop support. This control is only present if 981 If the combination of crop, compose and scaling allows it, then it is possible [all …]
|
D | fimc.txt | 113 the sub-devices (format, crop), to avoid resetting the subdevs' configuration
|
/linux-4.1.27/drivers/media/platform/vivid/ |
D | vivid-vid-out.c | 436 struct v4l2_rect *crop = &dev->crop_out; in vivid_s_fmt_vid_out() local 473 rect_map_inside(crop, &r); in vivid_s_fmt_vid_out() 475 *crop = r; in vivid_s_fmt_vid_out() 494 crop->width / MAX_ZOOM, in vivid_s_fmt_vid_out() 495 factor * crop->height / MAX_ZOOM in vivid_s_fmt_vid_out() 499 crop->width * MAX_ZOOM, in vivid_s_fmt_vid_out() 500 factor * crop->height * MAX_ZOOM in vivid_s_fmt_vid_out() 508 rect_set_size_to(crop, &r); in vivid_s_fmt_vid_out() 513 rect_map_inside(crop, &r); in vivid_s_fmt_vid_out() 520 crop->top *= factor; in vivid_s_fmt_vid_out() [all …]
|
D | vivid-tpg.c | 102 tpg->crop.width = tpg->compose.width = w; in tpg_init() 103 tpg->crop.height = tpg->compose.height = h; in tpg_init() 368 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, in tpg_s_crop_compose() argument 371 tpg->crop = *crop; in tpg_s_crop_compose() 374 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose() 395 tpg->crop.top = tpg->crop.left = 0; in tpg_reset_source() 396 tpg->crop.width = width; in tpg_reset_source() 397 tpg->crop.height = height; in tpg_reset_source() 1551 return tpg->crop.top + src_y * 2; in tpg_calc_frameline() 1553 return tpg->crop.top + src_y * 2 + 1; in tpg_calc_frameline() [all …]
|
D | vivid-vid-cap.c | 629 struct v4l2_rect *crop = &dev->crop_cap; in vivid_s_fmt_vid_cap() local 677 rect_set_min_size(crop, &min_r); in vivid_s_fmt_vid_cap() 678 rect_set_max_size(crop, &max_r); in vivid_s_fmt_vid_cap() 679 rect_map_inside(crop, &dev->crop_bounds_cap); in vivid_s_fmt_vid_cap() 692 rect_set_min_size(crop, &min_r); in vivid_s_fmt_vid_cap() 693 rect_set_max_size(crop, &max_r); in vivid_s_fmt_vid_cap() 694 rect_map_inside(crop, &dev->crop_bounds_cap); in vivid_s_fmt_vid_cap() 698 rect_set_size_to(crop, &r); in vivid_s_fmt_vid_cap() 699 rect_map_inside(crop, &dev->crop_bounds_cap); in vivid_s_fmt_vid_cap() 700 r = *crop; in vivid_s_fmt_vid_cap() [all …]
|
D | vivid-tpg.h | 106 struct v4l2_rect crop; member 207 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop,
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 735 struct v4l2_rect *crop = &camif->camif_crop; in __camif_video_try_format() local 751 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format() 757 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); in __camif_video_try_format() 758 sc_vrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->height) - 1)); in __camif_video_try_format() 760 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax); in __camif_video_try_format() 762 hmin = max_t(u32, 8, crop->height / sc_vrmax); in __camif_video_try_format() 1289 struct v4l2_rect *crop = &camif->camif_crop; in __camif_subdev_try_format() local 1290 v4l_bound_align_image(&mf->width, 8, crop->width, in __camif_subdev_try_format() 1292 &mf->height, 8, crop->height, in __camif_subdev_try_format() 1305 struct v4l2_rect *crop = &camif->camif_crop; in s3c_camif_subdev_set_fmt() local [all …]
|
D | camif-regs.c | 134 struct v4l2_rect *crop = &camif->camif_crop; in camif_hw_set_camera_crop() local 141 cfg |= (crop->left << 16) | crop->top; in camif_hw_set_camera_crop() 142 if (crop->left != 0 || crop->top != 0) in camif_hw_set_camera_crop() 147 hoff2 = mf->width - crop->width - crop->left; in camif_hw_set_camera_crop() 148 voff2 = mf->height - crop->height - crop->top; in camif_hw_set_camera_crop()
|
/linux-4.1.27/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 43 struct v4l2_crop crop; in soc_camera_client_g_rect() local 47 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in soc_camera_client_g_rect() 49 ret = v4l2_subdev_call(sd, video, g_crop, &crop); in soc_camera_client_g_rect() 51 *rect = crop.c; in soc_camera_client_g_rect() 97 struct v4l2_crop *crop, struct v4l2_crop *cam_crop, in soc_camera_client_s_crop() argument 100 struct v4l2_rect *rect = &crop->c, *cam_rect = &cam_crop->c; in soc_camera_client_s_crop() 106 v4l2_subdev_call(sd, video, s_crop, crop); in soc_camera_client_s_crop()
|
D | soc_scale_crop.h | 35 struct v4l2_crop *crop, struct v4l2_crop *cam_crop,
|
D | omap1_camera.c | 1216 const struct v4l2_crop *crop) in omap1_cam_set_crop() argument 1218 const struct v4l2_rect *rect = &crop->c; in omap1_cam_set_crop() 1227 ret = subdev_call_with_sense(pcdev, dev, icd, sd, s_crop, crop); in omap1_cam_set_crop()
|
/linux-4.1.27/drivers/media/platform/davinci/ |
D | vpfe_capture.c | 343 ccdc_dev->hw_ops.set_image_window(&vpfe_dev->crop); in vpfe_config_ccdc_image_format() 404 vpfe_dev->crop.top = 0; in vpfe_config_image_format() 405 vpfe_dev->crop.left = 0; in vpfe_config_image_format() 406 vpfe_dev->crop.width = vpfe_dev->std_info.active_pixels; in vpfe_config_image_format() 407 vpfe_dev->crop.height = vpfe_dev->std_info.active_lines; in vpfe_config_image_format() 408 pix->width = vpfe_dev->crop.width; in vpfe_config_image_format() 409 pix->height = vpfe_dev->crop.height; in vpfe_config_image_format() 1604 struct v4l2_cropcap *crop) in vpfe_cropcap() argument 1613 memset(crop, 0, sizeof(struct v4l2_cropcap)); in vpfe_cropcap() 1614 crop->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in vpfe_cropcap() [all …]
|
D | vpbe_display.c | 654 const struct v4l2_crop *crop) in vpbe_display_s_crop() argument 661 struct v4l2_rect rect = crop->c; in vpbe_display_s_crop() 667 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) { in vpbe_display_s_crop() 722 struct v4l2_crop *crop) in vpbe_display_g_crop() argument 728 struct v4l2_rect *rect = &crop->c; in vpbe_display_g_crop() 734 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) { in vpbe_display_g_crop()
|
/linux-4.1.27/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 1062 vpfe_ccdc_set_image_window(&vpfe->ccdc, &vpfe->crop, vpfe->bpp); in vpfe_config_ccdc_image_format() 1128 vpfe->crop.top = vpfe->crop.left = 0; in vpfe_config_image_format() 1129 vpfe->crop.width = vpfe->std_info.active_pixels; in vpfe_config_image_format() 1130 vpfe->crop.height = vpfe->std_info.active_lines; in vpfe_config_image_format() 1131 pix->width = vpfe->crop.width; in vpfe_config_image_format() 1132 pix->height = vpfe->crop.height; in vpfe_config_image_format() 1146 vpfe->crop.width = pix->width; in vpfe_config_image_format() 1147 vpfe->crop.height = pix->height; in vpfe_config_image_format() 1611 vpfe->crop.width = fmt->fmt.pix.width; in vpfe_s_fmt() 1612 vpfe->crop.height = fmt->fmt.pix.height; in vpfe_s_fmt() [all …]
|
D | am437x-vpfe.h | 263 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 710 static int pvr2_g_crop(struct file *file, void *priv, struct v4l2_crop *crop) in pvr2_g_crop() argument 717 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in pvr2_g_crop() 723 crop->c.left = val; in pvr2_g_crop() 728 crop->c.top = val; in pvr2_g_crop() 733 crop->c.width = val; in pvr2_g_crop() 738 crop->c.height = val; in pvr2_g_crop() 742 static int pvr2_s_crop(struct file *file, void *priv, const struct v4l2_crop *crop) in pvr2_s_crop() argument 748 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in pvr2_s_crop() 752 crop->c.left); in pvr2_s_crop() 757 crop->c.top); in pvr2_s_crop() [all …]
|
/linux-4.1.27/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 313 max = sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height in __smiapp_update_exposure_limits() 462 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height in smiapp_set_ctrl() 468 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width in smiapp_set_ctrl() 883 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height); in smiapp_update_blanking() 885 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height; in smiapp_update_blanking() 891 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width, in smiapp_update_blanking() 894 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width; in smiapp_update_blanking() 908 sensor->src->crop[SMIAPP_PAD_SRC].width, in smiapp_update_mode() 909 sensor->src->crop[SMIAPP_PAD_SRC].height); in smiapp_update_mode() 950 ((sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width in smiapp_update_mode() [all …]
|
D | smiapp.h | 167 struct v4l2_rect crop[2]; member
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
D | iss_video.c | 661 iss_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop) in iss_video_get_crop() argument 676 ret = v4l2_subdev_call(subdev, video, g_crop, crop); in iss_video_get_crop() 686 crop->c.left = 0; in iss_video_get_crop() 687 crop->c.top = 0; in iss_video_get_crop() 688 crop->c.width = format.format.width; in iss_video_get_crop() 689 crop->c.height = format.format.height; in iss_video_get_crop() 695 iss_video_set_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in iss_video_set_crop() argument 706 ret = v4l2_subdev_call(subdev, video, s_crop, crop); in iss_video_set_crop()
|
/linux-4.1.27/drivers/media/pci/zoran/ |
D | zoran_driver.c | 2546 static int zoran_g_crop(struct file *file, void *__fh, struct v4l2_crop *crop) in zoran_g_crop() argument 2550 int type = crop->type, res = 0; in zoran_g_crop() 2552 memset(crop, 0, sizeof(*crop)); in zoran_g_crop() 2553 crop->type = type; in zoran_g_crop() 2557 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_g_crop() 2558 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_g_crop() 2568 crop->c.top = fh->jpg_settings.img_y; in zoran_g_crop() 2569 crop->c.left = fh->jpg_settings.img_x; in zoran_g_crop() 2570 crop->c.width = fh->jpg_settings.img_width; in zoran_g_crop() 2571 crop->c.height = fh->jpg_settings.img_height; in zoran_g_crop() [all …]
|
/linux-4.1.27/include/media/davinci/ |
D | vpfe_capture.h | 152 struct v4l2_rect crop; member
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
D | dm365_isif.h | 188 struct v4l2_rect crop; member
|
D | dm365_isif.c | 197 struct v4l2_rect *win = &isif->crop; in isif_set_image_window() 244 vpfe_isif->crop.left = 0; in isif_config_format() 245 vpfe_isif->crop.top = 0; in isif_config_format() 246 vpfe_isif->crop.width = format.width; in isif_config_format() 247 vpfe_isif->crop.height = format.height; in isif_config_format() 1574 vpfe_isif->crop = sel->r; in isif_pad_set_selection() 1581 memcpy(rect, &vpfe_isif->crop, sizeof(*rect)); in isif_pad_set_selection() 1611 sel->r = vpfe_isif->crop; in isif_pad_get_selection()
|
/linux-4.1.27/include/uapi/drm/ |
D | exynos_drm.h | 187 __u32 crop; member
|
/linux-4.1.27/include/media/ |
D | v4l2-subdev.h | 327 int (*g_crop)(struct v4l2_subdev *sd, struct v4l2_crop *crop); 328 int (*s_crop)(struct v4l2_subdev *sd, const struct v4l2_crop *crop);
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
D | saa7134-video.c | 1604 static int saa7134_g_crop(struct file *file, void *f, struct v4l2_crop *crop) in saa7134_g_crop() argument 1608 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && in saa7134_g_crop() 1609 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) in saa7134_g_crop() 1611 crop->c = dev->crop_current; in saa7134_g_crop() 1615 static int saa7134_s_crop(struct file *file, void *f, const struct v4l2_crop *crop) in saa7134_s_crop() argument 1621 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && in saa7134_s_crop() 1622 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) in saa7134_s_crop() 1630 *c = crop->c; in saa7134_s_crop()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 487 static int fimc_m2m_s_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in fimc_m2m_s_crop() argument 491 struct v4l2_crop cr = *crop; in fimc_m2m_s_crop()
|
/linux-4.1.27/Documentation/console/ |
D | console.txt | 138 The current crop of console drivers should still work correctly, but binding
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 1344 prop_list->crop = 1; in gsc_init_prop_list() 1422 if ((i == EXYNOS_DRM_OPS_SRC) && (pp->crop)) { in gsc_ippdrv_check_property()
|
D | exynos_drm_rotator.c | 482 prop_list->crop = 0; in rotator_init_prop_list()
|
D | exynos_drm_fimc.c | 1275 prop_list->crop = 1; in fimc_init_prop_list() 1353 if ((i == EXYNOS_DRM_OPS_SRC) && (pp->crop)) { in fimc_ippdrv_check_property()
|
/linux-4.1.27/drivers/media/usb/gspca/ |
D | ov519.c | 4120 int qvga, crop; in set_ov_sensor_window() local 4140 crop = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv & 2; in set_ov_sensor_window() 4167 if (crop) { in set_ov_sensor_window()
|
/linux-4.1.27/fs/fuse/ |
D | file.c | 1509 size_t crop = i_size_read(inode); in fuse_flush_writepages() local 1515 fuse_send_writepage(fc, req, crop); in fuse_flush_writepages()
|
/linux-4.1.27/Documentation/security/ |
D | Smack.txt | 314 community. There are also some terms from Linux that are likely to crop up:
|