18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * vivid-vbi-cap.h - vbi capture support functions. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _VIVID_VBI_CAP_H_ 98c2ecf20Sopenharmony_ci#define _VIVID_VBI_CAP_H_ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_civoid vivid_fill_time_of_day_packet(u8 *packet); 128c2ecf20Sopenharmony_civoid vivid_raw_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf); 138c2ecf20Sopenharmony_civoid vivid_sliced_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf); 148c2ecf20Sopenharmony_civoid vivid_sliced_vbi_out_process(struct vivid_dev *dev, struct vivid_buffer *buf); 158c2ecf20Sopenharmony_ciint vidioc_g_fmt_vbi_cap(struct file *file, void *priv, 168c2ecf20Sopenharmony_ci struct v4l2_format *f); 178c2ecf20Sopenharmony_ciint vidioc_s_fmt_vbi_cap(struct file *file, void *priv, 188c2ecf20Sopenharmony_ci struct v4l2_format *f); 198c2ecf20Sopenharmony_ciint vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 208c2ecf20Sopenharmony_ciint vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 218c2ecf20Sopenharmony_ciint vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 228c2ecf20Sopenharmony_ciint vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap); 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_civoid vivid_fill_service_lines(struct v4l2_sliced_vbi_format *vbi, u32 service_set); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciextern const struct vb2_ops vivid_vbi_cap_qops; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif 29