Lines Matching refs:rect

210 	struct v4l2_rect rect;	/* cropping rectangle */  member
320 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx() argument
324 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx()
326 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx()
334 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry() argument
340 ret = reg_write(COLUMN_START, rect->left); in mt9m111_setup_geometry()
342 ret = reg_write(ROW_START, rect->top); in mt9m111_setup_geometry()
345 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry()
347 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry()
353 rect, width, height); in mt9m111_setup_geometry()
356 rect, width, height); in mt9m111_setup_geometry()
360 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
389 struct v4l2_rect rect = a->c; in mt9m111_s_crop() local
400 rect.width = ALIGN(rect.width, 2); in mt9m111_s_crop()
401 rect.height = ALIGN(rect.height, 2); in mt9m111_s_crop()
406 soc_camera_limit_side(&rect.left, &rect.width, in mt9m111_s_crop()
409 soc_camera_limit_side(&rect.top, &rect.height, in mt9m111_s_crop()
412 width = min(mt9m111->width, rect.width); in mt9m111_s_crop()
413 height = min(mt9m111->height, rect.height); in mt9m111_s_crop()
415 ret = mt9m111_setup_geometry(mt9m111, &rect, width, height, mt9m111->fmt->code); in mt9m111_s_crop()
417 mt9m111->rect = rect; in mt9m111_s_crop()
429 a->c = mt9m111->rect; in mt9m111_g_crop()
541 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_try_fmt() local
554 rect->width = ALIGN(rect->width, 2); in mt9m111_try_fmt()
555 rect->height = ALIGN(rect->height, 2); in mt9m111_try_fmt()
560 mf->width = rect->width; in mt9m111_try_fmt()
561 mf->height = rect->height; in mt9m111_try_fmt()
564 if (mf->width > rect->width) in mt9m111_try_fmt()
565 mf->width = rect->width; in mt9m111_try_fmt()
566 if (mf->height > rect->height) in mt9m111_try_fmt()
567 mf->height = rect->height; in mt9m111_try_fmt()
584 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_s_fmt() local
591 ret = mt9m111_setup_geometry(mt9m111, rect, mf->width, mf->height, mf->code); in mt9m111_s_fmt()
767 mt9m111_setup_geometry(mt9m111, &mt9m111->rect, in mt9m111_restore_state()
968 mt9m111->rect.left = MT9M111_MIN_DARK_COLS; in mt9m111_probe()
969 mt9m111->rect.top = MT9M111_MIN_DARK_ROWS; in mt9m111_probe()
970 mt9m111->rect.width = MT9M111_MAX_WIDTH; in mt9m111_probe()
971 mt9m111->rect.height = MT9M111_MAX_HEIGHT; in mt9m111_probe()