media: v4l: Add V4L2-PIX-FMT-Y14P format
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Wed, 24 Apr 2024 15:35:38 +0000 (18:35 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 29 Apr 2024 12:56:37 +0000 (14:56 +0200)
commitadb1d4655e53829658f42f13bd81657528a7a60d
tree65dc2bd3d817d5c93c26485816c09afb39ea79b8
parent1810477630404ed798f97e4babee4d6dd07a6095
media: v4l: Add V4L2-PIX-FMT-Y14P format

This is a packed grey-scale image format with a depth of 14 bits per
pixel. Every four consecutive samples are packed into seven bytes. Each
of the first four bytes contain the eight high order bits of the pixels,
and the three following bytes contains the six least significants bits
of each pixel, in the same order.

As the other formats only needed 5 bytes before, append two bytes in the
documentation array.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Documentation/userspace-api/media/v4l/pixfmt-yuv-luma.rst
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/videodev2.h