Lines Matching defs:geo

237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo,
257 geo->hscale = ((totalwidth*4096UL)/xsf-4096);
258 geo->hdelay = tvnorm->hdelayx1;
259 geo->hdelay = (geo->hdelay*width)/swidth;
260 geo->hdelay &= 0x3fe;
262 geo->vscale = (0x10000UL-sr) & 0x1fff;
263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) |
265 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0;
266 geo->vdelay = vdelay;
267 geo->width = width;
268 geo->sheight = tvnorm->sheight;
269 geo->vtotal = tvnorm->vtotal;
272 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0);
273 geo->comb = (width < 769) ? 1 : 0;
275 geo->vtc = 0;
276 geo->comb = 0;
282 struct bttv_geometry * geo,
299 bttv_calc_geo_old(btv, geo, width, height,
309 geo->width = width;
310 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096;
312 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1;
314 geo->sheight = c_height;
315 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY;
318 geo->vscale = (0x10000UL - sr) & 0x1fff;
319 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0;
320 geo->vtotal = tvnorm->vtotal;
322 geo->crop = (((geo->width >> 8) & 0x03) |
323 ((geo->hdelay >> 6) & 0x0c) |
324 ((geo->sheight >> 4) & 0x30) |
325 ((geo->vdelay >> 2) & 0xc0));
328 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0);
329 geo->comb = (width < 769) ? 1 : 0;
331 geo->vtc = 0;
332 geo->comb = 0;
337 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd)
341 if (geo->comb)
346 btwrite(geo->vtc, BT848_E_VTC+off);
347 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off);
348 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off);
349 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off);
350 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off);
351 btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off);
352 btwrite(geo->hdelay & 0xff, BT848_E_HDELAY_LO+off);
353 btwrite(geo->sheight & 0xff, BT848_E_VACTIVE_LO+off);
354 btwrite(geo->vdelay & 0xff, BT848_E_VDELAY_LO+off);
355 btwrite(geo->crop, BT848_E_CROP+off);
356 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI);
357 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO);
548 buf->geo.vdelay = min_vdelay;
576 if (vbi->geo.vdelay > vdelay) {
577 vdelay = vbi->geo.vdelay & 0xfe;
578 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0);
619 bttv_apply_geo(btv, &set->top->geo, 1);
620 bttv_apply_geo(btv, &set->bottom->geo,0);
632 bttv_apply_geo(btv, &set->top->geo,1);
633 bttv_apply_geo(btv, &set->top->geo,0);
642 bttv_apply_geo(btv, &set->bottom->geo,1);
643 bttv_apply_geo(btv, &set->bottom->geo,0);
673 bttv_calc_geo(btv, &buf->geo, btv->width, btv->height,
723 bttv_calc_geo(btv, &buf->geo, btv->width, btv->height,
733 bttv_calc_geo(btv, &buf->geo, btv->width, btv->height,
743 bttv_calc_geo(btv, &buf->geo, btv->width, btv->height,
763 bttv_calc_geo(btv, &buf->geo, btv->width, btv->height,
791 bttv_calc_geo(btv, &buf->geo, tvnorm->swidth, tvnorm->sheight,