Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 37) sorted by relevance

12

/drivers/media/video/zc0301/
Dzc0301_core.c125 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in zc0301_request_buffers()
1209 struct v4l2_rect* bounds = &(s->cropcap.bounds); in zc0301_vidioc_s_crop() local
1244 if (rect->width > bounds->width) in zc0301_vidioc_s_crop()
1245 rect->width = bounds->width; in zc0301_vidioc_s_crop()
1246 if (rect->height > bounds->height) in zc0301_vidioc_s_crop()
1247 rect->height = bounds->height; in zc0301_vidioc_s_crop()
1248 if (rect->left < bounds->left) in zc0301_vidioc_s_crop()
1249 rect->left = bounds->left; in zc0301_vidioc_s_crop()
1250 if (rect->top < bounds->top) in zc0301_vidioc_s_crop()
1251 rect->top = bounds->top; in zc0301_vidioc_s_crop()
[all …]
Dzc0301_pb0330.c142 .bounds = {
/drivers/media/video/et61x251/
Det61x251_core.c123 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in et61x251_request_buffers()
1078 u16 fmw_sx = (u16)(rect->left - s->cropcap.bounds.left + in et61x251_set_crop()
1080 fmw_sy = (u16)(rect->top - s->cropcap.bounds.top + in et61x251_set_crop()
1770 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_s_crop() local
1802 if (rect->width > bounds->width) in et61x251_vidioc_s_crop()
1803 rect->width = bounds->width; in et61x251_vidioc_s_crop()
1804 if (rect->height > bounds->height) in et61x251_vidioc_s_crop()
1805 rect->height = bounds->height; in et61x251_vidioc_s_crop()
1806 if (rect->left < bounds->left) in et61x251_vidioc_s_crop()
1807 rect->left = bounds->left; in et61x251_vidioc_s_crop()
[all …]
Det61x251_tas5130d1b.c105 .bounds = {
/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()
82 .bounds = {
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()
114 .bounds = {
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()
125 .bounds = {
Dsn9c102_pas202bcb.c179 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 3; in pas202bcb_set_crop()
184 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 4; in pas202bcb_set_crop()
187 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 3; in pas202bcb_set_crop()
274 .bounds = {
Dsn9c102_core.c146 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in sn9c102_request_buffers()
1606 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left), in sn9c102_set_crop()
1607 v_start = (u8)(rect->top - s->cropcap.bounds.top), in sn9c102_set_crop()
2357 struct v4l2_rect* bounds = &(s->cropcap.bounds); in sn9c102_vidioc_s_crop() local
2389 if (rect->width > bounds->width) in sn9c102_vidioc_s_crop()
2390 rect->width = bounds->width; in sn9c102_vidioc_s_crop()
2391 if (rect->height > bounds->height) in sn9c102_vidioc_s_crop()
2392 rect->height = bounds->height; in sn9c102_vidioc_s_crop()
2393 if (rect->left < bounds->left) in sn9c102_vidioc_s_crop()
2394 rect->left = bounds->left; in sn9c102_vidioc_s_crop()
[all …]
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()
397 .bounds = {
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()
222 .bounds = {
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()
321 .bounds = {
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()
251 .bounds = {
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()
310 .bounds = {
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()
565 .bounds = {
Dsn9c102_mt9v111.c169 u8 v_start = (u8) (rect->top - s->cropcap.bounds.top) + 2; in mt9v111_set_crop()
214 .bounds = {
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()
496 .bounds = {
/drivers/media/video/bt8xx/
Dbttv-vbi.c187 if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top) in vbi_buffer_prepare()
188 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; in vbi_buffer_prepare()
254 max_end = (tvnorm->cropcap.bounds.top in try_fmt()
255 + tvnorm->cropcap.bounds.height) >> 1; in try_fmt()
390 max_end = (tvnorm->cropcap.bounds.top in bttv_g_fmt_vbi_cap()
391 + tvnorm->cropcap.bounds.height) >> 1; in bttv_g_fmt_vbi_cap()
/drivers/staging/go7007/
Dgo7007-v4l2.c1352 cropcap->bounds.top = 0; in vidioc_cropcap()
1353 cropcap->bounds.left = 0; in vidioc_cropcap()
1354 cropcap->bounds.width = 720; in vidioc_cropcap()
1355 cropcap->bounds.height = 480; in vidioc_cropcap()
1362 cropcap->bounds.top = 0; in vidioc_cropcap()
1363 cropcap->bounds.left = 0; in vidioc_cropcap()
1364 cropcap->bounds.width = 720; in vidioc_cropcap()
1365 cropcap->bounds.height = 576; in vidioc_cropcap()
1372 cropcap->bounds.top = 0; in vidioc_cropcap()
1373 cropcap->bounds.left = 0; in vidioc_cropcap()
[all …]
/drivers/media/video/cx18/
Dcx18-ioctl.c385 cropcap->bounds.top = cropcap->bounds.left = 0; in cx18_cropcap()
386 cropcap->bounds.width = 720; in cx18_cropcap()
387 cropcap->bounds.height = cx->is_50hz ? 576 : 480; in cx18_cropcap()
390 cropcap->defrect = cropcap->bounds; in cx18_cropcap()
/drivers/media/video/ivtv/
Divtv-ioctl.c852 cropcap->bounds.top = cropcap->bounds.left = 0; in ivtv_cropcap()
853 cropcap->bounds.width = 720; in ivtv_cropcap()
855 cropcap->bounds.height = itv->is_50hz ? 576 : 480; 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()
863 cropcap->bounds.width = 720; in ivtv_cropcap()
864 cropcap->bounds.height = in ivtv_cropcap()
870 cropcap->bounds.height = itv->is_out_50hz ? 576 : 480; in ivtv_cropcap()
874 cropcap->defrect = cropcap->bounds; in ivtv_cropcap()
/drivers/media/video/pvrusb2/
Dpvrusb2-hdw.c410 *left = cap->bounds.left; in ctrl_cropl_min_get()
421 *left = cap->bounds.left; in ctrl_cropl_max_get()
422 if (cap->bounds.width > cptr->hdw->cropw_val) { in ctrl_cropl_max_get()
423 *left += cap->bounds.width - cptr->hdw->cropw_val; in ctrl_cropl_max_get()
435 *top = cap->bounds.top; in ctrl_cropt_min_get()
446 *top = cap->bounds.top; in ctrl_cropt_max_get()
447 if (cap->bounds.height > cptr->hdw->croph_val) { in ctrl_cropt_max_get()
448 *top += cap->bounds.height - cptr->hdw->croph_val; in ctrl_cropt_max_get()
461 if (cap->bounds.width > cptr->hdw->cropl_val) { in ctrl_cropw_max_get()
462 *val = cap->bounds.width - cptr->hdw->cropl_val; in ctrl_cropw_max_get()
[all …]
/drivers/media/video/uvc/
Duvc_v4l2.c819 ccap->bounds.left = 0; in uvc_v4l2_do_ioctl()
820 ccap->bounds.top = 0; in uvc_v4l2_do_ioctl()
821 ccap->bounds.width = frame->wWidth; in uvc_v4l2_do_ioctl()
822 ccap->bounds.height = frame->wHeight; in uvc_v4l2_do_ioctl()
824 ccap->defrect = ccap->bounds; in uvc_v4l2_do_ioctl()
/drivers/media/video/
Dsoc_camera.c645 a->bounds.left = icd->x_min; in soc_camera_cropcap()
646 a->bounds.top = icd->y_min; in soc_camera_cropcap()
647 a->bounds.width = icd->width_max; in soc_camera_cropcap()
648 a->bounds.height = icd->height_max; in soc_camera_cropcap()
/drivers/media/video/em28xx/
Dem28xx-video.c1280 cc->bounds.left = 0; in vidioc_cropcap()
1281 cc->bounds.top = 0; in vidioc_cropcap()
1282 cc->bounds.width = dev->width; in vidioc_cropcap()
1283 cc->bounds.height = dev->height; in vidioc_cropcap()
1284 cc->defrect = cc->bounds; in vidioc_cropcap()

12