Lines Matching refs:vbi
3 * vivid-vbi-out.c - vbi output support functions.
15 #include "vivid-vbi-out.h"
16 #include "vivid-vbi-cap.h"
140 struct v4l2_vbi_format *vbi = &f->fmt.vbi;
146 vbi->sampling_rate = 25000000;
147 vbi->offset = 24;
148 vbi->samples_per_line = 1440;
149 vbi->sample_format = V4L2_PIX_FMT_GREY;
150 vbi->start[0] = is_60hz ? V4L2_VBI_ITU_525_F1_START + 9 : V4L2_VBI_ITU_625_F1_START + 5;
151 vbi->start[1] = is_60hz ? V4L2_VBI_ITU_525_F2_START + 9 : V4L2_VBI_ITU_625_F2_START + 5;
152 vbi->count[0] = vbi->count[1] = is_60hz ? 12 : 18;
153 vbi->flags = dev->vbi_cap_interlaced ? V4L2_VBI_INTERLACED : 0;
154 vbi->reserved[0] = 0;
155 vbi->reserved[1] = 0;
177 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
182 vivid_fill_service_lines(vbi, dev->service_set_out);
189 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
191 u32 service_set = vbi->service_set;
198 vivid_fill_service_lines(vbi, service_set);
206 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
213 dev->service_set_out = vbi->service_set;
222 struct v4l2_sliced_vbi_data *vbi =
225 vb2_get_plane_payload(&buf->vb.vb2_buf, 0) / sizeof(*vbi);
231 switch (vbi->id) {
233 if ((dev->std_out & V4L2_STD_525_60) && vbi->line == 21) {
234 dev->vbi_out_have_cc[!!vbi->field] = true;
235 dev->vbi_out_cc[!!vbi->field][0] = vbi->data[0];
236 dev->vbi_out_cc[!!vbi->field][1] = vbi->data[1];
241 vbi->field == 0 && vbi->line == 23) {
243 dev->vbi_out_wss[0] = vbi->data[0];
244 dev->vbi_out_wss[1] = vbi->data[1];
248 vbi++;