xref: /linux/drivers/media/test-drivers/vivid/vivid-vbi-cap.h (revision e65e175b07bef5974045cc42238de99057669ca7)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * vivid-vbi-cap.h - vbi capture support functions.
4  *
5  * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6  */
7 
8 #ifndef _VIVID_VBI_CAP_H_
9 #define _VIVID_VBI_CAP_H_
10 
11 void vivid_fill_time_of_day_packet(u8 *packet);
12 void vivid_raw_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf);
13 void vivid_sliced_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf);
14 void vivid_sliced_vbi_out_process(struct vivid_dev *dev, struct vivid_buffer *buf);
15 int vidioc_g_fmt_vbi_cap(struct file *file, void *priv,
16 					struct v4l2_format *f);
17 int vidioc_s_fmt_vbi_cap(struct file *file, void *priv,
18 					struct v4l2_format *f);
19 int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
20 int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
21 int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt);
22 int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap);
23 
24 void vivid_fill_service_lines(struct v4l2_sliced_vbi_format *vbi, u32 service_set);
25 
26 extern const struct vb2_ops vivid_vbi_cap_qops;
27 
28 #endif
29