media: Add P012 and P012M video format
authorMing Qian <ming.qian@nxp.com>
Wed, 22 Mar 2023 05:13:04 +0000 (05:13 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 15 Apr 2023 08:05:53 +0000 (09:05 +0100)
commitaa1080404200694aace5989f99664ca75e73b03d
treecfe86b22ba0af87998c183b28b13867d4ee41e4c
parentf57fa2959244026ea5e885249e6c55fe3f133bd7
media: Add P012 and P012M video format

P012 is a YUV format with 12-bits per component with interleaved UV,
like NV12, expanded to 16 bits.
Data in the 12 high bits, zeros in the 4 low bits,
arranged in little endian order.
And P012M has two non contiguous planes.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst
drivers/media/v4l2-core/v4l2-common.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/videodev2.h