Lines Matching refs:vbi

24 	data.data[2] = itv->vbi.vps_payload.data[0];  in ivtv_set_vps()
25 data.data[8] = itv->vbi.vps_payload.data[1]; in ivtv_set_vps()
26 data.data[9] = itv->vbi.vps_payload.data[2]; in ivtv_set_vps()
27 data.data[10] = itv->vbi.vps_payload.data[3]; in ivtv_set_vps()
28 data.data[11] = itv->vbi.vps_payload.data[4]; in ivtv_set_vps()
29 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_vps()
43 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_cc()
48 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_cc()
71 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_wss()
87 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_line()
123 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_cc_lines()
187 int idx = itv->vbi.frame % IVTV_VBI_FRAMES; in copy_vbi_data()
188 u8 *dst = &itv->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data()
193 if (itv->vbi.sliced_data[i].id == 0) in copy_vbi_data()
196 l = itv->vbi.sliced_data[i].line - 6; in copy_vbi_data()
197 f = itv->vbi.sliced_data[i].field; in copy_vbi_data()
205 ivtv_service2vbi(itv->vbi.sliced_data[i].id); in copy_vbi_data()
206 memcpy(dst + sd + 12 + line * 43 + 1, itv->vbi.sliced_data[i].data, 42); in copy_vbi_data()
231 itv->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data()
279 itv->vbi.sliced_dec_data[line].line = l; in ivtv_convert_ivtv_vbi()
280 itv->vbi.sliced_dec_data[line].field = i >= 18; in ivtv_convert_ivtv_vbi()
281 itv->vbi.sliced_dec_data[line].id = id2; in ivtv_convert_ivtv_vbi()
282 memcpy(itv->vbi.sliced_dec_data[line].data, p + 1, 42); in ivtv_convert_ivtv_vbi()
288 itv->vbi.sliced_dec_data[line].id = 0; in ivtv_convert_ivtv_vbi()
289 itv->vbi.sliced_dec_data[line].line = 0; in ivtv_convert_ivtv_vbi()
290 itv->vbi.sliced_dec_data[line].field = 0; in ivtv_convert_ivtv_vbi()
293 return line * sizeof(itv->vbi.sliced_dec_data[0]); in ivtv_convert_ivtv_vbi()
301 u32 line_size = itv->vbi.raw_decoder_line_size; in compress_raw_buf()
302 u32 lines = itv->vbi.count; in compress_raw_buf()
303 u8 sav1 = itv->vbi.raw_decoder_sav_odd_field; in compress_raw_buf()
304 u8 sav2 = itv->vbi.raw_decoder_sav_even_field; in compress_raw_buf()
327 u32 line_size = itv->vbi.sliced_decoder_line_size; in compress_sliced_buf()
328 struct v4l2_decode_vbi_line vbi = {}; in compress_sliced_buf() local
349 vbi.p = p + 4; in compress_sliced_buf()
350 v4l2_subdev_call(itv->sd_video, vbi, decode_vbi_line, &vbi); in compress_sliced_buf()
351 if (vbi.type && !(lines & (1 << vbi.line))) { in compress_sliced_buf()
352 lines |= 1 << vbi.line; in compress_sliced_buf()
353 itv->vbi.sliced_data[line].id = vbi.type; in compress_sliced_buf()
354 itv->vbi.sliced_data[line].field = vbi.is_second_field; in compress_sliced_buf()
355 itv->vbi.sliced_data[line].line = vbi.line; in compress_sliced_buf()
356 memcpy(itv->vbi.sliced_data[line].data, vbi.p, 42); in compress_sliced_buf()
381 if (type == itv->vbi.raw_decoder_sav_even_field) { in ivtv_process_vbi_data()
385 memcpy(p, &itv->vbi.frame, 4); in ivtv_process_vbi_data()
386 itv->vbi.frame++; in ivtv_process_vbi_data()
399 itv->vbi.sliced_decoder_sav_odd_field); in ivtv_process_vbi_data()
404 itv->vbi.sliced_decoder_sav_even_field); in ivtv_process_vbi_data()
407 itv->vbi.sliced_data[0].id = 0; in ivtv_process_vbi_data()
408 itv->vbi.sliced_data[0].line = 0; in ivtv_process_vbi_data()
409 itv->vbi.sliced_data[0].field = 0; in ivtv_process_vbi_data()
412 buf->bytesused = size = lines * sizeof(itv->vbi.sliced_data[0]); in ivtv_process_vbi_data()
413 memcpy(p, &itv->vbi.sliced_data[0], size); in ivtv_process_vbi_data()
415 if (itv->vbi.insert_mpeg) { in ivtv_process_vbi_data()
418 itv->vbi.frame++; in ivtv_process_vbi_data()
443 memcpy(buf->buf, itv->vbi.sliced_dec_data, cnt); in ivtv_process_vbi_data()
446 ivtv_write_vbi(itv, itv->vbi.sliced_dec_data, in ivtv_process_vbi_data()
447 cnt / sizeof(itv->vbi.sliced_dec_data[0])); in ivtv_process_vbi_data()
458 itv->vbi.cc_payload_idx = 0; in ivtv_disable_cc()
464 struct vbi_info *vi = &itv->vbi; in ivtv_vbi_work_handler()
474 if (v4l2_subdev_call(itv->sd_video, vbi, g_vbi_data, &data) == 0) { in ivtv_vbi_work_handler()
488 if (v4l2_subdev_call(itv->sd_video, vbi, g_vbi_data, &data) == 0) { in ivtv_vbi_work_handler()
494 if (v4l2_subdev_call(itv->sd_video, vbi, g_vbi_data, &data) == 0) { in ivtv_vbi_work_handler()