Lines Matching refs:crop
704 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock()
755 u8 crop; in disclaim_video_lines() local
765 crop = btread(BT848_E_CROP) | 0xc0; in disclaim_video_lines()
766 btwrite(crop, BT848_E_CROP); in disclaim_video_lines()
768 btwrite(crop, BT848_O_CROP); in disclaim_video_lines()
1159 bttv_crop_reset(&btv->crop[0], norm); in set_tvnorm()
1160 btv->crop[1] = btv->crop[0]; /* current = default */ in set_tvnorm()
1595 c = btv->crop[!!fh->do_crop]; in bttv_prepare_buffer()
1627 buf->crop.top != c.rect.top || in bttv_prepare_buffer()
1628 buf->crop.left != c.rect.left || in bttv_prepare_buffer()
1629 buf->crop.width != c.rect.width || in bttv_prepare_buffer()
1630 buf->crop.height != c.rect.height) { in bttv_prepare_buffer()
1636 buf->crop = c.rect; in bttv_prepare_buffer()
2016 c = &btv->crop[!!fh->do_crop]; in limit_scaled_size_lock()
2131 height2 = fh->btv->crop[!!fh->do_crop].rect.height >> 1; in verify_window_lock()
2238 new->crop = btv->crop[!!fh->do_crop].rect; in setup_window_lock()
2382 height2 = btv->crop[!!fh->do_crop].rect.height >> 1; in bttv_try_fmt_vid_cap()
2629 new->crop = btv->crop[!!fh->do_crop].rect; in bttv_overlay()
2702 new->crop = btv->crop[!!fh->do_crop].rect; in bttv_s_fbuf()
2825 static int bttv_g_crop(struct file *file, void *f, struct v4l2_crop *crop) in bttv_g_crop() argument
2830 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && in bttv_g_crop()
2831 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) in bttv_g_crop()
2838 crop->c = btv->crop[!!fh->do_crop].rect; in bttv_g_crop()
2843 static int bttv_s_crop(struct file *file, void *f, const struct v4l2_crop *crop) in bttv_s_crop() argument
2855 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && in bttv_s_crop()
2856 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) in bttv_s_crop()
2880 c.rect.left = clamp_t(s32, crop->c.left, b_left, b_right - 48); in bttv_s_crop()
2883 c.rect.width = clamp_t(s32, crop->c.width, in bttv_s_crop()
2886 c.rect.top = clamp_t(s32, crop->c.top, b_top, b_bottom - 32); in bttv_s_crop()
2890 c.rect.height = clamp_t(s32, crop->c.height, in bttv_s_crop()
2896 btv->crop[1] = c; in bttv_s_crop()
4218 bttv_crop_reset(&btv->crop[0], btv->tvnorm); in bttv_probe()
4219 btv->crop[1] = btv->crop[0]; /* current = default */ in bttv_probe()