Lines Matching refs:rect

1565 			struct v4l2_rect *rect;  in vfe_try_format()  local
1567 rect = __vfe_get_crop(line, cfg, which); in vfe_try_format()
1569 fmt->width = rect->width; in vfe_try_format()
1570 fmt->height = rect->height; in vfe_try_format()
1588 struct v4l2_rect *rect, in vfe_try_compose() argument
1595 if (rect->width > fmt->width) in vfe_try_compose()
1596 rect->width = fmt->width; in vfe_try_compose()
1598 if (rect->height > fmt->height) in vfe_try_compose()
1599 rect->height = fmt->height; in vfe_try_compose()
1601 if (fmt->width > rect->width * SCALER_RATIO_MAX) in vfe_try_compose()
1602 rect->width = (fmt->width + SCALER_RATIO_MAX - 1) / in vfe_try_compose()
1605 rect->width &= ~0x1; in vfe_try_compose()
1607 if (fmt->height > rect->height * SCALER_RATIO_MAX) in vfe_try_compose()
1608 rect->height = (fmt->height + SCALER_RATIO_MAX - 1) / in vfe_try_compose()
1611 if (rect->width < 16) in vfe_try_compose()
1612 rect->width = 16; in vfe_try_compose()
1614 if (rect->height < 4) in vfe_try_compose()
1615 rect->height = 4; in vfe_try_compose()
1627 struct v4l2_rect *rect, in vfe_try_crop() argument
1634 if (rect->width > compose->width) in vfe_try_crop()
1635 rect->width = compose->width; in vfe_try_crop()
1637 if (rect->width + rect->left > compose->width) in vfe_try_crop()
1638 rect->left = compose->width - rect->width; in vfe_try_crop()
1640 if (rect->height > compose->height) in vfe_try_crop()
1641 rect->height = compose->height; in vfe_try_crop()
1643 if (rect->height + rect->top > compose->height) in vfe_try_crop()
1644 rect->top = compose->height - rect->height; in vfe_try_crop()
1647 rect->left += (rect->width & 0xf) >> 1; in vfe_try_crop()
1648 rect->width &= ~0xf; in vfe_try_crop()
1650 if (rect->width < 16) { in vfe_try_crop()
1651 rect->left = 0; in vfe_try_crop()
1652 rect->width = 16; in vfe_try_crop()
1655 if (rect->height < 4) { in vfe_try_crop()
1656 rect->top = 0; in vfe_try_crop()
1657 rect->height = 4; in vfe_try_crop()
1826 struct v4l2_rect *rect; in vfe_get_selection() local
1847 rect = __vfe_get_compose(line, cfg, sel->which); in vfe_get_selection()
1848 if (rect == NULL) in vfe_get_selection()
1851 sel->r = *rect; in vfe_get_selection()
1859 rect = __vfe_get_compose(line, cfg, sel->which); in vfe_get_selection()
1860 if (rect == NULL) in vfe_get_selection()
1863 sel->r.left = rect->left; in vfe_get_selection()
1864 sel->r.top = rect->top; in vfe_get_selection()
1865 sel->r.width = rect->width; in vfe_get_selection()
1866 sel->r.height = rect->height; in vfe_get_selection()
1869 rect = __vfe_get_crop(line, cfg, sel->which); in vfe_get_selection()
1870 if (rect == NULL) in vfe_get_selection()
1873 sel->r = *rect; in vfe_get_selection()
1895 struct v4l2_rect *rect; in vfe_set_selection() local
1905 rect = __vfe_get_compose(line, cfg, sel->which); in vfe_set_selection()
1906 if (rect == NULL) in vfe_set_selection()
1910 *rect = sel->r; in vfe_set_selection()
1916 crop.r = *rect; in vfe_set_selection()
1922 rect = __vfe_get_crop(line, cfg, sel->which); in vfe_set_selection()
1923 if (rect == NULL) in vfe_set_selection()
1927 *rect = sel->r; in vfe_set_selection()
1936 fmt.format.width = rect->width; in vfe_set_selection()
1937 fmt.format.height = rect->height; in vfe_set_selection()