Lines Matching refs:crop
278 dev_dbg(dev, "%d crop:(%d,%d) %ux%u", ctx->id,
283 int mdp_check_scaling_ratio(const struct v4l2_rect *crop,
289 crop_w = crop->width;
290 crop_h = crop->height;
319 r1 = frame->crop.c.width * frame->crop.c.height;
436 static void mdp_set_src_crop(struct img_crop *c, struct mdp_crop *crop)
438 c->left = crop->c.left
439 + mdp_to_fixed(&c->left_subpix, &crop->left_subpix);
440 c->top = crop->c.top
441 + mdp_to_fixed(&c->top_subpix, &crop->top_subpix);
442 c->width = crop->c.width
443 + mdp_to_fixed(&c->width_subpix, &crop->width_subpix);
444 c->height = crop->c.height
445 + mdp_to_fixed(&c->height_subpix, &crop->height_subpix);
477 mdp_set_src_crop(&out->crop, &frame->crop);
508 frame->crop.c.width = param->output.format.fmt.pix_mp.width;
509 frame->crop.c.height = param->output.format.fmt.pix_mp.height;