linux/drivers/media/test-drivers/vivid/vivid-vid-common.c

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

#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/videodev2.h>
#include <linux/v4l2-dv-timings.h>
#include <media/v4l2-common.h>
#include <media/v4l2-event.h>
#include <media/v4l2-dv-timings.h>

#include "vivid-core.h"
#include "vivid-vid-common.h"

const struct v4l2_dv_timings_cap vivid_dv_timings_cap =;

/* ------------------------------------------------------------------
	Basic structures
   ------------------------------------------------------------------*/

struct vivid_fmt vivid_formats[] =;

/* There are this many multiplanar formats in the list */
#define VIVID_MPLANAR_FORMATS

const struct vivid_fmt *vivid_get_format(struct vivid_dev *dev, u32 pixelformat)
{}

struct vivid_dev *vivid_output_is_connected_to(struct vivid_dev *dev)
{}

struct vivid_dev *vivid_input_is_connected_to(struct vivid_dev *dev)
{}

bool vivid_vid_can_loop(struct vivid_dev *dev)
{}

void vivid_send_input_source_change(struct vivid_dev *dev, unsigned int input_index)
{}

void vivid_send_source_change(struct vivid_dev *dev, unsigned int type)
{}

/*
 * Conversion function that converts a single-planar format to a
 * single-plane multiplanar format.
 */
void fmt_sp2mp(const struct v4l2_format *sp_fmt, struct v4l2_format *mp_fmt)
{}

int fmt_sp2mp_func(struct file *file, void *priv,
		struct v4l2_format *f, fmtfunc func)
{}

int vivid_vid_adjust_sel(unsigned flags, struct v4l2_rect *r)
{}

int vivid_enum_fmt_vid(struct file *file, void  *priv,
					struct v4l2_fmtdesc *f)
{}

int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id)
{}

int vidioc_g_dv_timings(struct file *file, void *_fh,
				    struct v4l2_dv_timings *timings)
{}

int vidioc_enum_dv_timings(struct file *file, void *_fh,
				    struct v4l2_enum_dv_timings *timings)
{}

int vidioc_dv_timings_cap(struct file *file, void *_fh,
				    struct v4l2_dv_timings_cap *cap)
{}

int vidioc_g_edid(struct file *file, void *_fh,
			 struct v4l2_edid *edid)
{}