Lines Matching refs:bounds
123 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()
1808 if (rect->top < bounds->top) in et61x251_vidioc_s_crop()
1809 rect->top = bounds->top; in et61x251_vidioc_s_crop()
1810 if (rect->left + rect->width > bounds->left + bounds->width) in et61x251_vidioc_s_crop()
1811 rect->left = bounds->left+bounds->width - rect->width; in et61x251_vidioc_s_crop()
1812 if (rect->top + rect->height > bounds->top + bounds->height) in et61x251_vidioc_s_crop()
1813 rect->top = bounds->top+bounds->height - rect->height; in et61x251_vidioc_s_crop()
1894 frmsize.stepwise.max_width = cam->sensor.cropcap.bounds.width; in et61x251_vidioc_enum_framesizes()
1895 frmsize.stepwise.max_height = cam->sensor.cropcap.bounds.height; in et61x251_vidioc_enum_framesizes()
1971 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_try_s_fmt() local
2003 if (rect.width > bounds->left + bounds->width - rect.left) in et61x251_vidioc_try_s_fmt()
2004 rect.width = bounds->left + bounds->width - rect.left; in et61x251_vidioc_try_s_fmt()
2005 if (rect.height > bounds->top + bounds->height - rect.top) in et61x251_vidioc_try_s_fmt()
2006 rect.height = bounds->top + bounds->height - rect.top; in et61x251_vidioc_try_s_fmt()