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

This is a packed grey-scale image format with a depth of 12 bits per
pixel. Two consecutive pixels are packed into 3 bytes. The first 2 bytes
contain the 8 high order bits of the pixels, and the 3rd byte contains
the 4 least significants bits of each pixel, in the same order.

Add the entry in userspace API, and document it.

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