Lines Matching refs:crop

352 	geo->crop   =  ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) |  in bttv_calc_geo_old()
376 const struct v4l2_rect * crop) in bttv_calc_geo() argument
382 if ((crop->left == tvnorm->cropcap.defrect.left in bttv_calc_geo()
383 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo()
384 && crop->width == tvnorm->cropcap.defrect.width in bttv_calc_geo()
385 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo()
395 c_width = min((unsigned int) crop->width, width * 16); in bttv_calc_geo()
396 c_height = min((unsigned int) crop->height, height * 16); in bttv_calc_geo()
401 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; in bttv_calc_geo()
404 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
411 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
444 btwrite(geo->crop, BT848_E_CROP+off); in bttv_apply_geo()
598 unsigned int crop, vdelay; in bttv_buffer_activate_vbi() local
604 crop = btread(BT848_E_CROP); in bttv_buffer_activate_vbi()
605 vdelay = btread(BT848_E_VDELAY_LO) + ((crop & 0xc0) << 2); in bttv_buffer_activate_vbi()
609 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0); in bttv_buffer_activate_vbi()
612 btwrite(crop, BT848_E_CROP); in bttv_buffer_activate_vbi()
614 btwrite(crop, BT848_O_CROP); in bttv_buffer_activate_vbi()
712 tvnorm,&buf->crop); in bttv_buffer_risc()
766 tvnorm,&buf->crop); in bttv_buffer_risc()
775 tvnorm,&buf->crop); in bttv_buffer_risc()
784 tvnorm,&buf->crop); in bttv_buffer_risc()
807 tvnorm,&buf->crop); in bttv_buffer_risc()
838 1,tvnorm,&buf->crop); in bttv_buffer_risc()
869 &bttv_tvnorms[ov->tvnorm],&buf->crop); in bttv_overlay_risc()