Home
last modified time | relevance | path

Searched refs:cropcap (Results 1 – 34 of 34) sorted by relevance

/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-vbi.c192 if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top) in vbi_buffer_prepare()
193 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; in vbi_buffer_prepare()
259 max_end = (tvnorm->cropcap.bounds.top in try_fmt()
260 + tvnorm->cropcap.bounds.height) >> 1; in try_fmt()
395 max_end = (tvnorm->cropcap.bounds.top in bttv_g_fmt_vbi_cap()
396 + tvnorm->cropcap.bounds.height) >> 1; in bttv_g_fmt_vbi_cap()
442 real_count = ((tvnorm->cropcap.defrect.top >> 1) in bttv_vbi_fmt_reset()
Dbttv-driver.c270 .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,
[all …]
Dbttv-risc.c392 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()
414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
Dbttvp.h109 struct v4l2_cropcap cropcap; member
/linux-4.4.14/drivers/media/platform/davinci/
Dvpbe.c108 struct v4l2_cropcap *cropcap) in vpbe_g_cropcap() argument
110 if (NULL == cropcap) in vpbe_g_cropcap()
112 cropcap->bounds.left = 0; in vpbe_g_cropcap()
113 cropcap->bounds.top = 0; in vpbe_g_cropcap()
114 cropcap->bounds.width = vpbe_dev->current_timings.xres; in vpbe_g_cropcap()
115 cropcap->bounds.height = vpbe_dev->current_timings.yres; in vpbe_g_cropcap()
116 cropcap->defrect = cropcap->bounds; in vpbe_g_cropcap()
Dvpbe_display.c750 struct v4l2_cropcap *cropcap) in vpbe_display_cropcap() argument
757 cropcap->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in vpbe_display_cropcap()
758 cropcap->bounds.left = 0; in vpbe_display_cropcap()
759 cropcap->bounds.top = 0; in vpbe_display_cropcap()
760 cropcap->bounds.width = vpbe_dev->current_timings.xres; in vpbe_display_cropcap()
761 cropcap->bounds.height = vpbe_dev->current_timings.yres; in vpbe_display_cropcap()
762 cropcap->pixelaspect = vpbe_dev->current_timings.aspect; in vpbe_display_cropcap()
763 cropcap->defrect = cropcap->bounds; in vpbe_display_cropcap()
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c58 ret = v4l2_subdev_call(sd, video, cropcap, &cap); in soc_camera_client_g_rect()
130 ret = v4l2_subdev_call(sd, video, cropcap, &cap); in soc_camera_client_s_crop()
248 ret = v4l2_subdev_call(sd, video, cropcap, &cap); in client_set_fmt()
Dsoc_camera_platform.c123 .cropcap = soc_camera_platform_cropcap,
Dsoc_camera.c1034 return ici->ops->cropcap(icd, a); in soc_camera_cropcap()
1885 return v4l2_subdev_call(sd, video, cropcap, a); in default_cropcap()
1972 if (!ici->ops->cropcap) in soc_camera_host_register()
1973 ici->ops->cropcap = default_cropcap; in soc_camera_host_register()
/linux-4.4.14/include/media/davinci/
Dvpbe.h109 struct v4l2_cropcap *cropcap);
/linux-4.4.14/drivers/media/pci/zoran/
Dzoran_driver.c2369 struct v4l2_cropcap *cropcap) in zoran_cropcap() argument
2373 int type = cropcap->type, res = 0; in zoran_cropcap()
2375 memset(cropcap, 0, sizeof(*cropcap)); in zoran_cropcap()
2376 cropcap->type = type; in zoran_cropcap()
2378 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_cropcap()
2379 (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_cropcap()
2388 cropcap->bounds.top = cropcap->bounds.left = 0; in zoran_cropcap()
2389 cropcap->bounds.width = BUZ_MAX_WIDTH; in zoran_cropcap()
2390 cropcap->bounds.height = BUZ_MAX_HEIGHT; in zoran_cropcap()
2391 cropcap->defrect.top = cropcap->defrect.left = 0; in zoran_cropcap()
[all …]
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-ioctl.c450 struct v4l2_cropcap *cropcap) in cx18_cropcap() argument
454 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in cx18_cropcap()
456 cropcap->pixelaspect.numerator = cx->is_50hz ? 59 : 10; in cx18_cropcap()
457 cropcap->pixelaspect.denominator = cx->is_50hz ? 54 : 11; in cx18_cropcap()
/linux-4.4.14/drivers/media/platform/omap/
Domap_vout.c1251 struct v4l2_cropcap *cropcap) in vidioc_cropcap() argument
1256 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in vidioc_cropcap()
1260 cropcap->bounds.width = pix->width & ~1; in vidioc_cropcap()
1261 cropcap->bounds.height = pix->height & ~1; in vidioc_cropcap()
1263 omap_vout_default_crop(&vout->pix, &vout->fbuf, &cropcap->defrect); in vidioc_cropcap()
1264 cropcap->pixelaspect.numerator = 1; in vidioc_cropcap()
1265 cropcap->pixelaspect.denominator = 1; in vidioc_cropcap()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-ioctl.c828 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
833 if (cropcap->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in ivtv_cropcap()
834 cropcap->pixelaspect.numerator = itv->is_50hz ? 59 : 10; in ivtv_cropcap()
835 cropcap->pixelaspect.denominator = itv->is_50hz ? 54 : 11; in ivtv_cropcap()
836 } else if (cropcap->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { in ivtv_cropcap()
837 cropcap->pixelaspect.numerator = itv->is_out_50hz ? 59 : 10; in ivtv_cropcap()
838 cropcap->pixelaspect.denominator = itv->is_out_50hz ? 54 : 11; in ivtv_cropcap()
/linux-4.4.14/include/media/
Dsoc_camera.h108 int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *); member
Dv4l2-subdev.h403 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc); member
/linux-4.4.14/drivers/media/i2c/
Dak881x.c210 .cropcap = ak881x_cropcap,
Dtvp5150.c1079 .cropcap = tvp5150_cropcap,
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispvideo.c718 isp_video_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in isp_video_cropcap() argument
729 ret = v4l2_subdev_call(subdev, video, cropcap, cropcap); in isp_video_cropcap()
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dimx074.c282 .cropcap = imx074_cropcap,
Dov5642.c945 .cropcap = ov5642_cropcap,
Dov9640.c670 .cropcap = ov9640_cropcap,
Dmt9m001.c630 .cropcap = mt9m001_cropcap,
Dov9740.c917 .cropcap = ov9740_cropcap,
Dtw9910.c924 .cropcap = tw9910_cropcap,
Dmt9t031.c726 .cropcap = mt9t031_cropcap,
Dov772x.c1033 .cropcap = ov772x_cropcap,
Dmt9v022.c858 .cropcap = mt9v022_cropcap,
Dov2640.c1027 .cropcap = ov2640_cropcap,
Dmt9m111.c872 .cropcap = mt9m111_cropcap,
Dmt9t112.c1027 .cropcap = mt9t112_cropcap,
Drj54n1cb0c.c1251 .cropcap = rj54n1_cropcap,
Dov6650.c946 .cropcap = ov6650_cropcap,
/linux-4.4.14/Documentation/video4linux/
Dsoc-camera.txt135 rely on camera drivers implementing .cropcap(). If the camera driver does not