Lines Matching refs:vbi
3 * vivid-vbi-cap.c - vbi capture support functions.
15 #include "vivid-vbi-cap.h"
16 #include "vivid-vbi-gen.h"
66 static void vivid_g_fmt_vbi_cap(struct vivid_dev *dev, struct v4l2_vbi_format *vbi)
70 vbi->sampling_rate = 27000000;
71 vbi->offset = 24;
72 vbi->samples_per_line = 1440;
73 vbi->sample_format = V4L2_PIX_FMT_GREY;
74 vbi->start[0] = is_60hz ? V4L2_VBI_ITU_525_F1_START + 9 : V4L2_VBI_ITU_625_F1_START + 5;
75 vbi->start[1] = is_60hz ? V4L2_VBI_ITU_525_F2_START + 9 : V4L2_VBI_ITU_625_F2_START + 5;
76 vbi->count[0] = vbi->count[1] = is_60hz ? 12 : 18;
77 vbi->flags = dev->vbi_cap_interlaced ? V4L2_VBI_INTERLACED : 0;
78 vbi->reserved[0] = 0;
79 vbi->reserved[1] = 0;
84 struct v4l2_vbi_format vbi;
87 vivid_g_fmt_vbi_cap(dev, &vbi);
97 vivid_vbi_gen_raw(&dev->vbi_gen, &vbi, vbuf);
241 struct v4l2_vbi_format *vbi = &f->fmt.vbi;
246 vivid_g_fmt_vbi_cap(dev, vbi);
263 void vivid_fill_service_lines(struct v4l2_sliced_vbi_format *vbi, u32 service_set)
265 vbi->io_size = sizeof(struct v4l2_sliced_vbi_data) * 36;
266 vbi->service_set = service_set;
267 memset(vbi->service_lines, 0, sizeof(vbi->service_lines));
268 memset(vbi->reserved, 0, sizeof(vbi->reserved));
270 if (vbi->service_set == 0)
273 if (vbi->service_set & V4L2_SLICED_CAPTION_525) {
274 vbi->service_lines[0][21] = V4L2_SLICED_CAPTION_525;
275 vbi->service_lines[1][21] = V4L2_SLICED_CAPTION_525;
277 if (vbi->service_set & V4L2_SLICED_WSS_625) {
281 vbi->service_lines[0][i] =
282 vbi->service_lines[1][i] = V4L2_SLICED_TELETEXT_B;
283 vbi->service_lines[0][23] = V4L2_SLICED_WSS_625;
290 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
295 vivid_fill_service_lines(vbi, dev->service_set_cap);
302 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
304 u32 service_set = vbi->service_set;
311 vivid_fill_service_lines(vbi, service_set);
318 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
325 dev->service_set_cap = vbi->service_set;