Lines Matching refs:cr
408 struct v4l2_cropcap *cr) in vidioc_cropcap() argument
413 f = get_frame(ctx, cr->type); in vidioc_cropcap()
417 cr->bounds.left = 0; in vidioc_cropcap()
418 cr->bounds.top = 0; in vidioc_cropcap()
419 cr->bounds.width = f->width; in vidioc_cropcap()
420 cr->bounds.height = f->height; in vidioc_cropcap()
421 cr->defrect = cr->bounds; in vidioc_cropcap()
425 static int vidioc_g_crop(struct file *file, void *prv, struct v4l2_crop *cr) in vidioc_g_crop() argument
430 f = get_frame(ctx, cr->type); in vidioc_g_crop()
434 cr->c.left = f->o_height; in vidioc_g_crop()
435 cr->c.top = f->o_width; in vidioc_g_crop()
436 cr->c.width = f->c_width; in vidioc_g_crop()
437 cr->c.height = f->c_height; in vidioc_g_crop()
441 static int vidioc_try_crop(struct file *file, void *prv, const struct v4l2_crop *cr) in vidioc_try_crop() argument
447 f = get_frame(ctx, cr->type); in vidioc_try_crop()
451 if (cr->c.top < 0 || cr->c.left < 0) { in vidioc_try_crop()
460 static int vidioc_s_crop(struct file *file, void *prv, const struct v4l2_crop *cr) in vidioc_s_crop() argument
466 ret = vidioc_try_crop(file, prv, cr); in vidioc_s_crop()
469 f = get_frame(ctx, cr->type); in vidioc_s_crop()
473 f->c_width = cr->c.width; in vidioc_s_crop()
474 f->c_height = cr->c.height; in vidioc_s_crop()
475 f->o_width = cr->c.left; in vidioc_s_crop()
476 f->o_height = cr->c.top; in vidioc_s_crop()