msm_vidc_v4l2.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020, 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_ctrl(struct file *file, void *fh,
  23. struct v4l2_control *a);
  24. int msm_v4l2_g_ctrl(struct file *file, void *fh,
  25. struct v4l2_control *a);
  26. int msm_v4l2_reqbufs(struct file *file, void *fh,
  27. struct v4l2_requestbuffers *b);
  28. int msm_v4l2_qbuf(struct file *file, void *fh,
  29. struct v4l2_buffer *b);
  30. int msm_v4l2_dqbuf(struct file *file, void *fh,
  31. struct v4l2_buffer *b);
  32. int msm_v4l2_streamon(struct file *file, void *fh,
  33. enum v4l2_buf_type i);
  34. int msm_v4l2_streamoff(struct file *file, void *fh,
  35. enum v4l2_buf_type i);
  36. int msm_v4l2_subscribe_event(struct v4l2_fh *fh,
  37. const struct v4l2_event_subscription *sub);
  38. int msm_v4l2_unsubscribe_event(struct v4l2_fh *fh,
  39. const struct v4l2_event_subscription *sub);
  40. int msm_v4l2_decoder_cmd(struct file *file, void *fh,
  41. struct v4l2_decoder_cmd *dec);
  42. int msm_v4l2_encoder_cmd(struct file *file, void *fh,
  43. struct v4l2_encoder_cmd *enc);
  44. int msm_v4l2_enum_framesizes(struct file *file, void *fh,
  45. struct v4l2_frmsizeenum *fsize);
  46. int msm_v4l2_queryctrl(struct file *file, void *fh,
  47. struct v4l2_queryctrl *ctrl);
  48. int msm_v4l2_querymenu(struct file *file, void *fh,
  49. struct v4l2_querymenu *qmenu);
  50. unsigned int msm_v4l2_poll(struct file *filp,
  51. struct poll_table_struct *pt);
  52. #endif // _MSM_VIDC_V4L2_H_