mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[media] v4l: Add metadata buffer type and format
The metadata buffer type is used to transfer metadata between userspace and kernelspace through a V4L2 buffers queue. It comes with a new metadata capture capability and format description. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: removed left-over 'experimental' note] [hans.verkuil@cisco.com: add newline after _v4l2-meta-format label] Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
3e9a0e0bfa
commit
fb9ffa6a7f
12 changed files with 164 additions and 6 deletions
|
@ -44,6 +44,9 @@ struct v4l2_fh;
|
|||
* @vidioc_enum_fmt_sdr_out: pointer to the function that implements
|
||||
* :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic
|
||||
* for Software Defined Radio output
|
||||
* @vidioc_enum_fmt_meta_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic
|
||||
* for metadata capture
|
||||
* @vidioc_g_fmt_vid_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_G_FMT <vidioc_g_fmt>` ioctl logic for video capture
|
||||
* in single plane mode
|
||||
|
@ -74,6 +77,8 @@ struct v4l2_fh;
|
|||
* @vidioc_g_fmt_sdr_out: pointer to the function that implements
|
||||
* :ref:`VIDIOC_G_FMT <vidioc_g_fmt>` ioctl logic for Software Defined
|
||||
* Radio output
|
||||
* @vidioc_g_fmt_meta_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_G_FMT <vidioc_g_fmt>` ioctl logic for metadata capture
|
||||
* @vidioc_s_fmt_vid_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_S_FMT <vidioc_g_fmt>` ioctl logic for video capture
|
||||
* in single plane mode
|
||||
|
@ -104,6 +109,8 @@ struct v4l2_fh;
|
|||
* @vidioc_s_fmt_sdr_out: pointer to the function that implements
|
||||
* :ref:`VIDIOC_S_FMT <vidioc_g_fmt>` ioctl logic for Software Defined
|
||||
* Radio output
|
||||
* @vidioc_s_fmt_meta_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_S_FMT <vidioc_g_fmt>` ioctl logic for metadata capture
|
||||
* @vidioc_try_fmt_vid_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_TRY_FMT <vidioc_g_fmt>` ioctl logic for video capture
|
||||
* in single plane mode
|
||||
|
@ -136,6 +143,8 @@ struct v4l2_fh;
|
|||
* @vidioc_try_fmt_sdr_out: pointer to the function that implements
|
||||
* :ref:`VIDIOC_TRY_FMT <vidioc_g_fmt>` ioctl logic for Software Defined
|
||||
* Radio output
|
||||
* @vidioc_try_fmt_meta_cap: pointer to the function that implements
|
||||
* :ref:`VIDIOC_TRY_FMT <vidioc_g_fmt>` ioctl logic for metadata capture
|
||||
* @vidioc_reqbufs: pointer to the function that implements
|
||||
* :ref:`VIDIOC_REQBUFS <vidioc_reqbufs>` ioctl
|
||||
* @vidioc_querybuf: pointer to the function that implements
|
||||
|
@ -306,6 +315,8 @@ struct v4l2_ioctl_ops {
|
|||
struct v4l2_fmtdesc *f);
|
||||
int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
|
||||
struct v4l2_fmtdesc *f);
|
||||
int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
|
||||
struct v4l2_fmtdesc *f);
|
||||
|
||||
/* VIDIOC_G_FMT handlers */
|
||||
int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
|
||||
|
@ -332,6 +343,8 @@ struct v4l2_ioctl_ops {
|
|||
struct v4l2_format *f);
|
||||
int (*vidioc_g_fmt_sdr_out)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
int (*vidioc_g_fmt_meta_cap)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
|
||||
/* VIDIOC_S_FMT handlers */
|
||||
int (*vidioc_s_fmt_vid_cap)(struct file *file, void *fh,
|
||||
|
@ -358,6 +371,8 @@ struct v4l2_ioctl_ops {
|
|||
struct v4l2_format *f);
|
||||
int (*vidioc_s_fmt_sdr_out)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
int (*vidioc_s_fmt_meta_cap)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
|
||||
/* VIDIOC_TRY_FMT handlers */
|
||||
int (*vidioc_try_fmt_vid_cap)(struct file *file, void *fh,
|
||||
|
@ -384,6 +399,8 @@ struct v4l2_ioctl_ops {
|
|||
struct v4l2_format *f);
|
||||
int (*vidioc_try_fmt_sdr_out)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
int (*vidioc_try_fmt_meta_cap)(struct file *file, void *fh,
|
||||
struct v4l2_format *f);
|
||||
|
||||
/* Buffer handlers */
|
||||
int (*vidioc_reqbufs)(struct file *file, void *fh,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue