Lines Matching defs:bounds
123 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds);
1071 u16 fmw_sx = (u16)(rect->left - s->cropcap.bounds.left +
1073 fmw_sy = (u16)(rect->top - s->cropcap.bounds.top +
1746 struct v4l2_rect* bounds = &(s->cropcap.bounds);
1778 if (rect->width > bounds->width)
1779 rect->width = bounds->width;
1780 if (rect->height > bounds->height)
1781 rect->height = bounds->height;
1782 if (rect->left < bounds->left)
1783 rect->left = bounds->left;
1784 if (rect->top < bounds->top)
1785 rect->top = bounds->top;
1786 if (rect->left + rect->width > bounds->left + bounds->width)
1787 rect->left = bounds->left+bounds->width - rect->width;
1788 if (rect->top + rect->height > bounds->top + bounds->height)
1789 rect->top = bounds->top+bounds->height - rect->height;
1870 frmsize.stepwise.max_width = cam->sensor.cropcap.bounds.width;
1871 frmsize.stepwise.max_height = cam->sensor.cropcap.bounds.height;
1945 struct v4l2_rect* bounds = &(s->cropcap.bounds);
1977 if (rect.width > bounds->left + bounds->width - rect.left)
1978 rect.width = bounds->left + bounds->width - rect.left;
1979 if (rect.height > bounds->top + bounds->height - rect.top)
1980 rect.height = bounds->top + bounds->height - rect.top;