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()
1778 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_s_crop() local
1810 if (rect->width > bounds->width) in et61x251_vidioc_s_crop()
1811 rect->width = bounds->width; in et61x251_vidioc_s_crop()
1812 if (rect->height > bounds->height) in et61x251_vidioc_s_crop()
1813 rect->height = bounds->height; in et61x251_vidioc_s_crop()
1814 if (rect->left < bounds->left) in et61x251_vidioc_s_crop()
1815 rect->left = bounds->left; in et61x251_vidioc_s_crop()
1816 if (rect->top < bounds->top) in et61x251_vidioc_s_crop()
1817 rect->top = bounds->top; in et61x251_vidioc_s_crop()
1818 if (rect->left + rect->width > bounds->left + bounds->width) in et61x251_vidioc_s_crop()
1819 rect->left = bounds->left+bounds->width - rect->width; in et61x251_vidioc_s_crop()
1820 if (rect->top + rect->height > bounds->top + bounds->height) in et61x251_vidioc_s_crop()
1821 rect->top = bounds->top+bounds->height - rect->height; in et61x251_vidioc_s_crop()
1902 frmsize.stepwise.max_width = cam->sensor.cropcap.bounds.width; in et61x251_vidioc_enum_framesizes()
1903 frmsize.stepwise.max_height = cam->sensor.cropcap.bounds.height; in et61x251_vidioc_enum_framesizes()
1979 struct v4l2_rect* bounds = &(s->cropcap.bounds); in et61x251_vidioc_try_s_fmt() local
2011 if (rect.width > bounds->left + bounds->width - rect.left) in et61x251_vidioc_try_s_fmt()
2012 rect.width = bounds->left + bounds->width - rect.left; in et61x251_vidioc_try_s_fmt()
2013 if (rect.height > bounds->top + bounds->height - rect.top) in et61x251_vidioc_try_s_fmt()
2014 rect.height = bounds->top + bounds->height - rect.top; in et61x251_vidioc_try_s_fmt()