Home
last modified time | relevance | path

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

/Linux-v4.19/Documentation/media/uapi/v4l/
Dcrop.rst169 struct v4l2_cropcap cropcap;
172 memset (&cropcap, 0, sizeof (cropcap));
173 cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
175 if (-1 == ioctl (fd, VIDIOC_CROPCAP, &cropcap)) {
182 crop.c = cropcap.defrect;
198 struct v4l2_cropcap cropcap;
209 format.fmt.pix.width = cropcap.defrect.width >> 1;
210 format.fmt.pix.height = cropcap.defrect.height >> 1;
228 struct v4l2_cropcap cropcap;
231 memset (&cropcap, 0, sizeof (cropcap));
[all …]
Dcapture.c.rst422 struct v4l2_cropcap cropcap;
466 CLEAR(cropcap);
468 cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
470 if (0 == xioctl(fd, VIDIOC_CROPCAP, &cropcap)) {
472 crop.c = cropcap.defrect; /* reset to default */
Duser-func.rst16 vidioc-cropcap
/Linux-v4.19/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.c269 .cropcap.bounds.left = minhdelayx1, \
272 .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \
274 .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \
275 .cropcap.bounds.height = (sheight) + (extraheight) + (vdelay) - \
277 .cropcap.defrect.left = hdelayx1, \
278 .cropcap.defrect.top = (videostart0) * 2, \
279 .cropcap.defrect.width = swidth, \
280 .cropcap.defrect.height = sheight, \
281 .cropcap.pixelaspect.numerator = totalwidth, \
282 .cropcap.pixelaspect.denominator = sqwidth,
[all …]
Dbttv-risc.c394 if ((crop->left == tvnorm->cropcap.defrect.left in bttv_calc_geo()
395 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo()
396 && crop->width == tvnorm->cropcap.defrect.width in bttv_calc_geo()
397 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo()
416 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
Dbttvp.h109 struct v4l2_cropcap cropcap; member
/Linux-v4.19/drivers/media/platform/davinci/
Dvpbe.c104 struct v4l2_cropcap *cropcap) in vpbe_g_cropcap() argument
106 if (!cropcap) in vpbe_g_cropcap()
108 cropcap->bounds.left = 0; in vpbe_g_cropcap()
109 cropcap->bounds.top = 0; in vpbe_g_cropcap()
110 cropcap->bounds.width = vpbe_dev->current_timings.xres; in vpbe_g_cropcap()
111 cropcap->bounds.height = vpbe_dev->current_timings.yres; in vpbe_g_cropcap()
112 cropcap->defrect = cropcap->bounds; in vpbe_g_cropcap()
Dvpbe_display.c763 struct v4l2_cropcap *cropcap) in vpbe_display_cropcap() argument
770 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in vpbe_display_cropcap()
773 cropcap->pixelaspect = vpbe_dev->current_timings.aspect; in vpbe_display_cropcap()
/Linux-v4.19/include/media/davinci/
Dvpbe.h105 struct v4l2_cropcap *cropcap);
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-ioctl.c445 struct v4l2_cropcap *cropcap) in cx18_cropcap() argument
449 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in cx18_cropcap()
451 cropcap->pixelaspect.numerator = cx->is_50hz ? 54 : 11; in cx18_cropcap()
452 cropcap->pixelaspect.denominator = cx->is_50hz ? 59 : 10; in cx18_cropcap()
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-ioctl.c831 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
836 if (cropcap->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in ivtv_cropcap()
837 cropcap->pixelaspect.numerator = itv->is_50hz ? 54 : 11; in ivtv_cropcap()
838 cropcap->pixelaspect.denominator = itv->is_50hz ? 59 : 10; in ivtv_cropcap()
839 } else if (cropcap->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { in ivtv_cropcap()
840 cropcap->pixelaspect.numerator = itv->is_out_50hz ? 54 : 11; in ivtv_cropcap()
841 cropcap->pixelaspect.denominator = itv->is_out_50hz ? 59 : 10; in ivtv_cropcap()
/Linux-v4.19/Documentation/media/v4l-drivers/
Dsoc-camera.rst143 rely on camera drivers implementing .cropcap(). If the camera driver does not