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