media: v4l2-common: Add Y210 and Y216 format info
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Wed, 13 Mar 2024 15:41:27 +0000 (16:41 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 8 Apr 2024 11:48:19 +0000 (13:48 +0200)
commitb74c77d3d68024e50c85dc2d842c9cce20f67c57
tree9d42b22f7c4d6fd1c8d2eb9b1265b37b394308a5
parent810dd605e917c716f6f83e6cd8ea23d9155d32a2
media: v4l2-common: Add Y210 and Y216 format info

According to the formats description in videodev2.h Y210, Y212 and Y216
are YCbCr packed formats. For each Y2xx format, xx bits of valid data
occupy the MSBs of the 16 bit components, and 16-xx bits of zero padding
occupy the LSBs.

The Y210 and Y216 formats are missing an entry in the v4l2_format_info[]
table. Add it.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/v4l2-core/v4l2-common.c