Lines Matching refs:rect
770 struct v4l2_rect rect; in imx296_set_selection() local
779 rect.left = clamp(ALIGN(sel->r.left, 4), 0, in imx296_set_selection()
781 rect.top = clamp(ALIGN(sel->r.top, 4), 0, in imx296_set_selection()
783 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 4), in imx296_set_selection()
785 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 4), in imx296_set_selection()
788 rect.width = min_t(unsigned int, rect.width, in imx296_set_selection()
789 IMX296_PIXEL_ARRAY_WIDTH - rect.left); in imx296_set_selection()
790 rect.height = min_t(unsigned int, rect.height, in imx296_set_selection()
791 IMX296_PIXEL_ARRAY_HEIGHT - rect.top); in imx296_set_selection()
795 if (rect.width != crop->width || rect.height != crop->height) { in imx296_set_selection()
801 format->width = rect.width; in imx296_set_selection()
802 format->height = rect.height; in imx296_set_selection()
805 *crop = rect; in imx296_set_selection()
806 sel->r = rect; in imx296_set_selection()