Lines Matching refs:crop
360 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
384 const struct v4l2_rect * crop) in bttv_calc_geo() argument
390 if ((crop->left == tvnorm->cropcap.defrect.left in bttv_calc_geo()
391 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo()
392 && crop->width == tvnorm->cropcap.defrect.width in bttv_calc_geo()
393 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo()
403 c_width = min((unsigned int) crop->width, width * 16); in bttv_calc_geo()
404 c_height = min((unsigned int) crop->height, height * 16); in bttv_calc_geo()
409 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; in bttv_calc_geo()
412 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
419 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
452 btwrite(geo->crop, BT848_E_CROP+off); in bttv_apply_geo()
608 unsigned int crop, vdelay; in bttv_buffer_activate_vbi() local
614 crop = btread(BT848_E_CROP); in bttv_buffer_activate_vbi()
615 vdelay = btread(BT848_E_VDELAY_LO) + ((crop & 0xc0) << 2); in bttv_buffer_activate_vbi()
619 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0); in bttv_buffer_activate_vbi()
622 btwrite(crop, BT848_E_CROP); in bttv_buffer_activate_vbi()
624 btwrite(crop, BT848_O_CROP); in bttv_buffer_activate_vbi()
723 tvnorm,&buf->crop); in bttv_buffer_risc()
777 tvnorm,&buf->crop); in bttv_buffer_risc()
786 tvnorm,&buf->crop); in bttv_buffer_risc()
795 tvnorm,&buf->crop); in bttv_buffer_risc()
818 tvnorm,&buf->crop); in bttv_buffer_risc()
849 1,tvnorm,&buf->crop); in bttv_buffer_risc()
881 &bttv_tvnorms[ov->tvnorm],&buf->crop); in bttv_overlay_risc()