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