Lines Matching refs:crop
1073 unsigned int sph = prev->crop.left; in preview_config_input_size()
1074 unsigned int eph = prev->crop.left + prev->crop.width - 1; in preview_config_input_size()
1075 unsigned int slv = prev->crop.top; in preview_config_input_size()
1076 unsigned int elv = prev->crop.top + prev->crop.height - 1; in preview_config_input_size()
1705 return &prev->crop; in __preview_get_crop()
1744 struct v4l2_rect *crop; in preview_try_format() local
1798 crop = __preview_get_crop(prev, cfg, which); in preview_try_format()
1799 fmt->width = crop->width; in preview_try_format()
1800 fmt->height = crop->height; in preview_try_format()
1823 struct v4l2_rect *crop) in preview_try_crop() argument
1853 crop->left &= ~1; in preview_try_crop()
1854 crop->top &= ~1; in preview_try_crop()
1856 crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); in preview_try_crop()
1857 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); in preview_try_crop()
1858 crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, in preview_try_crop()
1859 right - crop->left); in preview_try_crop()
1860 crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT, in preview_try_crop()
1861 bottom - crop->top); in preview_try_crop()
2046 struct v4l2_rect *crop; in preview_set_format() local
2058 crop = __preview_get_crop(prev, cfg, fmt->which); in preview_set_format()
2059 crop->left = 0; in preview_set_format()
2060 crop->top = 0; in preview_set_format()
2061 crop->width = fmt->format.width; in preview_set_format()
2062 crop->height = fmt->format.height; in preview_set_format()
2064 preview_try_crop(prev, &fmt->format, crop); in preview_set_format()