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