Lines Matching refs:rect
78 struct v4l2_rect rect; /* Sensor window */ member
202 struct v4l2_rect *rect, u16 xskip, u16 yskip) in mt9t031_set_params() argument
228 rect->left &= ~1; in mt9t031_set_params()
231 rect->left &= ~3; in mt9t031_set_params()
234 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ? in mt9t031_set_params()
235 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6); in mt9t031_set_params()
238 rect->top &= ~1; in mt9t031_set_params()
241 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params()
263 rect->left, rect->top); in mt9t031_set_params()
270 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); in mt9t031_set_params()
272 ret = reg_write(client, MT9T031_ROW_START, rect->top); in mt9t031_set_params()
274 ret = reg_write(client, MT9T031_WINDOW_WIDTH, rect->width - 1); in mt9t031_set_params()
277 rect->height + mt9t031->y_skip_top - 1); in mt9t031_set_params()
279 mt9t031->total_h = rect->height + mt9t031->y_skip_top + vblank; in mt9t031_set_params()
289 mt9t031->rect = *rect; in mt9t031_set_params()
299 struct v4l2_rect rect = a->c; in mt9t031_s_crop() local
303 rect.width = ALIGN(rect.width, 2); in mt9t031_s_crop()
304 rect.height = ALIGN(rect.height, 2); in mt9t031_s_crop()
306 soc_camera_limit_side(&rect.left, &rect.width, in mt9t031_s_crop()
309 soc_camera_limit_side(&rect.top, &rect.height, in mt9t031_s_crop()
312 return mt9t031_set_params(client, &rect, mt9t031->xskip, mt9t031->yskip); in mt9t031_s_crop()
320 a->c = mt9t031->rect; in mt9t031_g_crop()
346 mf->width = mt9t031->rect.width / mt9t031->xskip; in mt9t031_g_fmt()
347 mf->height = mt9t031->rect.height / mt9t031->yskip; in mt9t031_g_fmt()
361 struct v4l2_rect rect = mt9t031->rect; in mt9t031_s_fmt() local
367 xskip = mt9t031_skip(&rect.width, mf->width, MT9T031_MAX_WIDTH); in mt9t031_s_fmt()
368 yskip = mt9t031_skip(&rect.height, mf->height, MT9T031_MAX_HEIGHT); in mt9t031_s_fmt()
374 return mt9t031_set_params(client, &rect, xskip, yskip); in mt9t031_s_fmt()
544 mt9t031->total_h = mt9t031->rect.height + in mt9t031_s_ctrl()
807 mt9t031->rect.left = MT9T031_COLUMN_SKIP; in mt9t031_probe()
808 mt9t031->rect.top = MT9T031_ROW_SKIP; in mt9t031_probe()
809 mt9t031->rect.width = MT9T031_MAX_WIDTH; in mt9t031_probe()
810 mt9t031->rect.height = MT9T031_MAX_HEIGHT; in mt9t031_probe()