Lines Matching refs:tvnorm
38 really stores 1024 + tvnorm->vbipack * 4 samples per line in the
39 buffer. Note tvnorm->vbipack is <= 0xFF (limit of VBIPACK_LO + HI
98 const struct bttv_tvnorm *tvnorm;
107 tvnorm = fh->vbi_fmt.tvnorm;
112 standard changes while capturing, so we use vbi_fmt.tvnorm
113 instead of btv->tvnorm to skip zero lines after video
121 - tvnorm->vbistart[0]));
124 - tvnorm->vbistart[1]));
180 if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top)
181 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top;
233 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,
245 min_start = tvnorm->vbistart[0];
247 max_end = (tvnorm->cropcap.bounds.top
248 + tvnorm->cropcap.bounds.height) >> 1;
255 f->sampling_rate = tvnorm->Fsc;
260 f2_offset = tvnorm->vbistart[1] - tvnorm->vbistart[0];
286 f->start[0] = tvnorm->vbistart[0];
287 f->start[1] = tvnorm->vbistart[1];
304 const struct bttv_tvnorm *tvnorm;
309 tvnorm = &bttv_tvnorms[btv->tvnorm];
314 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start);
322 const struct bttv_tvnorm *tvnorm;
332 tvnorm = &bttv_tvnorms[btv->tvnorm];
334 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start);
338 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] +
339 tvnorm->vbistart[0];
352 fh->vbi_fmt.tvnorm = tvnorm;
369 const struct bttv_tvnorm *tvnorm;
373 tvnorm = &bttv_tvnorms[fh->btv->tvnorm];
375 if (tvnorm != fh->vbi_fmt.tvnorm) {
383 max_end = (tvnorm->cropcap.bounds.top
384 + tvnorm->cropcap.bounds.height) >> 1;
386 frt->fmt.vbi.sampling_rate = tvnorm->Fsc;
392 + tvnorm->vbistart[i]
393 - fh->vbi_fmt.tvnorm->vbistart[i];
400 max_end += tvnorm->vbistart[1]
401 - tvnorm->vbistart[0];
409 const struct bttv_tvnorm *tvnorm;
413 tvnorm = &bttv_tvnorms[norm];
415 f->fmt.sampling_rate = tvnorm->Fsc;
419 f->fmt.start[0] = tvnorm->vbistart[0];
420 f->fmt.start[1] = tvnorm->vbistart[1];
429 real_samples_per_line = 1024 + tvnorm->vbipack * 4;
430 real_count = ((tvnorm->cropcap.defrect.top >> 1)
431 - tvnorm->vbistart[0]);
436 f->tvnorm = tvnorm;
439 f->end = tvnorm->vbistart[0] * 2 + 2;