Lines Matching refs:crop

1069 	unsigned int sph = prev->crop.left;  in preview_config_input_size()
1070 unsigned int eph = prev->crop.left + prev->crop.width - 1; in preview_config_input_size()
1071 unsigned int slv = prev->crop.top; in preview_config_input_size()
1072 unsigned int elv = prev->crop.top + prev->crop.height - 1; in preview_config_input_size()
1701 return &prev->crop; in __preview_get_crop()
1740 struct v4l2_rect *crop; in preview_try_format() local
1794 crop = __preview_get_crop(prev, cfg, which); in preview_try_format()
1795 fmt->width = crop->width; in preview_try_format()
1796 fmt->height = crop->height; in preview_try_format()
1819 struct v4l2_rect *crop) in preview_try_crop() argument
1849 crop->left &= ~1; in preview_try_crop()
1850 crop->top &= ~1; in preview_try_crop()
1852 crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); in preview_try_crop()
1853 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); in preview_try_crop()
1854 crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, in preview_try_crop()
1855 right - crop->left); in preview_try_crop()
1856 crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT, in preview_try_crop()
1857 bottom - crop->top); in preview_try_crop()
2042 struct v4l2_rect *crop; in preview_set_format() local
2054 crop = __preview_get_crop(prev, cfg, fmt->which); in preview_set_format()
2055 crop->left = 0; in preview_set_format()
2056 crop->top = 0; in preview_set_format()
2057 crop->width = fmt->format.width; in preview_set_format()
2058 crop->height = fmt->format.height; in preview_set_format()
2060 preview_try_crop(prev, &fmt->format, crop); in preview_set_format()