linux/drivers/media/test-drivers/vivid/vivid-vbi-gen.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * vivid-vbi-gen.c - vbi generator support functions.
 *
 * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
 */

#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/ktime.h>
#include <linux/string.h>
#include <linux/videodev2.h>

#include "vivid-vbi-gen.h"

static void wss_insert(u8 *wss, u32 val, unsigned size)
{}

static void vivid_vbi_gen_wss_raw(const struct v4l2_sliced_vbi_data *data,
		u8 *buf, unsigned sampling_rate)
{}

static void vivid_vbi_gen_teletext_raw(const struct v4l2_sliced_vbi_data *data,
		u8 *buf, unsigned sampling_rate)
{}

static void cc_insert(u8 *cc, u8 ch)
{}

#define CC_PREAMBLE_BITS

static void vivid_vbi_gen_cc_raw(const struct v4l2_sliced_vbi_data *data,
		u8 *buf, unsigned sampling_rate)
{}

void vivid_vbi_gen_raw(const struct vivid_vbi_gen_data *vbi,
		const struct v4l2_vbi_format *vbi_fmt, u8 *buf)
{}

static const u8 vivid_cc_sequence1[30] =;

static const u8 vivid_cc_sequence2[30] =;

static u8 calc_parity(u8 val)
{}

static void vivid_vbi_gen_set_time_of_day(u8 *packet)
{}

static const u8 hamming[16] =;

static void vivid_vbi_gen_teletext(u8 *packet, unsigned line, unsigned frame)
{}

void vivid_vbi_gen_sliced(struct vivid_vbi_gen_data *vbi,
		bool is_60hz, unsigned seqnr)
{}