Lines Matching refs:rect

98 	struct v4l2_rect rect;	/* Sensor window */  member
198 { MT9M001_COLUMN_START, mt9m001->rect.left }, in mt9m001_apply_selection()
199 { MT9M001_ROW_START, mt9m001->rect.top }, in mt9m001_apply_selection()
200 { MT9M001_WINDOW_WIDTH, mt9m001->rect.width - 1 }, in mt9m001_apply_selection()
202 mt9m001->rect.height + mt9m001->y_skip_top - 1 }, in mt9m001_apply_selection()
262 struct v4l2_rect rect = sel->r; in mt9m001_set_selection() local
273 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection()
276 rect.width = ALIGN(rect.width, 2); in mt9m001_set_selection()
277 rect.left = ALIGN(rect.left, 2); in mt9m001_set_selection()
279 rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, in mt9m001_set_selection()
281 rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, in mt9m001_set_selection()
282 MT9M001_COLUMN_SKIP + MT9M001_MAX_WIDTH - rect.width); in mt9m001_set_selection()
284 rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, in mt9m001_set_selection()
286 rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP, in mt9m001_set_selection()
287 MT9M001_ROW_SKIP + MT9M001_MAX_HEIGHT - rect.height); in mt9m001_set_selection()
289 mt9m001->total_h = rect.height + mt9m001->y_skip_top + in mt9m001_set_selection()
292 mt9m001->rect = rect; in mt9m001_set_selection()
315 sel->r = mt9m001->rect; in mt9m001_get_selection()
339 mf->width = mt9m001->rect.width; in mt9m001_get_fmt()
340 mf->height = mt9m001->rect.height; in mt9m001_get_fmt()
360 .r.left = mt9m001->rect.left, in mt9m001_s_fmt()
361 .r.top = mt9m001->rect.top, in mt9m001_s_fmt()
370 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
371 mf->height = mt9m001->rect.height; in mt9m001_s_fmt()
565 mt9m001->total_h = mt9m001->rect.height + in mt9m001_s_ctrl()
792 mt9m001->rect.left = MT9M001_COLUMN_SKIP; in mt9m001_probe()
793 mt9m001->rect.top = MT9M001_ROW_SKIP; in mt9m001_probe()
794 mt9m001->rect.width = MT9M001_MAX_WIDTH; in mt9m001_probe()
795 mt9m001->rect.height = MT9M001_MAX_HEIGHT; in mt9m001_probe()