Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1205c52c authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Greg Kroah-Hartman
Browse files

media: uapi: add MEDIA_BUS_FMT_METADATA_FIXED media bus format.



[ Upstream commit 6ad253cc3436269fc6bcff03d704c672f368da0a ]

MEDIA_BUS_FMT_METADATA_FIXED should be used when
the same driver handles both sides of the link and
the bus format is a fixed metadata format that is
not configurable from userspace.
The width and height will be set to 0 for this format.

Signed-off-by: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: default avatarHelen Koike <helen.koike@collabora.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: eed9496a0501 ("media: av7110: prevent underflow in write_ts_to_decoder()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c6a315f0
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -7794,3 +7794,30 @@ formats.
      - 0x5001
      - Interleaved raw UYVY and JPEG image format with embedded meta-data
	used by Samsung S3C73MX camera sensors.

.. _v4l2-mbus-metadata-fmts:

Metadata Formats
^^^^^^^^^^^^^^^^

This section lists all metadata formats.

The following table lists the existing metadata formats.

.. tabularcolumns:: |p{8.0cm}|p{1.4cm}|p{7.7cm}|

.. flat-table:: Metadata formats
    :header-rows:  1
    :stub-columns: 0

    * - Identifier
      - Code
      - Comments
    * .. _MEDIA-BUS-FMT-METADATA-FIXED:

      - MEDIA_BUS_FMT_METADATA_FIXED
      - 0x7001
      - This format should be used when the same driver handles
	both sides of the link and the bus format is a fixed
	metadata format that is not configurable from userspace.
	Width and height will be set to 0 for this format.
+8 −0
Original line number Diff line number Diff line
@@ -155,4 +155,12 @@
/* HSV - next is	0x6002 */
#define MEDIA_BUS_FMT_AHSV8888_1X32		0x6001

/*
 * This format should be used when the same driver handles
 * both sides of the link and the bus format is a fixed
 * metadata format that is not configurable from userspace.
 * Width and height will be set to 0 for this format.
 */
#define MEDIA_BUS_FMT_METADATA_FIXED		0x7001

#endif /* __LINUX_MEDIA_BUS_FORMAT_H */