Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * vivid-vid-common.h - common video support functions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef _VIVID_VID_COMMON_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define _VIVID_VID_COMMON_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) typedef int (*fmtfunc)(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * Conversion function that converts a single-planar format to a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * single-plane multiplanar format.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) void fmt_sp2mp(const struct v4l2_format *sp_fmt, struct v4l2_format *mp_fmt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int fmt_sp2mp_func(struct file *file, void *priv,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 		struct v4l2_format *f, fmtfunc func);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern const struct v4l2_dv_timings_cap vivid_dv_timings_cap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) const struct vivid_fmt *vivid_get_format(struct vivid_dev *dev, u32 pixelformat);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) bool vivid_vid_can_loop(struct vivid_dev *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) void vivid_send_source_change(struct vivid_dev *dev, unsigned type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) int vivid_vid_adjust_sel(unsigned flags, struct v4l2_rect *r);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int vivid_enum_fmt_vid(struct file *file, void  *priv, struct v4l2_fmtdesc *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int vidioc_g_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) int vidioc_enum_dv_timings(struct file *file, void *_fh, struct v4l2_enum_dv_timings *timings);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) int vidioc_g_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) int vidioc_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif