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