Lines Matching refs:cr
443 struct v4l2_cropcap *cr)
448 f = get_frame(ctx, cr->type);
452 cr->bounds.left = 0;
453 cr->bounds.top = 0;
454 cr->bounds.width = f->width;
455 cr->bounds.height = f->height;
456 cr->defrect = cr->bounds;
460 static int vidioc_g_crop(struct file *file, void *prv, struct v4l2_crop *cr)
465 f = get_frame(ctx, cr->type);
469 cr->c.left = f->o_height;
470 cr->c.top = f->o_width;
471 cr->c.width = f->c_width;
472 cr->c.height = f->c_height;
476 static int vidioc_try_crop(struct file *file, void *prv, struct v4l2_crop *cr)
482 f = get_frame(ctx, cr->type);
486 if (cr->c.top < 0 || cr->c.left < 0) {
495 static int vidioc_s_crop(struct file *file, void *prv, struct v4l2_crop *cr)
501 ret = vidioc_try_crop(file, prv, cr);
504 f = get_frame(ctx, cr->type);
508 f->c_width = cr->c.width;
509 f->c_height = cr->c.height;
510 f->o_width = cr->c.left;
511 f->o_height = cr->c.top;