xref: /linux/drivers/media/test-drivers/vivid/vivid-vid-out.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * vivid-vid-out.h - video output support functions.
4  *
5  * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6  */
7 
8 #ifndef _VIVID_VID_OUT_H_
9 #define _VIVID_VID_OUT_H_
10 
11 extern const struct vb2_ops vivid_vid_out_qops;
12 
13 void vivid_update_format_out(struct vivid_dev *dev);
14 
15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
19 int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
25 int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
26 int vivid_vid_out_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
27 int vidioc_enum_fmt_vid_out_overlay(struct file *file, void  *priv, struct v4l2_fmtdesc *f);
28 int vidioc_g_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
29 int vidioc_try_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
30 int vidioc_s_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
31 int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i);
32 int vivid_vid_out_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
33 int vivid_vid_out_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
34 int vidioc_enum_output(struct file *file, void *priv, struct v4l2_output *out);
35 int vidioc_g_output(struct file *file, void *priv, unsigned *i);
36 int vidioc_s_output(struct file *file, void *priv, unsigned i);
37 int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout);
38 int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout);
39 int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout);
40 int vivid_vid_out_s_std(struct file *file, void *priv, v4l2_std_id id);
41 int vivid_vid_out_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
42 int vivid_vid_out_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
43 
44 #endif
45