• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/bt8xx/

Lines Matching defs:crop

866 		/* Do crop - use current, don't - use default parameters. */
867 __s32 top = btv->crop[!!fh->do_crop].rect.top;
873 Claim scan lines crop[].rect.top to bottom. */
920 u8 crop;
930 crop = btread(BT848_E_CROP) | 0xc0;
931 btwrite(crop, BT848_E_CROP);
933 btwrite(crop, BT848_O_CROP);
1308 bttv_crop_reset(&btv->crop[0], norm);
1309 btv->crop[1] = btv->crop[0]; /* current = default */
1735 c = btv->crop[!!fh->do_crop];
1748 /* btv->crop counts frame lines. Max. scale
1769 buf->crop.top != c.rect.top ||
1770 buf->crop.left != c.rect.left ||
1771 buf->crop.width != c.rect.width ||
1772 buf->crop.height != c.rect.height) {
1778 buf->crop = c.rect;
2154 /* Do crop - use current, don't - use default parameters. */
2155 c = &btv->crop[!!fh->do_crop];
2165 than crop.rect we adjust the crop.rect as required
2211 /* Move the crop window out of the way. */
2260 height2 = fh->btv->crop[!!fh->do_crop].rect.height >> 1;
2375 new->crop = btv->crop[!!fh->do_crop].rect;
2493 height2 = btv->crop[!!fh->do_crop].rect.height >> 1;
2752 new->crop = btv->crop[!!fh->do_crop].rect;
2826 new->crop = btv->crop[!!fh->do_crop].rect;
2993 static int bttv_g_crop(struct file *file, void *f, struct v4l2_crop *crop)
2998 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
2999 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
3002 /* No fh->do_crop = 1; because btv->crop[1] may be
3006 crop->c = btv->crop[!!fh->do_crop].rect;
3011 static int bttv_s_crop(struct file *file, void *f, struct v4l2_crop *crop)
3023 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
3024 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
3056 c.rect.left = clamp(crop->c.left, b_left, b_right - 48);
3059 c.rect.width = clamp(crop->c.width,
3062 c.rect.top = clamp(crop->c.top, b_top, b_bottom - 32);
3066 c.rect.height = clamp(crop->c.height,
3072 btv->crop[1] = c;
3259 which only change on request. These are stored in btv->crop[1].
3263 will use btv->crop[0], the default cropping parameters for the
4451 bttv_crop_reset(&btv->crop[0], btv->tvnorm);
4452 btv->crop[1] = btv->crop[0]; /* current = default */