Lines Matching refs:geo

326 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo,
346 geo->hscale = ((totalwidth*4096UL)/xsf-4096);
347 geo->hdelay = tvnorm->hdelayx1;
348 geo->hdelay = (geo->hdelay*width)/swidth;
349 geo->hdelay &= 0x3fe;
351 geo->vscale = (0x10000UL-sr) & 0x1fff;
352 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) |
354 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0;
355 geo->vdelay = vdelay;
356 geo->width = width;
357 geo->sheight = tvnorm->sheight;
358 geo->vtotal = tvnorm->vtotal;
361 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0);
362 geo->comb = (width < 769) ? 1 : 0;
364 geo->vtc = 0;
365 geo->comb = 0;
371 struct bttv_geometry * geo,
388 bttv_calc_geo_old(btv, geo, width, height,
398 geo->width = width;
399 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096;
401 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1;
403 geo->sheight = c_height;
404 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY;
407 geo->vscale = (0x10000UL - sr) & 0x1fff;
408 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0;
409 geo->vtotal = tvnorm->vtotal;
411 geo->crop = (((geo->width >> 8) & 0x03) |
412 ((geo->hdelay >> 6) & 0x0c) |
413 ((geo->sheight >> 4) & 0x30) |
414 ((geo->vdelay >> 2) & 0xc0));
417 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0);
418 geo->comb = (width < 769) ? 1 : 0;
420 geo->vtc = 0;
421 geo->comb = 0;
426 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd)
430 if (geo->comb)
435 btwrite(geo->vtc, BT848_E_VTC+off);
436 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off);
437 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off);
438 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off);
439 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off);
440 btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off);
441 btwrite(geo->hdelay & 0xff, BT848_E_HDELAY_LO+off);
442 btwrite(geo->sheight & 0xff, BT848_E_VACTIVE_LO+off);
443 btwrite(geo->vdelay & 0xff, BT848_E_VDELAY_LO+off);
444 btwrite(geo->crop, BT848_E_CROP+off);
445 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI);
446 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO);
608 if (vbi->geo.vdelay > vdelay) {
609 vdelay = vbi->geo.vdelay & 0xfe;
610 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0);
654 bttv_apply_geo(btv, &set->top->geo, 1);
655 bttv_apply_geo(btv, &set->bottom->geo,0);
668 bttv_apply_geo(btv, &set->top->geo,1);
669 bttv_apply_geo(btv, &set->top->geo,0);
679 bttv_apply_geo(btv, &set->bottom->geo,1);
680 bttv_apply_geo(btv, &set->bottom->geo,0);
711 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height,
765 bttv_calc_geo(btv,&buf->geo,buf->vb.width,
774 bttv_calc_geo(btv,&buf->geo,buf->vb.width,
783 bttv_calc_geo(btv,&buf->geo,buf->vb.width,
806 bttv_calc_geo(btv,&buf->geo,buf->vb.width,
838 bttv_calc_geo(btv,&buf->geo,tvnorm->swidth,tvnorm->sheight,
868 bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height,