1*dacca5f0SHans Verkuil /* SPDX-License-Identifier: GPL-2.0-only */ 2*dacca5f0SHans Verkuil /* 3*dacca5f0SHans Verkuil * vivid-vbi-gen.h - vbi generator support functions. 4*dacca5f0SHans Verkuil * 5*dacca5f0SHans Verkuil * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 6*dacca5f0SHans Verkuil */ 7*dacca5f0SHans Verkuil 8*dacca5f0SHans Verkuil #ifndef _VIVID_VBI_GEN_H_ 9*dacca5f0SHans Verkuil #define _VIVID_VBI_GEN_H_ 10*dacca5f0SHans Verkuil 11*dacca5f0SHans Verkuil struct vivid_vbi_gen_data { 12*dacca5f0SHans Verkuil struct v4l2_sliced_vbi_data data[25]; 13*dacca5f0SHans Verkuil u8 time_of_day_packet[16]; 14*dacca5f0SHans Verkuil }; 15*dacca5f0SHans Verkuil 16*dacca5f0SHans Verkuil void vivid_vbi_gen_sliced(struct vivid_vbi_gen_data *vbi, 17*dacca5f0SHans Verkuil bool is_60hz, unsigned seqnr); 18*dacca5f0SHans Verkuil void vivid_vbi_gen_raw(const struct vivid_vbi_gen_data *vbi, 19*dacca5f0SHans Verkuil const struct v4l2_vbi_format *vbi_fmt, u8 *buf); 20*dacca5f0SHans Verkuil 21*dacca5f0SHans Verkuil #endif 22