msm_vidc_v4l2.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _MSM_VIDC_V4L2_H_
  6. #define _MSM_VIDC_V4L2_H_
  7. #include <linux/poll.h>
  8. #include <linux/fs.h>
  9. #include <media/v4l2-dev.h>
  10. #include <media/v4l2-ioctl.h>
  11. #include <media/v4l2-ctrls.h>
  12. int msm_v4l2_open(struct file *filp);
  13. int msm_v4l2_close(struct file *filp);
  14. int msm_v4l2_querycap(struct file *filp, void *fh,
  15. struct v4l2_capability *cap);
  16. int msm_v4l2_enum_fmt(struct file *file, void *fh,
  17. struct v4l2_fmtdesc *f);
  18. int msm_v4l2_s_fmt(struct file *file, void *fh,
  19. struct v4l2_format *f);
  20. int msm_v4l2_g_fmt(struct file *file, void *fh,
  21. struct v4l2_format *f);
  22. int msm_v4l2_s_selection(struct file* file, void* fh,
  23. struct v4l2_selection* s);
  24. int msm_v4l2_g_selection(struct file* file, void* fh,
  25. struct v4l2_selection* s);
  26. int msm_v4l2_s_parm(struct file *file, void *fh,
  27. struct v4l2_streamparm *a);
  28. int msm_v4l2_g_parm(struct file *file, void *fh,
  29. struct v4l2_streamparm *a);
  30. int msm_v4l2_s_ctrl(struct file *file, void *fh,
  31. struct v4l2_control *a);
  32. int msm_v4l2_g_ctrl(struct file *file, void *fh,
  33. struct v4l2_control *a);
  34. int msm_v4l2_reqbufs(struct file *file, void *fh,
  35. struct v4l2_requestbuffers *b);
  36. int msm_v4l2_qbuf(struct file *file, void *fh,
  37. struct v4l2_buffer *b);
  38. int msm_v4l2_dqbuf(struct file *file, void *fh,
  39. struct v4l2_buffer *b);
  40. int msm_v4l2_streamon(struct file *file, void *fh,
  41. enum v4l2_buf_type i);
  42. int msm_v4l2_streamoff(struct file *file, void *fh,
  43. enum v4l2_buf_type i);
  44. int msm_v4l2_subscribe_event(struct v4l2_fh *fh,
  45. const struct v4l2_event_subscription *sub);
  46. int msm_v4l2_unsubscribe_event(struct v4l2_fh *fh,
  47. const struct v4l2_event_subscription *sub);
  48. int msm_v4l2_decoder_cmd(struct file *file, void *fh,
  49. struct v4l2_decoder_cmd *dec);
  50. int msm_v4l2_encoder_cmd(struct file *file, void *fh,
  51. struct v4l2_encoder_cmd *enc);
  52. int msm_v4l2_enum_framesizes(struct file *file, void *fh,
  53. struct v4l2_frmsizeenum *fsize);
  54. int msm_v4l2_queryctrl(struct file *file, void *fh,
  55. struct v4l2_queryctrl *ctrl);
  56. int msm_v4l2_querymenu(struct file *file, void *fh,
  57. struct v4l2_querymenu *qmenu);
  58. unsigned int msm_v4l2_poll(struct file *filp,
  59. struct poll_table_struct *pt);
  60. #endif // _MSM_VIDC_V4L2_H_