Lines Matching refs:bounds
146 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()
2395 if (rect->top < bounds->top) in sn9c102_vidioc_s_crop()
2396 rect->top = bounds->top; in sn9c102_vidioc_s_crop()
2397 if (rect->left + rect->width > bounds->left + bounds->width) in sn9c102_vidioc_s_crop()
2398 rect->left = bounds->left+bounds->width - rect->width; in sn9c102_vidioc_s_crop()
2399 if (rect->top + rect->height > bounds->top + bounds->height) in sn9c102_vidioc_s_crop()
2400 rect->top = bounds->top+bounds->height - rect->height; in sn9c102_vidioc_s_crop()
2491 frmsize.stepwise.max_width = cam->sensor.cropcap.bounds.width; in sn9c102_vidioc_enum_framesizes()
2492 frmsize.stepwise.max_height = cam->sensor.cropcap.bounds.height; in sn9c102_vidioc_enum_framesizes()
2580 struct v4l2_rect* bounds = &(s->cropcap.bounds); in sn9c102_vidioc_try_s_fmt() local
2612 if (rect.width > bounds->left + bounds->width - rect.left) in sn9c102_vidioc_try_s_fmt()
2613 rect.width = bounds->left + bounds->width - rect.left; in sn9c102_vidioc_try_s_fmt()
2614 if (rect.height > bounds->top + bounds->height - rect.top) in sn9c102_vidioc_try_s_fmt()
2615 rect.height = bounds->top + bounds->height - rect.top; in sn9c102_vidioc_try_s_fmt()