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()
261 struct v4l2_rect rect = sel->r; in mt9m001_set_selection() local
272 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection()
275 rect.width = ALIGN(rect.width, 2); in mt9m001_set_selection()
276 rect.left = ALIGN(rect.left, 2); in mt9m001_set_selection()
278 rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, in mt9m001_set_selection()
280 rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, in mt9m001_set_selection()
281 MT9M001_COLUMN_SKIP + MT9M001_MAX_WIDTH - rect.width); in mt9m001_set_selection()
283 rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, in mt9m001_set_selection()
285 rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP, in mt9m001_set_selection()
286 MT9M001_ROW_SKIP + MT9M001_MAX_HEIGHT - rect.height); in mt9m001_set_selection()
288 mt9m001->total_h = rect.height + mt9m001->y_skip_top + in mt9m001_set_selection()
291 mt9m001->rect = rect; in mt9m001_set_selection()
314 sel->r = mt9m001->rect; in mt9m001_get_selection()
338 mf->width = mt9m001->rect.width; in mt9m001_get_fmt()
339 mf->height = mt9m001->rect.height; in mt9m001_get_fmt()
359 .r.left = mt9m001->rect.left, in mt9m001_s_fmt()
360 .r.top = mt9m001->rect.top, in mt9m001_s_fmt()
369 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
370 mf->height = mt9m001->rect.height; in mt9m001_s_fmt()
564 mt9m001->total_h = mt9m001->rect.height + in mt9m001_s_ctrl()
789 mt9m001->rect.left = MT9M001_COLUMN_SKIP; in mt9m001_probe()
790 mt9m001->rect.top = MT9M001_ROW_SKIP; in mt9m001_probe()
791 mt9m001->rect.width = MT9M001_MAX_WIDTH; in mt9m001_probe()
792 mt9m001->rect.height = MT9M001_MAX_HEIGHT; in mt9m001_probe()