Lines Matching full:cx
25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument
45 int idx = cx->vbi.frame % CX18_VBI_FRAMES; in copy_vbi_data()
46 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data()
49 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data()
89 cx->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data()
95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
98 u32 lines = cx->vbi.count * 2; in compress_raw_buf()
128 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument
134 u32 line_size = cx->is_60hz ? VBI_HBLANK_SAMPLES_60HZ in compress_sliced_buf()
163 v4l2_subdev_call(cx->sd_av, vbi, decode_vbi_line, &vbi); in compress_sliced_buf()
165 cx->vbi.sliced_data[line].id = vbi.type; in compress_sliced_buf()
166 cx->vbi.sliced_data[line].field = vbi.is_second_field; in compress_sliced_buf()
167 cx->vbi.sliced_data[line].line = vbi.line; in compress_sliced_buf()
168 memcpy(cx->vbi.sliced_data[line].data, vbi.p, 42); in compress_sliced_buf()
175 static void _cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf) in _cx18_process_vbi_data() argument
200 if (cx18_raw_vbi(cx)) { in _cx18_process_vbi_data()
203 compress_raw_buf(cx, p, size, sizeof(struct vbi_data_hdr)); in _cx18_process_vbi_data()
210 memcpy(p, &cx->vbi.frame, 4); in _cx18_process_vbi_data()
211 cx->vbi.frame++; in _cx18_process_vbi_data()
220 lines = compress_sliced_buf(cx, p, size, sizeof(struct vbi_data_hdr)); in _cx18_process_vbi_data()
224 cx->vbi.sliced_data[0].id = 0; in _cx18_process_vbi_data()
225 cx->vbi.sliced_data[0].line = 0; in _cx18_process_vbi_data()
226 cx->vbi.sliced_data[0].field = 0; in _cx18_process_vbi_data()
229 buf->bytesused = size = lines * sizeof(cx->vbi.sliced_data[0]); in _cx18_process_vbi_data()
230 memcpy(p, &cx->vbi.sliced_data[0], size); in _cx18_process_vbi_data()
232 if (cx->vbi.insert_mpeg) in _cx18_process_vbi_data()
233 copy_vbi_data(cx, lines, pts); in _cx18_process_vbi_data()
234 cx->vbi.frame++; in _cx18_process_vbi_data()
237 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, in cx18_process_vbi_data() argument
260 _cx18_process_vbi_data(cx, buf); in cx18_process_vbi_data()