linux/drivers/staging/media/starfive/camss/stf-video.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * stf_video.h
 *
 * StarFive Camera Subsystem - V4L2 device node
 *
 * Copyright (C) 2021-2023 StarFive Technology Co., Ltd.
 */

#ifndef STF_VIDEO_H
#define STF_VIDEO_H

#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/videodev2.h>
#include <media/v4l2-dev.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf2-v4l2.h>

#define STFCAMSS_FRAME_MIN_WIDTH
#define STFCAMSS_FRAME_MAX_WIDTH
#define STFCAMSS_FRAME_MIN_HEIGHT
#define STFCAMSS_FRAME_MAX_HEIGHT
#define STFCAMSS_FRAME_WIDTH_ALIGN_8
#define STFCAMSS_FRAME_WIDTH_ALIGN_128
#define STFCAMSS_MIN_BUFFERS

#define STFCAMSS_MAX_ENTITY_NAME_LEN

enum stf_v_line_id {};

enum stf_capture_type {};

struct stfcamss_buffer {};

struct fract {};

/*
 * struct stfcamss_format_info - ISP media bus format information
 * @code: V4L2 media bus format code
 * @pixelformat: V4L2 pixel format FCC identifier
 * @planes: Number of planes
 * @vsub: Vertical subsampling (for each plane)
 * @bpp: Bits per pixel when stored in memory (for each plane)
 */
struct stfcamss_format_info {};

struct stfcamss_video {};

struct stfcamss_video_ops {};

int stf_video_register(struct stfcamss_video *video,
		       struct v4l2_device *v4l2_dev, const char *name);

void stf_video_unregister(struct stfcamss_video *video);

#endif /* STF_VIDEO_H */