Lines Matching refs:tvnorm
177 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,
189 min_start = tvnorm->vbistart[0];
191 max_end = (tvnorm->cropcap.bounds.top
192 + tvnorm->cropcap.bounds.height) >> 1;
199 f->sampling_rate = tvnorm->Fsc;
204 f2_offset = tvnorm->vbistart[1] - tvnorm->vbistart[0];
230 f->start[0] = tvnorm->vbistart[0];
231 f->start[1] = tvnorm->vbistart[1];
247 const struct bttv_tvnorm *tvnorm;
252 tvnorm = &bttv_tvnorms[btv->tvnorm];
257 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start);
264 const struct bttv_tvnorm *tvnorm;
274 tvnorm = &bttv_tvnorms[btv->tvnorm];
276 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start);
280 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] +
281 tvnorm->vbistart[0];
292 btv->vbi_fmt.tvnorm = tvnorm;
306 const struct bttv_tvnorm *tvnorm;
311 tvnorm = &bttv_tvnorms[btv->tvnorm];
313 if (tvnorm != btv->vbi_fmt.tvnorm) {
321 max_end = (tvnorm->cropcap.bounds.top
322 + tvnorm->cropcap.bounds.height) >> 1;
324 frt->fmt.vbi.sampling_rate = tvnorm->Fsc;
329 new_start = frt->fmt.vbi.start[i] + tvnorm->vbistart[i]
330 - btv->vbi_fmt.tvnorm->vbistart[i];
337 max_end += tvnorm->vbistart[1]
338 - tvnorm->vbistart[0];
346 const struct bttv_tvnorm *tvnorm;
350 tvnorm = &bttv_tvnorms[norm];
352 f->fmt.sampling_rate = tvnorm->Fsc;
356 f->fmt.start[0] = tvnorm->vbistart[0];
357 f->fmt.start[1] = tvnorm->vbistart[1];
366 real_samples_per_line = 1024 + tvnorm->vbipack * 4;
367 real_count = ((tvnorm->cropcap.defrect.top >> 1)
368 - tvnorm->vbistart[0]);
373 f->tvnorm = tvnorm;
376 f->end = tvnorm->vbistart[0] * 2 + 2;