Lines Matching defs:vbi
3 * vivid-vbi-out.c - vbi output support functions.
15 #include "vivid-vbi-out.h"
16 #include "vivid-vbi-cap.h"
137 struct v4l2_vbi_format *vbi = &f->fmt.vbi;
143 vbi->sampling_rate = 25000000;
144 vbi->offset = 24;
145 vbi->samples_per_line = 1440;
146 vbi->sample_format = V4L2_PIX_FMT_GREY;
147 vbi->start[0] = is_60hz ? V4L2_VBI_ITU_525_F1_START + 9 : V4L2_VBI_ITU_625_F1_START + 5;
148 vbi->start[1] = is_60hz ? V4L2_VBI_ITU_525_F2_START + 9 : V4L2_VBI_ITU_625_F2_START + 5;
149 vbi->count[0] = vbi->count[1] = is_60hz ? 12 : 18;
150 vbi->flags = dev->vbi_cap_interlaced ? V4L2_VBI_INTERLACED : 0;
151 vbi->reserved[0] = 0;
152 vbi->reserved[1] = 0;
174 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
179 vivid_fill_service_lines(vbi, dev->service_set_out);
186 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
188 u32 service_set = vbi->service_set;
195 vivid_fill_service_lines(vbi, service_set);
203 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced;
210 dev->service_set_out = vbi->service_set;
219 struct v4l2_sliced_vbi_data *vbi =
222 vb2_get_plane_payload(&buf->vb.vb2_buf, 0) / sizeof(*vbi);
228 switch (vbi->id) {
230 if ((dev->std_out & V4L2_STD_525_60) && vbi->line == 21) {
231 dev->vbi_out_have_cc[!!vbi->field] = true;
232 dev->vbi_out_cc[!!vbi->field][0] = vbi->data[0];
233 dev->vbi_out_cc[!!vbi->field][1] = vbi->data[1];
238 vbi->field == 0 && vbi->line == 23) {
240 dev->vbi_out_wss[0] = vbi->data[0];
241 dev->vbi_out_wss[1] = vbi->data[1];
245 vbi++;