media: v4l2-dev/ioctl: Fix document for VIDIOC_QUERYCAP
PATCH 1/1 media: v4l2-dev/ioctl: Fix document for VIDIOC_QUERYCAP
V4L2_CAP_VIDEO_M2M is documented as 0x00004000 V4L2_CAP_VIDEO_M2M_MPLANE is documented as 0x00008000
This is different from the definition in include/uapi/linux/videodev2.h
--- Documentation/userspace-api/media/v4l/vidioc-querycap.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/userspace-api/media/v4l/vidioc-querycap.rst +2 -2
@@ -168,11 +168,11 @@ specification the ioctl returns an ``EINVAL`` error code. - The device supports the :ref:`multi-planar API <planar-apis>` through the :ref:`Video Output <output>` interface. * - ``V4L2_CAP_VIDEO_M2M`` - - 0x00004000 + - 0x00008000 - The device supports the single-planar API through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_M2M_MPLANE`` - - 0x00008000 + - 0x00004000 - The device supports the :ref:`multi-planar API <planar-apis>` through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_OVERLAY``
Signature · 1 line
2.28.0.rc0.105.gf9edc3c819-goog
Hi,
Quoted 4 lines · Jian-Jia Su
V4L2_CAP_VIDEO_M2Mis documented as0x00004000V4L2_CAP_VIDEO_M2M_MPLANEis documented as0x00008000
This is different from the definition ininclude/uapi/linux/videodev2.h
Nice catch, they are swapped in the docs indeed.
From videodev2.h:
/* Is a video mem-to-mem device that supports multiplanar formats */
#define V4L2_CAP_VIDEO_M2M_MPLANE 0x00004000
/* Is a video mem-to-mem device */
#define V4L2_CAP_VIDEO_M2M 0x00008000
Quoted 1 line
Signed-off-by Jian-Jia Su <[email protected]>
Regards,
Helen
Quoted 23 lines
--- Documentation/userspace-api/media/v4l/vidioc-querycap.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/userspace-api/media/v4l/vidioc-querycap.rst +2
-2@@ -168,11 +168,11 @@ specification the ioctl returns an ``EINVAL`` error code. - The device supports the :ref:`multi-planar API <planar-apis>` through the :ref:`Video Output <output>` interface. * - ``V4L2_CAP_VIDEO_M2M`` - - 0x00004000 + - 0x00008000 - The device supports the single-planar API through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_M2M_MPLANE`` - - 0x00008000 + - 0x00004000 - The device supports the :ref:`multi-planar API <planar-apis>` through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_OVERLAY``
Alexandre Courbot
Reviewed-byQuoted 13 lines · Helen Koike
Hi,
Quoted 4 lines · Jian-Jia Su
V4L2_CAP_VIDEO_M2Mis documented as0x00004000V4L2_CAP_VIDEO_M2M_MPLANEis documented as0x00008000
This is different from the definition ininclude/uapi/linux/videodev2.hNice catch, they are swapped in the docs indeed.
From
videodev2.h:
Quoted 8 lines
/* Is a video mem-to-mem device that supports multiplanar formats */
#defineV4L2_CAP_VIDEO_M2M_MPLANE0x00004000
/* Is a video mem-to-mem device */
#defineV4L2_CAP_VIDEO_M2M0x00008000Quoted 1 line
Signed-off-by Jian-Jia Su <[email protected]>Reviewed-by Helen Koike <[email protected]>
FWIW,
Quoted 27 lines
Regards,
HelenQuoted 23 lines
--- Documentation/userspace-api/media/v4l/vidioc-querycap.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/userspace-api/media/v4l/vidioc-querycap.rst +2
-2@@ -168,11 +168,11 @@ specification the ioctl returns an ``EINVAL`` error code. - The device supports the :ref:`multi-planar API <planar-apis>` through the :ref:`Video Output <output>` interface. * - ``V4L2_CAP_VIDEO_M2M`` - - 0x00004000 + - 0x00008000 - The device supports the single-planar API through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_M2M_MPLANE`` - - 0x00008000 + - 0x00004000 - The device supports the :ref:`multi-planar API <planar-apis>` through the Video Memory-To-Memory interface. * - ``V4L2_CAP_VIDEO_OVERLAY``