Home
last modified time | relevance | path

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

123

/drivers/staging/media/go7007/
Dgo7007-v4l2.c1297 struct v4l2_cropcap *cropcap) in vidioc_cropcap() argument
1301 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in vidioc_cropcap()
1307 cropcap->bounds.top = 0; in vidioc_cropcap()
1308 cropcap->bounds.left = 0; in vidioc_cropcap()
1309 cropcap->bounds.width = 720; in vidioc_cropcap()
1310 cropcap->bounds.height = 480; in vidioc_cropcap()
1311 cropcap->defrect.top = 0; in vidioc_cropcap()
1312 cropcap->defrect.left = 0; in vidioc_cropcap()
1313 cropcap->defrect.width = 720; in vidioc_cropcap()
1314 cropcap->defrect.height = 480; in vidioc_cropcap()
[all …]
/drivers/media/video/sn9c102/
Dsn9c102_tas5110d.c45 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69, in tas5110d_set_crop()
46 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9; in tas5110d_set_crop()
81 .cropcap = {
Dsn9c102_tas5110c1b.c63 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69, in tas5110c1b_set_crop()
64 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9; in tas5110c1b_set_crop()
113 .cropcap = {
Dsn9c102_tas5130d1b.c63 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 104, in tas5130d1b_set_crop()
64 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 12; in tas5130d1b_set_crop()
124 .cropcap = {
Dsn9c102_pas202bcb.c178 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 3; in pas202bcb_set_crop()
183 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 4; in pas202bcb_set_crop()
186 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 3; in pas202bcb_set_crop()
272 .cropcap = {
Dsn9c102_mi0360.c267 u8 h_start = 0, v_start = (u8)(rect->top - s->cropcap.bounds.top) + 1; in mi0360_set_crop()
271 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 0; in mi0360_set_crop()
275 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 1; in mi0360_set_crop()
396 .cropcap = {
Dsn9c102_hv7131r.c214 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 1, in hv7131r_set_crop()
215 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 1; in hv7131r_set_crop()
320 .cropcap = {
Dsn9c102_hv7131d.c124 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 2, in hv7131d_set_crop()
125 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 2; in hv7131d_set_crop()
221 .cropcap = {
Dsn9c102_pas106b.c143 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 4, in pas106b_set_crop()
144 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 3; in pas106b_set_crop()
250 .cropcap = {
Dsn9c102_mi0343.c197 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 0, in mi0343_set_crop()
198 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 2; in mi0343_set_crop()
309 .cropcap = {
Dsn9c102_ov7630.c385 u8 h_start = 0, v_start = (u8)(rect->top - s->cropcap.bounds.top) + 1; in ov7630_set_crop()
391 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 1; in ov7630_set_crop()
395 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 4; in ov7630_set_crop()
564 .cropcap = {
Dsn9c102_mt9v111.c169 u8 v_start = (u8) (rect->top - s->cropcap.bounds.top) + 2; in mt9v111_set_crop()
213 .cropcap = {
Dsn9c102_ov7660.c371 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 1, in ov7660_set_crop()
372 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 1; in ov7660_set_crop()
495 .cropcap = {
/drivers/media/video/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.c257 .cropcap.bounds.left = minhdelayx1, \
260 .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \
262 .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \
263 .cropcap.bounds.height = (sheight) + (vdelay) - MIN_VDELAY, \
264 .cropcap.defrect.left = hdelayx1, \
265 .cropcap.defrect.top = (videostart0) * 2, \
266 .cropcap.defrect.width = swidth, \
267 .cropcap.defrect.height = sheight, \
268 .cropcap.pixelaspect.numerator = totalwidth, \
269 .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()
/drivers/media/video/ivtv/
Divtv-ioctl.c841 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
850 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in ivtv_cropcap()
852 cropcap->bounds.top = cropcap->bounds.left = 0; in ivtv_cropcap()
853 cropcap->bounds.width = 720; in ivtv_cropcap()
854 if (cropcap->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in ivtv_cropcap()
855 cropcap->bounds.height = itv->is_50hz ? 576 : 480; in ivtv_cropcap()
856 cropcap->pixelaspect.numerator = itv->is_50hz ? 59 : 10; in ivtv_cropcap()
857 cropcap->pixelaspect.denominator = itv->is_50hz ? 54 : 11; in ivtv_cropcap()
860 cropcap->bounds.width = yi->osd_full_w; in ivtv_cropcap()
861 cropcap->bounds.height = yi->osd_full_h; in ivtv_cropcap()
[all …]
/drivers/media/video/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.c730 struct v4l2_cropcap *cropcap) in vpbe_display_cropcap() argument
737 cropcap->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in vpbe_display_cropcap()
738 cropcap->bounds.left = 0; in vpbe_display_cropcap()
739 cropcap->bounds.top = 0; in vpbe_display_cropcap()
740 cropcap->bounds.width = vpbe_dev->current_timings.xres; in vpbe_display_cropcap()
741 cropcap->bounds.height = vpbe_dev->current_timings.yres; in vpbe_display_cropcap()
742 cropcap->pixelaspect = vpbe_dev->current_timings.aspect; in vpbe_display_cropcap()
743 cropcap->defrect = cropcap->bounds; in vpbe_display_cropcap()
/drivers/media/video/cx18/
Dcx18-ioctl.c515 struct v4l2_cropcap *cropcap) in cx18_cropcap() argument
519 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in cx18_cropcap()
521 cropcap->bounds.top = cropcap->bounds.left = 0; in cx18_cropcap()
522 cropcap->bounds.width = 720; in cx18_cropcap()
523 cropcap->bounds.height = cx->is_50hz ? 576 : 480; in cx18_cropcap()
524 cropcap->pixelaspect.numerator = cx->is_50hz ? 59 : 10; in cx18_cropcap()
525 cropcap->pixelaspect.denominator = cx->is_50hz ? 54 : 11; in cx18_cropcap()
526 cropcap->defrect = cropcap->bounds; in cx18_cropcap()
/drivers/media/video/zoran/
Dzoran_driver.c2522 struct v4l2_cropcap *cropcap) in zoran_cropcap() argument
2526 int type = cropcap->type, res = 0; in zoran_cropcap()
2528 memset(cropcap, 0, sizeof(*cropcap)); in zoran_cropcap()
2529 cropcap->type = type; in zoran_cropcap()
2533 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_cropcap()
2534 (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_cropcap()
2543 cropcap->bounds.top = cropcap->bounds.left = 0; in zoran_cropcap()
2544 cropcap->bounds.width = BUZ_MAX_WIDTH; in zoran_cropcap()
2545 cropcap->bounds.height = BUZ_MAX_HEIGHT; in zoran_cropcap()
2546 cropcap->defrect.top = cropcap->defrect.left = 0; in zoran_cropcap()
[all …]
/drivers/media/video/cx25821/
Dcx25821-video.c1615 struct v4l2_cropcap *cropcap) in cx25821_vidioc_cropcap() argument
1619 if (cropcap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in cx25821_vidioc_cropcap()
1621 cropcap->bounds.top = 0; in cx25821_vidioc_cropcap()
1622 cropcap->bounds.left = 0; in cx25821_vidioc_cropcap()
1623 cropcap->bounds.width = 720; in cx25821_vidioc_cropcap()
1624 cropcap->bounds.height = dev->tvnorm == V4L2_STD_PAL_BG ? 576 : 480; in cx25821_vidioc_cropcap()
1625 cropcap->pixelaspect.numerator = in cx25821_vidioc_cropcap()
1627 cropcap->pixelaspect.denominator = in cx25821_vidioc_cropcap()
1629 cropcap->defrect = cropcap->bounds; in cx25821_vidioc_cropcap()
/drivers/media/video/et61x251/
Det61x251_sensor.h90 struct v4l2_cropcap cropcap; member
Det61x251_tas5130d1b.c106 .cropcap = {
Det61x251_core.c125 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in et61x251_request_buffers()
1080 u16 fmw_sx = (u16)(rect->left - s->cropcap.bounds.left + in et61x251_set_crop()
1082 fmw_sy = (u16)(rect->top - s->cropcap.bounds.top + in et61x251_set_crop()
1118 rect = &(s->cropcap.defrect); in et61x251_init()
1181 memcpy(&(s->_rect), &(s->cropcap.defrect), in et61x251_init()
1744 struct v4l2_cropcap* cc = &(cam->sensor.cropcap); in et61x251_vidioc_cropcap()
1780 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_s_crop()
1904 frmsize.stepwise.max_width = cam->sensor.cropcap.bounds.width; in et61x251_vidioc_enum_framesizes()
1905 frmsize.stepwise.max_height = cam->sensor.cropcap.bounds.height; in et61x251_vidioc_enum_framesizes()
1981 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_try_s_fmt()

123