Lines Matching refs:crop
362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
386 const struct v4l2_rect * crop) in bttv_calc_geo() argument
392 if ((crop->left == tvnorm->cropcap.defrect.left in bttv_calc_geo()
393 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo()
394 && crop->width == tvnorm->cropcap.defrect.width in bttv_calc_geo()
395 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo()
405 c_width = min((unsigned int) crop->width, width * 16); in bttv_calc_geo()
406 c_height = min((unsigned int) crop->height, height * 16); in bttv_calc_geo()
411 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; in bttv_calc_geo()
414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
421 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
454 btwrite(geo->crop, BT848_E_CROP+off); in bttv_apply_geo()
609 unsigned int crop, vdelay; in bttv_buffer_activate_vbi() local
615 crop = btread(BT848_E_CROP); in bttv_buffer_activate_vbi()
616 vdelay = btread(BT848_E_VDELAY_LO) + ((crop & 0xc0) << 2); in bttv_buffer_activate_vbi()
620 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0); in bttv_buffer_activate_vbi()
623 btwrite(crop, BT848_E_CROP); in bttv_buffer_activate_vbi()
625 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()
880 &bttv_tvnorms[ov->tvnorm],&buf->crop); in bttv_overlay_risc()