vivid-vid-out.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef _VIVID_VID_OUT_H_
  8. #define _VIVID_VID_OUT_H_
  9. extern const struct vb2_ops vivid_vid_out_qops;
  10. void vivid_update_format_out(struct vivid_dev *dev);
  11. int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  12. int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  13. int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  14. int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
  15. int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
  16. int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
  17. int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  18. int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  19. int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
  20. int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
  21. int vivid_vid_out_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
  22. int vivid_vid_out_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
  23. int vidioc_enum_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_fmtdesc *f);
  24. int vidioc_g_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
  25. int vidioc_try_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
  26. int vidioc_s_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
  27. int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i);
  28. int vivid_vid_out_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
  29. int vivid_vid_out_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
  30. int vidioc_enum_output(struct file *file, void *priv, struct v4l2_output *out);
  31. int vidioc_g_output(struct file *file, void *priv, unsigned *i);
  32. int vidioc_s_output(struct file *file, void *priv, unsigned i);
  33. int vidioc_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vout);
  34. int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout);
  35. int vidioc_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout);
  36. int vivid_vid_out_s_std(struct file *file, void *priv, v4l2_std_id id);
  37. int vivid_vid_out_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
  38. int vivid_vid_out_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
  39. #endif