Lines Matching refs:fmt

14 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt  argument
58 #define dprintk(fmt, ...) \ argument
61 pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \
64 #define IMAGE_SIZE(fmt) \ argument
65 (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line)
79 *size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_setup()
82 fh->vbi_fmt.fmt.samples_per_line, in vbi_buffer_setup()
83 fh->vbi_fmt.fmt.start[0], in vbi_buffer_setup()
84 fh->vbi_fmt.fmt.start[1], in vbi_buffer_setup()
85 fh->vbi_fmt.fmt.count[0], in vbi_buffer_setup()
86 fh->vbi_fmt.fmt.count[1]); in vbi_buffer_setup()
103 buf->vb.size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_prepare()
119 if (fh->vbi_fmt.fmt.count[0] > 0) in vbi_buffer_prepare()
120 skip_lines0 = max(0, (fh->vbi_fmt.fmt.start[0] in vbi_buffer_prepare()
122 if (fh->vbi_fmt.fmt.count[1] > 0) in vbi_buffer_prepare()
123 skip_lines1 = max(0, (fh->vbi_fmt.fmt.start[1] in vbi_buffer_prepare()
130 buf->vbi_count[0] != fh->vbi_fmt.fmt.count[0] || in vbi_buffer_prepare()
131 buf->vbi_count[1] != fh->vbi_fmt.fmt.count[1]) { in vbi_buffer_prepare()
134 buf->vbi_count[0] = fh->vbi_fmt.fmt.count[0]; in vbi_buffer_prepare()
135 buf->vbi_count[1] = fh->vbi_fmt.fmt.count[1]; in vbi_buffer_prepare()
152 if (fh->vbi_fmt.fmt.count[0] > 0) { in vbi_buffer_prepare()
157 fh->vbi_fmt.fmt.count[0]); in vbi_buffer_prepare()
162 if (fh->vbi_fmt.fmt.count[1] > 0) { in vbi_buffer_prepare()
163 offset = fh->vbi_fmt.fmt.count[0] * VBI_BPL; in vbi_buffer_prepare()
169 fh->vbi_fmt.fmt.count[1]); in vbi_buffer_prepare()
314 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start); in bttv_try_fmt_vbi_cap()
334 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start); in bttv_s_fmt_vbi_cap()
338 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] + in bttv_s_fmt_vbi_cap()
347 end = max(frt->fmt.vbi.start[0], start1) * 2 + 2; in bttv_s_fmt_vbi_cap()
351 fh->vbi_fmt.fmt = frt->fmt.vbi; in bttv_s_fmt_vbi_cap()
371 frt->fmt.vbi = fh->vbi_fmt.fmt; in bttv_g_fmt_vbi_cap()
386 frt->fmt.vbi.sampling_rate = tvnorm->Fsc; in bttv_g_fmt_vbi_cap()
391 new_start = frt->fmt.vbi.start[i] in bttv_g_fmt_vbi_cap()
395 frt->fmt.vbi.start[i] = min(new_start, max_end - 1); in bttv_g_fmt_vbi_cap()
396 frt->fmt.vbi.count[i] = in bttv_g_fmt_vbi_cap()
397 min((__s32) frt->fmt.vbi.count[i], in bttv_g_fmt_vbi_cap()
398 max_end - frt->fmt.vbi.start[i]); in bttv_g_fmt_vbi_cap()
415 f->fmt.sampling_rate = tvnorm->Fsc; in bttv_vbi_fmt_reset()
416 f->fmt.samples_per_line = VBI_BPL; in bttv_vbi_fmt_reset()
417 f->fmt.sample_format = V4L2_PIX_FMT_GREY; in bttv_vbi_fmt_reset()
418 f->fmt.offset = VBI_OFFSET; in bttv_vbi_fmt_reset()
419 f->fmt.start[0] = tvnorm->vbistart[0]; in bttv_vbi_fmt_reset()
420 f->fmt.start[1] = tvnorm->vbistart[1]; in bttv_vbi_fmt_reset()
421 f->fmt.count[0] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
422 f->fmt.count[1] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
423 f->fmt.flags = 0; in bttv_vbi_fmt_reset()
424 f->fmt.reserved[0] = 0; in bttv_vbi_fmt_reset()
425 f->fmt.reserved[1] = 0; in bttv_vbi_fmt_reset()