vivid-vid-cap.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * vivid-vid-cap.h - video capture support functions.
  4. *
  5. * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
  6. */
  7. #ifndef _VIVID_VID_CAP_H_
  8. #define _VIVID_VID_CAP_H_
  9. void vivid_update_quality(struct vivid_dev *dev);
  10. void vivid_update_format_cap(struct vivid_dev *dev, bool keep_controls);
  11. enum tpg_video_aspect vivid_get_video_aspect(const struct vivid_dev *dev);
  12. extern const v4l2_std_id vivid_standard[];
  13. extern const char * const vivid_ctrl_standard_strings[];
  14. extern const struct vb2_ops vivid_vid_cap_qops;
  15. int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  16. int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  17. int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  18. int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  19. int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  20. int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  21. int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  22. int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  23. int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  24. int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
  25. int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
  26. int vivid_vid_cap_cropcap(struct file *file, void *priv, struct v4l2_cropcap *cap);
  27. int vidioc_enum_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_fmtdesc *f);
  28. int vidioc_g_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  29. int vidioc_try_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  30. int vidioc_s_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  31. int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i);
  32. int vivid_vid_cap_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
  33. int vivid_vid_cap_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
  34. int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *inp);
  35. int vidioc_g_input(struct file *file, void *priv, unsigned *i);
  36. int vidioc_s_input(struct file *file, void *priv, unsigned i);
  37. int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
  38. int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
  39. int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
  40. int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
  41. int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
  42. int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
  43. int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
  44. int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *id);
  45. int vivid_vid_cap_s_std(struct file *file, void *priv, v4l2_std_id id);
  46. int vivid_vid_cap_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
  47. int vidioc_query_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
  48. int vidioc_s_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
  49. int vidioc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize);
  50. int vidioc_enum_frameintervals(struct file *file, void *priv, struct v4l2_frmivalenum *fival);
  51. int vivid_vid_cap_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
  52. int vivid_vid_cap_s_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
  53. #endif