/linux-4.4.14/drivers/media/pci/bt8xx/ |
H A D | bttv-vbi.c | 192 if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top) vbi_buffer_prepare() 193 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; vbi_buffer_prepare() 259 max_end = (tvnorm->cropcap.bounds.top try_fmt() 260 + tvnorm->cropcap.bounds.height) >> 1; try_fmt() 395 max_end = (tvnorm->cropcap.bounds.top bttv_g_fmt_vbi_cap() 396 + tvnorm->cropcap.bounds.height) >> 1; bttv_g_fmt_vbi_cap() 442 real_count = ((tvnorm->cropcap.defrect.top >> 1) bttv_vbi_fmt_reset()
|
H A D | bttvp.h | 104 is determined by cropcap.bounds. */ 109 struct v4l2_cropcap cropcap; member in struct:bttv_tvnorm 204 /* A cropping rectangle in struct bttv_tvnorm.cropcap units. */ 495 cropping parameters in bttv_tvnorm.cropcap units. Protected 500 bttv_tvnorm.cropcap line units. Set by check_alloc_btres()
|
H A D | bttv-driver.c | 265 extraheight Added to sheight for cropcap.bounds.height only 270 .cropcap.bounds.left = minhdelayx1, \ 273 .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \ 275 .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \ 276 .cropcap.bounds.height = (sheight) + (extraheight) + (vdelay) - \ 278 .cropcap.defrect.left = hdelayx1, \ 279 .cropcap.defrect.top = (videostart0) * 2, \ 280 .cropcap.defrect.width = swidth, \ 281 .cropcap.defrect.height = sheight, \ 282 .cropcap.pixelaspect.numerator = totalwidth, \ 283 .cropcap.pixelaspect.denominator = sqwidth, 307 The last line is determined by cropcap.bounds. */ 312 cropcap.defrect is used for image width 758 btv->crop_start = tvnorm->cropcap.bounds.top disclaim_video_lines() 759 + tvnorm->cropcap.bounds.height; disclaim_video_lines() 1141 c->rect = bttv_tvnorms[norm].cropcap.defrect; bttv_crop_reset() 1157 if (memcmp(&bttv_tvnorms[btv->tvnorm].cropcap, &tvnorm->cropcap, set_tvnorm() 1158 sizeof (tvnorm->cropcap))) { set_tvnorm() 1163 btv->crop_start = tvnorm->cropcap.bounds.top set_tvnorm() 1164 + tvnorm->cropcap.bounds.height; set_tvnorm() 1588 if (btv->vbi_end > bttv_tvnorms[norm].cropcap.defrect.top) { bttv_prepare_buffer() 1592 c.rect = bttv_tvnorms[norm].cropcap.defrect; bttv_prepare_buffer() 2013 b = &bttv_tvnorms[btv->tvnorm].cropcap.bounds; limit_scaled_size_lock() 2027 by the V4L2 spec, hence cropcap.bounds are our limit. */ limit_scaled_size_lock() 2820 *cap = bttv_tvnorms[btv->tvnorm].cropcap; bttv_cropcap() 2868 b = &bttv_tvnorms[btv->tvnorm].cropcap.bounds; bttv_s_crop()
|
H A D | bttv-risc.c | 392 if ((crop->left == tvnorm->cropcap.defrect.left bttv_calc_geo() 393 && crop->top == tvnorm->cropcap.defrect.top bttv_calc_geo() 394 && crop->width == tvnorm->cropcap.defrect.width bttv_calc_geo() 395 && crop->height == tvnorm->cropcap.defrect.height bttv_calc_geo() 414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; bttv_calc_geo()
|
/linux-4.4.14/drivers/media/platform/davinci/ |
H A D | vpbe.c | 102 * @cropcap - cropcap is a ptr to struct v4l2_cropcap 108 struct v4l2_cropcap *cropcap) vpbe_g_cropcap() 110 if (NULL == cropcap) vpbe_g_cropcap() 112 cropcap->bounds.left = 0; vpbe_g_cropcap() 113 cropcap->bounds.top = 0; vpbe_g_cropcap() 114 cropcap->bounds.width = vpbe_dev->current_timings.xres; vpbe_g_cropcap() 115 cropcap->bounds.height = vpbe_dev->current_timings.yres; vpbe_g_cropcap() 116 cropcap->defrect = cropcap->bounds; vpbe_g_cropcap() 107 vpbe_g_cropcap(struct vpbe_device *vpbe_dev, struct v4l2_cropcap *cropcap) vpbe_g_cropcap() argument
|
H A D | vpbe_display.c | 750 struct v4l2_cropcap *cropcap) vpbe_display_cropcap() 757 cropcap->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; vpbe_display_cropcap() 758 cropcap->bounds.left = 0; vpbe_display_cropcap() 759 cropcap->bounds.top = 0; vpbe_display_cropcap() 760 cropcap->bounds.width = vpbe_dev->current_timings.xres; vpbe_display_cropcap() 761 cropcap->bounds.height = vpbe_dev->current_timings.yres; vpbe_display_cropcap() 762 cropcap->pixelaspect = vpbe_dev->current_timings.aspect; vpbe_display_cropcap() 763 cropcap->defrect = cropcap->bounds; vpbe_display_cropcap() 749 vpbe_display_cropcap(struct file *file, void *priv, struct v4l2_cropcap *cropcap) vpbe_display_cropcap() argument
|
/linux-4.4.14/drivers/media/platform/soc_camera/ |
H A D | soc_scale_crop.c | 58 ret = v4l2_subdev_call(sd, video, cropcap, &cap); soc_camera_client_g_rect() 113 * be within camera cropcap bounds soc_camera_client_s_crop() 130 ret = v4l2_subdev_call(sd, video, cropcap, &cap); soc_camera_client_s_crop() 248 ret = v4l2_subdev_call(sd, video, cropcap, &cap); client_set_fmt()
|
H A D | soc_camera_platform.c | 123 .cropcap = soc_camera_platform_cropcap,
|
H A D | soc_camera.c | 1034 return ici->ops->cropcap(icd, a); soc_camera_cropcap() 1885 return v4l2_subdev_call(sd, video, cropcap, a); default_cropcap() 1972 if (!ici->ops->cropcap) soc_camera_host_register() 1973 ici->ops->cropcap = default_cropcap; soc_camera_host_register()
|
H A D | mx3_camera.c | 801 * default g_crop and cropcap from soc_camera.c
|
/linux-4.4.14/drivers/media/pci/zoran/ |
H A D | zoran_driver.c | 2369 struct v4l2_cropcap *cropcap) zoran_cropcap() 2373 int type = cropcap->type, res = 0; zoran_cropcap() 2375 memset(cropcap, 0, sizeof(*cropcap)); zoran_cropcap() 2376 cropcap->type = type; zoran_cropcap() 2378 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && zoran_cropcap() 2379 (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || zoran_cropcap() 2388 cropcap->bounds.top = cropcap->bounds.left = 0; zoran_cropcap() 2389 cropcap->bounds.width = BUZ_MAX_WIDTH; zoran_cropcap() 2390 cropcap->bounds.height = BUZ_MAX_HEIGHT; zoran_cropcap() 2391 cropcap->defrect.top = cropcap->defrect.left = 0; zoran_cropcap() 2392 cropcap->defrect.width = BUZ_MIN_WIDTH; zoran_cropcap() 2393 cropcap->defrect.height = BUZ_MIN_HEIGHT; zoran_cropcap() 2368 zoran_cropcap(struct file *file, void *__fh, struct v4l2_cropcap *cropcap) zoran_cropcap() argument
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 828 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) ivtv_cropcap() argument 833 if (cropcap->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { ivtv_cropcap() 834 cropcap->pixelaspect.numerator = itv->is_50hz ? 59 : 10; ivtv_cropcap() 835 cropcap->pixelaspect.denominator = itv->is_50hz ? 54 : 11; ivtv_cropcap() 836 } else if (cropcap->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { ivtv_cropcap() 837 cropcap->pixelaspect.numerator = itv->is_out_50hz ? 59 : 10; ivtv_cropcap() 838 cropcap->pixelaspect.denominator = itv->is_out_50hz ? 54 : 11; ivtv_cropcap()
|
/linux-4.4.14/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 450 struct v4l2_cropcap *cropcap) cx18_cropcap() 454 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) cx18_cropcap() 456 cropcap->pixelaspect.numerator = cx->is_50hz ? 59 : 10; cx18_cropcap() 457 cropcap->pixelaspect.denominator = cx->is_50hz ? 54 : 11; cx18_cropcap() 449 cx18_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) cx18_cropcap() argument
|
/linux-4.4.14/drivers/media/i2c/ |
H A D | ak881x.c | 210 .cropcap = ak881x_cropcap,
|
H A D | tvp5150.c | 1079 .cropcap = tvp5150_cropcap,
|
/linux-4.4.14/include/media/davinci/ |
H A D | vpbe.h | 109 struct v4l2_cropcap *cropcap);
|
/linux-4.4.14/drivers/media/platform/omap/ |
H A D | omap_vout.c | 1251 struct v4l2_cropcap *cropcap) vidioc_cropcap() 1256 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) vidioc_cropcap() 1260 cropcap->bounds.width = pix->width & ~1; vidioc_cropcap() 1261 cropcap->bounds.height = pix->height & ~1; vidioc_cropcap() 1263 omap_vout_default_crop(&vout->pix, &vout->fbuf, &cropcap->defrect); vidioc_cropcap() 1264 cropcap->pixelaspect.numerator = 1; vidioc_cropcap() 1265 cropcap->pixelaspect.denominator = 1; vidioc_cropcap() 1250 vidioc_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) vidioc_cropcap() argument
|
/linux-4.4.14/drivers/media/i2c/soc_camera/ |
H A D | imx074.c | 282 .cropcap = imx074_cropcap,
|
H A D | mt9m001.c | 630 .cropcap = mt9m001_cropcap,
|
H A D | mt9t031.c | 726 .cropcap = mt9t031_cropcap,
|
H A D | ov5642.c | 945 .cropcap = ov5642_cropcap,
|
H A D | ov9640.c | 670 .cropcap = ov9640_cropcap,
|
H A D | ov9740.c | 917 .cropcap = ov9740_cropcap,
|
H A D | tw9910.c | 924 .cropcap = tw9910_cropcap,
|
H A D | mt9m111.c | 872 .cropcap = mt9m111_cropcap,
|
H A D | mt9t112.c | 1027 .cropcap = mt9t112_cropcap,
|
H A D | mt9v022.c | 858 .cropcap = mt9v022_cropcap,
|
H A D | ov2640.c | 1027 .cropcap = ov2640_cropcap,
|
H A D | ov6650.c | 946 .cropcap = ov6650_cropcap,
|
H A D | ov772x.c | 1033 .cropcap = ov772x_cropcap,
|
H A D | rj54n1cb0c.c | 1251 .cropcap = rj54n1_cropcap,
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
H A D | ispvideo.c | 718 isp_video_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) isp_video_cropcap() argument 729 ret = v4l2_subdev_call(subdev, video, cropcap, cropcap); isp_video_cropcap()
|
/linux-4.4.14/include/media/ |
H A D | soc_camera.h | 108 int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *); member in struct:soc_camera_host_ops
|
H A D | v4l2-subdev.h | 359 * @cropcap: callback for VIDIOC_CROPCAP ioctl handler code. 403 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc); member in struct:v4l2_subdev_video_ops
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw.c | 5071 there's nobody to answer a poll of cropcap info. */ pvr2_hdw_status_poll()
|