^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-cap.h - video capture 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_CAP_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define _VIVID_VID_CAP_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void vivid_update_quality(struct vivid_dev *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void vivid_update_format_cap(struct vivid_dev *dev, bool keep_controls);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) enum tpg_video_aspect vivid_get_video_aspect(const struct vivid_dev *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern const v4l2_std_id vivid_standard[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern const char * const vivid_ctrl_standard_strings[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern const struct vb2_ops vivid_vid_cap_qops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) int vivid_vid_cap_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int vidioc_enum_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_fmtdesc *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) int vidioc_g_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int vidioc_try_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) int vidioc_s_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) int vivid_vid_cap_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) int vivid_vid_cap_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *inp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) int vidioc_g_input(struct file *file, void *priv, unsigned *i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) int vidioc_s_input(struct file *file, void *priv, unsigned i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) int vivid_vid_cap_s_std(struct file *file, void *priv, v4l2_std_id id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) int vivid_vid_cap_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) int vidioc_query_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) int vidioc_s_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) int vidioc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) int vidioc_enum_frameintervals(struct file *file, void *priv, struct v4l2_frmivalenum *fival);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) int vivid_vid_cap_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) int vivid_vid_cap_s_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #endif