18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * vivid-vbi-gen.h - vbi generator 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_GEN_H_ 98c2ecf20Sopenharmony_ci#define _VIVID_VBI_GEN_H_ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct vivid_vbi_gen_data { 128c2ecf20Sopenharmony_ci struct v4l2_sliced_vbi_data data[25]; 138c2ecf20Sopenharmony_ci u8 time_of_day_packet[16]; 148c2ecf20Sopenharmony_ci}; 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_civoid vivid_vbi_gen_sliced(struct vivid_vbi_gen_data *vbi, 178c2ecf20Sopenharmony_ci bool is_60hz, unsigned seqnr); 188c2ecf20Sopenharmony_civoid vivid_vbi_gen_raw(const struct vivid_vbi_gen_data *vbi, 198c2ecf20Sopenharmony_ci const struct v4l2_vbi_format *vbi_fmt, u8 *buf); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif 22