Lines Matching refs:tvnorm

179 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,
191 min_start = tvnorm->vbistart[0];
193 max_end = (tvnorm->cropcap.bounds.top
194 + tvnorm->cropcap.bounds.height) >> 1;
201 f->sampling_rate = tvnorm->Fsc;
206 f2_offset = tvnorm->vbistart[1] - tvnorm->vbistart[0];
232 f->start[0] = tvnorm->vbistart[0];
233 f->start[1] = tvnorm->vbistart[1];
249 const struct bttv_tvnorm *tvnorm;
254 tvnorm = &bttv_tvnorms[btv->tvnorm];
259 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start);
266 const struct bttv_tvnorm *tvnorm;
276 tvnorm = &bttv_tvnorms[btv->tvnorm];
278 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start);
282 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] +
283 tvnorm->vbistart[0];
294 btv->vbi_fmt.tvnorm = tvnorm;
308 const struct bttv_tvnorm *tvnorm;
313 tvnorm = &bttv_tvnorms[btv->tvnorm];
315 if (tvnorm != btv->vbi_fmt.tvnorm) {
323 max_end = (tvnorm->cropcap.bounds.top
324 + tvnorm->cropcap.bounds.height) >> 1;
326 frt->fmt.vbi.sampling_rate = tvnorm->Fsc;
331 new_start = frt->fmt.vbi.start[i] + tvnorm->vbistart[i]
332 - btv->vbi_fmt.tvnorm->vbistart[i];
339 max_end += tvnorm->vbistart[1]
340 - tvnorm->vbistart[0];
348 const struct bttv_tvnorm *tvnorm;
352 tvnorm = &bttv_tvnorms[norm];
354 f->fmt.sampling_rate = tvnorm->Fsc;
358 f->fmt.start[0] = tvnorm->vbistart[0];
359 f->fmt.start[1] = tvnorm->vbistart[1];
368 real_samples_per_line = 1024 + tvnorm->vbipack * 4;
369 real_count = ((tvnorm->cropcap.defrect.top >> 1)
370 - tvnorm->vbistart[0]);
375 f->tvnorm = tvnorm;
378 f->end = tvnorm->vbistart[0] * 2 + 2;